Error sending Email syntax error cannot decode response... i have tried to send an OTP message to the Email but i'm facing such issue in the service center.
Hi @Balu K ,
https://success.outsystems.com/documentation/11/building_apps/sending_emails_from_apps/sending_emails/
Regards,
Manish Jawla
Hi @Manish Jawla I have done this email otp verification I another environment and it's working properly... So there is no mistakes in logic... It's only not working in my personal environment... And this is the first time
Another environment is also personal environment? or enterprise?
It's personal only...
HI @Balu K ,
Are you using gmail account for send email functionality or external smpt provider?
Can you check you limit regard sending email, or do you link this new application for new personal environment for sending email? because if it's working fine for previous personal environment that means code is fine, it's only configuration or limit which we might causing the issue.
Is there way you can check the email service provider log?
Hey @Balu K ,
It seems, The email doesn’t have a valid “To” address.
That’s why you're getting: RCPT TO: <> And then: 555 5.5.2 Syntax error, cannot decode response
Check the "To" address in your logic:
Open the logic (Server Action) where Send Email is used.
Ensure that To, Cc, and Bcc fields have valid, non-empty email addresses.
Example:
Email.To = GetUserById.List.Current.User.EmailOr Email.To = "someone@example.com"
Add a Null Check / Validation Before Sending:
Use a condition like:If(IsNullOrEmpty(GetUserById.List.Current.User.Email), Skip Send, Proceed)
Hope it help you.Thanks