• Resolved stef110

    (@stef110)


    Hi,

    After done things following video “How to Set Up WP Mail SMTP with SendGrid (Fix WordPress Emails!)” on youtube, I tried to send a test mail and return failed. Please help me resolve this!

    Thanks so much!


    Mailer: SendGrid
    from.email: The from object must be provided for every email send. It is an object that requires the email parameter, but may also contain a name parameter. e.g. {“email” : “[email protected]”} or {“email” : “[email protected]”, “name” : “Example Recipient”}.

    And Source code in functions.php is below

    https://i.postimg.cc/vHg1zBKY/Screenshot-2024-05-30-at-12-34-15-PM.png

    The code in pic above is related to web page https://canadasoccer.com/contact/#forward

    Thank you! Looking forward for your great help.

    Much appreciated.

    • This topic was modified 6 months ago by stef110.
    • This topic was modified 6 months ago by stef110.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter stef110

    (@stef110)

    Much appreciated.

    • This reply was modified 6 months ago by stef110.
    Plugin Support Dake

    (@dakeg)

    Hi @stef110

    Thanks for reaching out and we apologize for the delay.

    If you are still experiencing the issue, please note that the error that you are getting is thrown by the SendGrid API.

    The error indicates that the ‘from’ object in your email send request is either missing or incorrectly formatted. In this case the ‘from’ object in WP Mail SMTP is your From Email address that was set in your WP Mail SMTP > Settings > From Email field.

    The ‘from’ object must include an ’email’ parameter, and it can optionally include a ‘name’ parameter. Make sure that your email sending code includes a ‘from’ object that looks like this: {“email” : “[email protected]”} or {“email” : “[email protected]”, “name” : “Example Recipient”}. Since the error occurs with a longer email format, please verify that the email address is correctly formatted and does not exceed any character limits.

    Although you’ve defined it in your theme’s function.php file, is it the same From email address in your settings? Also, are you using the “Force From Email Address” option (to avoid potential conflicts with your theme’s settings).

    While the video tutorial covers all the steps, it may helpful to see an example of the From Email setting I referenced in this section of our documentation (screenshot). on our I hope this helps and let me know how it goes!

    If you are still experiencing issues or you are open to using a different mailer, please let me know, I’d be more than happy to help out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.