Unable to send email using SMTP email in Azure Logic Apps

Lee Yong Sheng 41 Reputation points
2021-06-23T12:51:05.347+00:00

Hello everyone, greetings from Singapore!

I am currently developing an email alert feature using Azure Logic App.
The logic app firstly read the data from CosmosDB using documentdb function block, then parsing them into JSON before taking as input into condition logic-checking block.

Previously I tried sending the triggered email using Office 365 outlook, everything goes well as expected.
The logic works in a way I wanted.

Moreover, I am trying to use SMTP connector to send email using my client email address, as the email address is hosted on IMAP/SMTP server.

However, it was unable to send email as error message showing that sender email or recipient email format is incorrect.

I appreciate the help and answers from Microsoft forum.
I attached some snapshots and codeview for reference.

Thank you and regards
Yong Sheng

108661-codeview-23june21-smtp.txt108662-smtp-2.jpg

108628-smtp-5.jpg108655-smtp-3.jpg108656-smtp-4.jpg108586-smtp-6.jpg

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,919 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mike Urnun 9,766 Reputation points Microsoft Employee
    2021-06-28T18:30:55.617+00:00

    Hello @Lee Yong Sheng - It seems like one of the details was provided incorrectly when the SMTP connection was being set up in the beginning step. Specifically, could you verify if the format of the user name is expected to be "alert@yourdomain.com" instead of being "alert" only?


  2. Ajay Singh 1 Reputation point
    2021-12-02T12:53:30.557+00:00

    Initially, I am was also facing the same issue but adding the "From" parameter resolves the issue.

    0 comments No comments