Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi @juato4,

    Thanks for reaching out. WP Mail SMTP does not automatically resend the emails when failed. It looks like the email is being sent with an empty recipient in such cases while the emails probably shouldn’t be sent at all. Please contact the CartBounty Pro plugin support and explain the issue.

    I hope this helps!

    Hi @juato4, thanks for your input and time looking into the issue.

    CartBounty does not try to send email in case there is no email available. However we have noticed that this error is displayed in cases when the email recipient does not exist, for example if the user has entered “@giml.com” instead of “@gmail.com” email.

    Any thoughts on that?

    Thread Starter juato4

    (@juato4)

    Hi @nauriskolats , @sanzeeb3 yes, the problem is with “@giml.com”

    Hey,

    Thanks for the details! That sounds possible. However, I tested with Gmail’s SMTP, and the email is sent to the non-existent recipient (@giml.com) as well.

    @juato4 – When you get a chance, can you please send a test email from WP Mail SMTP > Tools > Email Test to a non-existent receipent (@giml.com) and check the debug event.

    Thread Starter juato4

    (@juato4)

    @sanzeeb3 i did it… and it was sended without problems.

    @nauriskolats any suggest?.

    Thanks for responding!

    I’m guessing that @juato4 is using Otro SMTP for sending emails and not Gmail SMTP. So testing it with Gmail SMTP will not yield the same results as Otro SMTP, right @sanzeeb3 ?

    Could you please test the sending email to a non-existent user via Otro SMTP?

    Thanks

    Thread Starter juato4

    (@juato4)

    @nauriskolats @sanzeeb3 yes, i am using other smtp.. not GMAIL.

    Hi @juato4, @nauriskolats,

    Thanks for the details! I was also testing with Other SMTP using Gmail’s SMTP server.

    Upon checking with the CartBounty plugin and refering to this line:

    $result = wp_mail( sanitize_email($to), $admin->sanitize_field($subject), $message, $headers );

    This means if the $to address is ‘@gmil.com’, sanitize_email( '@gmail.com' ) will result in empty string. So, the error from WP Mail SMTP ‘You must provide at least one recipient email address’ is correct.

    @juato4 – your customer is probably writing emails such as @gmil.com and not a valid but non-existent email such as example@gmil.com? While abandoning the cart, it is possible that users aren’t entering the valid email address. So, it should probably be validated before sending an email.

    Thank you!

    Hi @sanzeeb3,

    Thank for looking into it! Really appreciate that!

    Please allow me to add a little extra details there that should help a bit more.
    CartBounty is saving only valid email addresses so “@giml.com” would never be saved. The email that is in question here has been entered in the form of “nameSurname.@giml.com” and sanitizing this email is returning a valid email in the form of “nameSurname.@giml.com”.

    Best,
    Nauris

    Hi @nauriskolats,

    Thanks for the confirmation! It turns out the error is reproducible with the emails like “nameSurname.@giml.com”. If you send an email to this recipient using wp_mail(), the email will fail with that error. This is with or without using the WP Mail SMTP plugin. So, this error is coming from PHPMailer bundled within WordPress core and is because the email is not valid. PHPMailer seems to use FILTER_VALIDATE_EMAIL to validate email.

    It looks like expected behaviour. If you send an email to an invalid email address, it will fail.

    @juato4 – unless the failed emails are sent in the loop after every 5 min. as per the original question, I think there isn’t an issue to look into.

    I hope this clarifies!

    Thanks @sanzeeb3 for looking into it and getting to the bottom of the issue with where the error is coming from!

    Thread Starter juato4

    (@juato4)

    @nauriskolats Suppoust you have 1000 invalid emails trying to resending every 5 times… what could happen ?

    Dear @juato4, if you are getting that amount of emails, then you should switch to a professional email system like MailChimp, ActiveCampaign or GetResponse instead as your default server will have difficulties safely delivering that amount of emails.

    And as @sanzeeb3 already pointed out, there is nothing much that can be done there since the email name “nameSurname.@giml.com” is a perfectly valid email.

    And the issue with sending out multiple consecutive emails is not really what CartBounty is doing. As I mentioned before, CartBounty is sending out a maximum of 3 reminders to each abandoned cart. If you see that there are more attempts, you should look into other reasons why this could be happening. You might try reaching out to your hosting provider to get some details.

    And by the way, I know that our own mail server will try to deliver the email to a user 3 times in case the first time it was unable to do that. This is not related with plugins or anything else, but the hosting company’s mail server.

    • This reply was modified 2 years, 5 months ago by Nauriskolats.

    Hi @nauriskolats, @juato4,

    I’m marking the issue as resolved as this isn’t something to be fixed in WP Mail SMTP. If you’d like to check other email service providers instead of your hosting company’s mail server, we have a list of available mailers within WP Mail SMTP.

    If you have any questions, please feel free to continue the conversation.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Invalid email sending loop error’ is closed to new replies.