85
Views
12
Comments
Not being able to send the email
Question

I am trying to send the email through the debugger i found an error that its showing unavailable in current context.

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello,

This is not an error but email is not part of current context so debugger not able to display any details about it.

Can you please explain what is the problem you are facing?

If email is not sent you may need to review SMTP configuration into service center and make sure its correct.

Also if this non production environment so may be emails configured to sent to testing list or specific email Id. You can check this from service center -> administration -> Email


UserImage.jpg
Manan Modi

I have tried from every possible posts related to see this but i am not able to see where my error lies as its not showing in debugger as well and i dont know what to do as i have shared the screenshot thats the only problem i have 

2020-11-25 10-45-32
Mostafa Othman
Champion

Did you check service center?

From Monitoring -> errors to check if there is any error happened then check Monitoring -> Emails to see if mail sent or not

UserImage.jpg
Manan Modi


This is the error its showing me and some of the emails are pending and some are showing this below error

2020-11-25 10-45-32
Mostafa Othman
Champion

This error means password is required, so you don't have any issue into your code or application.

The issue related to SMTP configuration. Are you using Gmail to send email or your company SMTP server?

UserImage.jpg
Manan Modi

I am using my gmail for now to test i am not able to run on my companies smtp
What should be done for the password as i have updated my password and changed there now its showing me pending no error

2020-11-25 10-45-32
Mostafa Othman
Champion

By the way pending means no errors but still SMTP didn't sent email to receiver.

Please check below post for configuring Gmail as SMTP:

https://www.outsystems.com/forums/discussion/82829/sending-email-using-gmail-smtp-server/

2019-01-07 16-04-16
Siya
 
MVP

"An app password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account. App passwords can only be used with accounts that have 2-Step Verification turned on."  Reference : https://support.google.com/accounts/answer/185833?hl=en#zippy=%2Cwhy-you-may-need-an-app-password%2Capp-passwords-revoked-after-password-change

As suggested by @Mostafa Othman , you need to create an app password if you want to use Gmail to send emails from OutSystems.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Hanan,

An e-mail is not something the debugger can show any values of. The "-unavailable in current context-" message just means "I cannot show anything useful of this object".

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.