Error "Invalid format for email address: :" from wordpress form conected to Email-Communication-Services

Celso Sotomarino 0 Reputation points
2024-01-15T19:49:56.56+00:00

I hosted a wordpress web in azure.
The web has a form which was supposed to send by email a mail everytime the form is completed.

I followed this procedure https://techcommunity.microsoft.com/t5/apps-on-azure-blog/wordpress-on-azure-appservice-email-integration/ba-p/3890486 Apparently the web is conected to the mail server but something in the config is missing, because I read this messaje on the log "Invalid format for email address: :" Any idea how to fix this issue?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
990 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 23,776 Reputation points Microsoft Employee
    2024-01-16T08:01:55.2566667+00:00

    @Celso Sotomarino Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    1. When you deploy Wordpress on App service from Marketplace it interns create an Azure communication email service and provisions a managed domain as well. Are you using that managed domain to send email or have you created a new managed domain & ACS resource?
    2. If you are using the default create managed domain, can you check the below values.
    • Check whether value of app setting WP_EMAIL_CONNECTION_STRING is correct or not.
    • Right managed domain is associated with the communication service that is linked to app service.
    • Make sure the from address that you are using in your email action is same with the email address that present in Mail from address under Email Services of your email service domains as shown below.

    enter image description here

    If the above values are correct and you are still facing the issue. please send an email with subject line “Attn:Venkatesh |" <title of this thread> to AzCommunity@microsoft.com referencing this thread with your Azure subscription ID, webapp name, ACS details, I will follow-up with you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.