Title: Using code
Last modified: August 2, 2023

---

# Using code

 *  Resolved [caddymarketing](https://wordpress.org/support/users/caddymarketing/)
 * (@caddymarketing)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/using-code/)
 * Dear POST SMTP plugin users,
 * My website is using the Post SMTP plugin and everything is working fine. Really
   like the plugin. Right now I’m adding some PHP code where I also want to send
   a user a mail from.
 * I was wondering what I should use to mail customers from within the code while
   still relying on POST SMTP plugin. Is there a way, I suppose wp_mail() doesn’t
   work for this or does the plugin overwrite that?
 * Thank you in advance!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Saad Iqbal](https://wordpress.org/support/users/saadiqbal/)
 * (@saadiqbal)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/using-code/#post-16940932)
 * Hi [@caddymarketing](https://wordpress.org/support/users/caddymarketing/) ,
 * Thanks for sharing your feedback. Sure, you can use the core `wp_mail() `function
   to do the thing.
 * Do let us know if there is anything else we can help you with.
   Thanks!
    -  This reply was modified 2 years, 10 months ago by [Saad Iqbal](https://wordpress.org/support/users/saadiqbal/).
 *  Thread Starter [caddymarketing](https://wordpress.org/support/users/caddymarketing/)
 * (@caddymarketing)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/using-code/#post-16940965)
 * Thank you. So when using wp_mail() I’m not making use of the SMTP plugin. Is 
   that correct?
 *  Plugin Author [Saad Iqbal](https://wordpress.org/support/users/saadiqbal/)
 * (@saadiqbal)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/using-code/#post-16941008)
 * No. When using `wp_mail()`, all your emails will be send via POST SMTP (if installed
   and activated).
 *  Thread Starter [caddymarketing](https://wordpress.org/support/users/caddymarketing/)
 * (@caddymarketing)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/using-code/#post-16941012)
 * Great, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using code’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [caddymarketing](https://wordpress.org/support/users/caddymarketing/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/using-code/#post-16941012)
 * Status: resolved