cancel
Showing results for 
Search instead for 
Did you mean: 

Configuration for sending Mail on Job fail

Former Member
0 Kudos

Hi All,

I have a requirement to send a mail, when ever the job fail. I tried with smtp_to() and Mail_to() function but with both i am unable to send mail, I configured the sender and server info in DS server manager. but still not able to send the mail. I need to send mail to the customer gmail. What are else configurations i need to do. can any one please help me.

I followed the Note1573029

but at fourth step i am facing an issue as the user is not authenticated to send anonymous mail.

Thanks

PrasannaKumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prasanna,

In order to send mails, your server requires authentication  It is caused due to SMTP relay rights on Exchange server.

During configuration of SMTP Virtual Server, under Access tab there's a Relay option, try Granting permission for your server their.


Also, while configuring for Gmail Exchange Server under DS Server Manager,  provide details like Port, TLS/SSL details too.


Regards,

Himanshu

Former Member
0 Kudos

Hi Himanshu Jain

where should i need to mention the port, TLS/SSL details in the DS Server Manager?? If u can provide any video or doc link, it will be more helpfull for me.

Thanks

PrasannaKumar

former_member208402
Active Contributor
0 Kudos

Hi Prasana,

If you want to send Job fail notifications, take a script in Catch block and use smtp_to() function to send job fail alerts.

Mail_to() doesn't work in your case as mail_to() is used to send mails to within client\company server only.

smtp_to() function is used to send mails within the server and outside the server also.

write the syntax correctly.

use this below link for configuration settings and for more information.

https://scn.sap.com/thread/1971947

Thanks,

Ravi kiran.