unable to send mail through Email Module

Ranorex Studio, Spy, Recorder, and Driver.
Patil
Posts: 6
Joined: Mon Dec 26, 2022 12:29 pm

unable to send mail through Email Module

Post by Patil » Fri Jan 13, 2023 8:41 am

Hi,
As per Ranorex user guide: Automation Helpers- EmailModule.cs, All the required variables are bound to the parameters like- Subject, Body, To, From, ServerHostname, ServerPort, SendPdfReportOnComplete. There respective values are also provided.
but still I'm not able to send mail. It shows 'Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail [PN3PR01CA0026.INDPRD01.PROD.OUTLOOK.COM] '

Please help me out of this.
Also check attached screenshot as well.

Error-
Show/Hide Stacktrace
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)at System.Net.Mail.SmtpClient.Send(MailMessage message)at Ranorex.AutomationHelpers.UserCodeCollections.EmailLibrary.SendEmail(String subject, String to, String from, String body, String[] attachments, String serverHostname, Int32 serverPort, Boolean useSSL, String username, String password) in c:\---\EmailLibrary.cs:line 109


Thanks
You do not have the required permissions to view the files attached to this post.

IvanF
Posts: 151
Joined: Thu Aug 11, 2022 8:55 pm

Re: unable to send mail through Email Module

Post by IvanF » Fri Jan 20, 2023 5:02 pm

Hi, looks like an Outlook error, not specific to Ranorex. There are some suggested fixes here related to the email server configuration - https://social.technet.microsoft.com/Fo ... Exch2016GD

And just to exclude one more possibility, are you running Ranorex as administrator?

Patil
Posts: 6
Joined: Mon Dec 26, 2022 12:29 pm

Re: unable to send mail through Email Module

Post by Patil » Mon Jan 23, 2023 6:09 am

Hi,
Thanks for replying.
I had already gone through that link before posting the query. It needs Admin credentials to make changes. Raised support ticket to IT team regarding the same solution. let's see...
I'm not running Ranorex as admin.
Thanks

IvanF
Posts: 151
Joined: Thu Aug 11, 2022 8:55 pm

Re: unable to send mail through Email Module

Post by IvanF » Mon Jan 23, 2023 2:52 pm

A couple of permission issues overall can be resolved by running Studio as admin, so if that option is available to you, it's genererally preferable.

Patil
Posts: 6
Joined: Mon Dec 26, 2022 12:29 pm

Re: unable to send mail through Email Module

Post by Patil » Mon Jan 23, 2023 3:35 pm

Ohk..
Thank you.