Articles of smtp

Different SMTP based on domain

I have a multi-domain wordpress site, set up so that and both work and show the same content (but with the address bar showing whichever domain was used). I would like admin mails coming from the site to use different SMTP settings depending on the domain (I have completely separate mail accounts in […]

WordPress SMTP EMail

I have this plugin on wordpress an already configure class-phpmailer.php to send emails by SMTP. My hosting only accept SMTP emails. When I register in wordpress I receive an email, when I contact anothe user he receives emails. This is ok. But when I try to use this plugin he doesn’t send any emails. Could […]

Why is wp-login trying to send an email?

My host sent me the following message: Below are the recently upload scripts that contain code to send email. You may wish to inspect them to ensure they are not sending out SPAM. /home/swthief/public_html/wp-login.php:392: if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) /home/swthief/public_html/wp-login.php:393: wp_die( __(‘The e-mail could not be sent.’) . […]

Create mail form using PHPmailer

I’m learning about coding plugin. I trying to create a form in plugin page and it can send mail. This is my code, but it doesn’t work(I did not receive email and did not show any error). add_action(‘admin_menu’, ‘add_contact_us_page’); function add_contact_us_page() { add_menu_page( __( ‘Contact Us’, ‘textdomain’ ), __( ‘Contact Us’,’textdomain’ ), ‘manage_options’, ‘support_form_page’, ‘support_form’, […]

Google Apps SMTP for WP MultiSite?

How can you force WordPress MultiSite to send all emails via a Google Apps SMTP server? I have attempted to use Easy WP SMPTP, however that does not work exactly as I’d hoped, not to mention it fails to even send emails at all in tests through the Google Apps SMTP server. It seems as […]

WordPress unable to send mail

I am unable to get email functioning in WP 4.8. I have wordpress running on a straight forward LAMP stack. It is actually the Bitnami appliance as I’m lazy and needed something up quickly. All modules/plugins/themes/languages are up to date. I have a SMTP host that is effectively an open relay (coming from my network […]

Error when requesting password reset email – wp authentication

I get the following error whenever a user tries to request a password reset email: The e-mail could not be sent. Possible reason: your host may have disabled the mail() function. As per recommendations I’ve read across the web, I tried several SMTP plugins. None worked. Finally, I got some debug information from one. First, […]

How to use 'phpmailer_init' SMTP settings only on certain 'wp_mail' actions?

Is there a conditional check I can run for phpmailer_init or a wp_mail parameter that let’s me apply my custom phpmailer_init SMTP settings only on specific wp_mail actions or does phpmailer_init always run sitewide?

Contact Form 7 + Configure SMTP: Sender email appearing as my own email

I have Contact Form 7 and Configure SMTP installed on my website. When a user submits a message through the form, everything comes through fine but the sender email is never displayed. Instead, it is displayed as my own email so I have no clue who sent the message. It just shows up as “To: […]

What's the easiest way to setup SMTP settings programmatically?

Assume we have blank WP site and we want to setup SMTP settings programmatically in our plugin or theme. What’s the easiest way to do it without changing core files?