Google Apps SMTP for WP MultiSite?
Google Apps SMTP for WP MultiSite?
Google Apps SMTP for WP MultiSite?
Your goal is to send emails, using that specific plugin isn’t a requirement. Therefore, I suggest you install and activate instead the WP Mail SMTP plugin. Once it’s active, go to Settings > WP Mail SMTP to configure the plugin settings. This will ask you to enter the email address and a from name (similar … Read more
I never did get this to work, as a work around I had to configure the WP-SMTPMail to send directly to our Office365 instance, which required an additional user to be configured.
That seems to be the configured SMTP server by your hosting. It might be possible to configure this if you have CPANEL included. If that’s the case, take a look at this article. It explains how you can create your own SMTP address and use it for sending e-mails from your website. Alternatively, you can … Read more
Disclaimer: this is clumsy, someone might have a better suggestion. But here’s one idea: Leave WordPress configured with your [email protected] settings. Set up Woo with the [email protected] address (WooCommerce -> Settings -> Emails -> From Address). Hook woocommerce_mail_callback with your own function that temporarily hooks phpmailer_init to change the SMTP configuration before calling wp_mail. Or … Read more
You’re making it way more complicated than in needs to be. WP Mail SMTP is a plugin that allows you to have WP’s wp_mail() function send through an SMTP account instead of relying on the web server. You’re not, in this case, doing anything specific with WP Mail SMTP. What you’re going to do is … Read more
is one of the “two email settings you updated” the one at “WooCommerce > Settings > Emails > Email Sender Options”?
Your premise is correct – you can connect to different STMP accounts based on whatever criteria you can build into your action function. It’s a little tricky with WooCommerce because it has two email objects that it uses, one for creating emails and the other for sending. Also, hooking into the WC send process requires … Read more
Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin
The following is a way to handle your question. It is in two parts. First, you would create your connection as constants to be used later. The best way to do this is in wp-config.php. (You mentioned that you’re doing this in a custom plugin. If that’s something that is to be portable, then you … Read more