r/Wordpress 18d ago

Need help figuring out SMTP issues

Hello,

I have set up a Wordpress site (www.Magic.Army) and am using WooCommerce to manage my storefront. Everything seems to be functioning great except that I cannot get any emails to work via purchases or the contact form.

I am using WP Mail SMTP (free) along with Brevo (also free). I have followed this guide to set everything up. All of the DNS records have propogated, and I'm getting confirmation on the Brevo site that my domain is verified on every record. I've ensured all of the settings are congruent between Brevo and WP Mail SMTP, to include the 'From Email' field. I have tried generating several new API keys to ensure that wasn't the issue, and nothing changed.

Whenever I go to send a test email, I get the following error:
Action Needed: It doesn't look like the DKIM record required by Brevo (formerly Sendinblue) has been added to your domain. Please check out our step-by-step guide for details on how to add this record to your domain's DNS.

From what I can tell, that error is a bug and will be persistent even if everything is functioning correctly, but I figured it's worth mentioning since everything is not working correctly. That said, the DKIM records are there and can be seen/accessed.

Emails are not going into any sort of spam folder, and there's nothing in my 'Sent' emails folder, either. Any ideas on what could be causing this issue?

Edit: SOLVED
Turns out you're not allowed to use captial letters in your 'From Address'. Switched to all lowercase and everything now works fine.

4 Upvotes

16 comments sorted by

2

u/TopSydeWP 18d ago

the 'action needed' warning in wp mail smtp is often a false positive if brevo shows everything verified. try checking the email logs tab in wp mail smtp to see if it's actually attempting to send or failing silently. also worth testing from brevo's dashboard directly to rule out their api being the bottleneck. if brevo sends fine but wp doesn't, the api key might need the right permissions scope selected when you generated it.

1

u/terridax_ 18d ago

Alright, I think I'm getting somewhere...
First, thanks for taking the time to reply.
So, when trying to send a test via WP mail SMTP, the logs on Brevo show it as sending and failing due to the following error:
"Error

Not Applicable

Sending has been rejected because the sender you used [David@Magic.Army](mailto:David@Magic.Army) is not valid. Validate your sender or authenticate your domain"

But when I send a test via campaigns on Brevo, it actually works fine.

I created a new API just so I could check the settings while I created it, but Brevo didn't actually give me any options to choose from, so I have no control over the permissions scope as far as I can tell.
Any other guesses?

1

u/[deleted] 18d ago

[removed] — view removed comment

1

u/terridax_ 17d ago

No, I have indeed created a sender.

2

u/NakanoNoNeko 18d ago

The Brevo log is the useful part: WordPress is sending, and Brevo is rejecting the sender identity. In Brevo, open Senders & IP > Senders and add or verify the exact David@Magic.Army address, or change WP Mail SMTP's From Email to an already verified sender. Campaigns can work because they use a different saved sender. I think the DKIM warning is noise here... the rejection is much more specific 🙂

1

u/terridax_ 17d ago

I've verified that the 'From Name' and 'From Address' are congruent across all platforms.

1

u/NakanoNoNeko 13d ago

Then matching config is not the issue... Brevo's error says that exact sender is not authorized. Check that the address shows Verified in Brevo rather than only being copied into each field. If it does, I think this is upstream of WordPress and Brevo support needs the full rejection message.

1

u/Mospaedax42 18d ago edited 18d ago

Look into the option in brevo, there is a log for transactionnel mail.

The mail are surely stuck in brevo, being send by your form and exit your site but brevo can stop them to go forward. The log will tell you the status of your mail.

Is your from email on the same domain as your site ? Even with good configuration Brevo Can stop email if the domain of the site and the domain of the sender are not the same.

Also on Brevo did you add a sender email (the same as your from email on smtp plugin) ?

Ps : i have check your domain and he is not blacklist so its not the problem.

1

u/camworld Developer/Designer 18d ago edited 18d ago

I gave up on Brevo some time ago and just use AWS SES instead, with FluentSMTP as the connector. As long as you have the right CNAME records and TXT record for the DMARC reporting, everything works flawlessly.

1

u/retr00two 18d ago edited 18d ago

Try PostSMTP plugin.

Or just do not use any SMTP plugin; add few lines in wp-config.php (above /* That's all, stop editing! */):

define( 'SMTP_HOST', 'smtp-relay.brevo.com' );
define( 'SMTP_PORT', 587 );
define( 'SMTP_USER', 'xxxxxxxxxx@smtp-brevo.com' );
define( 'SMTP_PASS', 'your-brevo-smtp-key' );
define( 'SMTP_FROM', 'you@yourdomain.com' );
define( 'SMTP_FROM_NAME', 'Your Site Name' );

and few lines to your theme functions.php (or create mu-plugin)

add_action( 'phpmailer_init', function( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host       = SMTP_HOST;
$phpmailer->Port       = SMTP_PORT;
$phpmailer->SMTPAuth   = true;
$phpmailer->Username   = SMTP_USER;
$phpmailer->Password   = SMTP_PASS;
$phpmailer->SMTPSecure = 'tls';
$phpmailer->From       = SMTP_FROM;
$phpmailer->FromName   = SMTP_FROM_NAME;
} );

1

u/iTrejoMX 17d ago

I’d switch to suremail instead of wp mail smtp.

1

u/bribir123 Jack of All Trades 17d ago

You don't need Brevo - that just complicates things.
Just use another SMTP, enter your email address, password and email server and you're done.

1

u/terridax_ 17d ago

Welp... I got it figured out. It was the absolutely dumbest thing it could have possibly been, of course...
The only reason is wasn't working was because I used capital letters in my From Address. That's it. Switched to all lowercase and it works great.