Emails Settings


This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/docs/emails-settings.html
2 Likes

Hello Support,

It would be great to be able to include the profile of the executed suite in the email that is being received. A new variable like ${executionProfileName}.

Thank you,
Cornel Neacsu

5 Likes

It would also be helpful to add new variable for test suite collection names (eg. ${collectionSuiteName}).

Also valuable to have the collection suite name sent to Katalon Analytics in addition to the suite names already there.

Thank you,
Mike Willett.

Hello Katalon Team

I would be really helpful to provide details of how to fetch Hostname , Protocol , Port etc if user like to send email to his/her organization email address.

1 Like

@utkarsh.chaudhary, for corporate email, you can contact your local IT team to get SMTP Host ,Port number and protocol.
Port number is usually either 25 or 587 but better to confirm same from your local IT Team.

1 Like

Thanks @Sachin for reply .
I also tried with my gmail account but getting below error when tried to test email
“Unable to send email to the following server :smtp.gmail.com:25 . Please check configuration on your email server”.
I also check one thread that going on i.e .Mail setup not working properly
but unfortunately we didn’t configure email settings , please let us know what are the detail steps to setup email .

Have you allowed less secure app to be logged in Gmail? That might be blocking your login.
Debug Point:

  1. Are you getting any mail while you try to send Test email? If you are getting any mail in your default account saying ‘last login blocked’ then possibly you do not have enabled less secure app login

  2. if you are not able to see any mail in your default account, there is something wrong with your creds or port or security protocol might be blocking this.

I also had this problem. As Rudra have mentioned allow less secure app to access Gmail

  1. Go to https://myaccount.google.com/security
  2. Enable “Less secure app access”

Host : smtp.gmail.com
Port : 465
Protocol : SSL

I can’t seem to get TLS protocol working for Gmail, though

Btw I recommend creating a Gmail acc just for SMTP cause enabling less secure app will definitely make that Gmail acc more vulnerable

Hello Team

I am to send email using my organization email , majority of the corporate email use outlook as their host , below are the details of domain and Port for outlook email
1.Hostname : outlook.office365.com
2.Port : 993
3.Username : User you organization username(do not enter you org email here , enter your org username which you use to unlock you PC) .
4.Password : User organization password
5.Protocol : TLS

I am still not able to solve the gmail issue .
@rudra : thanks rudra for your input , to answer you question
Have you allowed less secure app to be logged in Gmail? yes I have done that but still no luck
I will keep you guys posted once I found the solution

Hi @utkarsh.chaudhary

I have just tried with my organization email which uses corporate email, office365.com as host. and successfully sent email. I have used below setting.

Host: smtp.office365.com
Port: 587
username: organization email
password: organization password
Protocol: TLS

1 Like

I echo @Cornel_Neacsu request of showing the profile name … this huge benefit as you can tell on which environment the test ran

Hy Guys. Maybe something that would be great for people that works with multiple proyects, we migh need to be able to create multiple templates or Add “ProjectName” into the current list that Katalon already has.

Greetings

1 Like

Hi.
I’m a problem with email settings. My intranet SMTP server uses simple username (not in e-mail format with @ and so on) and requires extra setting of sender email (mail from:) as part of local security politic. When I set username as “tester”(for example), eMail test button in the formular stays not active and email sending does not work.
Please, can You extend eMail formular with “mail from” fields and remove email format restrictions from username?
Thank you in advance
Regards,
Alex

Hi,

I’m trying to use a AWS SES sender account as SMTP server and I’m not able to send report due to username field doesn’t allow names that not matching with an email.

Any solution for this?

Thanks in advance.

Try editing the com.kms.katalon.execution.properties file in your sub directory “\settings\internal” of your project. There is a line “mailConfig.username=” where you can enter your username manually. Hope that did the trick for you.

I have another problem / bug:
No matter what port i enter, the test email will always use smtp.###.com:25 but i need port 587 (TLS at smtp.1und1.de). What’s the point? Can you pls fix this or tell me what i’m doing wrong??? :face_with_raised_eyebrow:

Some issues with email: The value of the port is ignored in the GUI (same problem as Dietrich). Can someone acknowledge that as a bug or provide more support. Thanks,

1 Like

Hi Dietrich,

I’m using through Katalon project settings to configure the email and put the following data.

*Server Name: *email-smtp.eu-west-1.amazonaws.com
*Port: *25, 465 or 587
Use Transport Layer Security (TLS) : Yes

The server configuration is OK, but the user that SES gave me was this:

SMTP username (Example): FGT73GK73H8VGD
SMTP Password (Example): hvvHvHJY&7vvV6gCGc+8hgGGyJ

I can not send TEST mail and send report neither with that SMTP username, Katalon considers it an error because it does not match the email format, I think.

Hi,

deselect “Enrypt authentication data (recommended)” and you will be able to edit the “com.kms.katalon.execution.properties”

@Houba_TripleSeven

Glad i am not the only one:grin:

HI,

I am not able to send a test email. I am getting this error message. Glad if anyone can help me on this.

Hi Dietrich,

I deselected the “Encrypt option” and also edited the “com.kms.katalon.execution.properties” file with SES smtp credentials of AWS. Katalon doesn’t send the email yet, I tried to execute the test suite through terminal and the end of the tests returns the following java error:

Sending report to email: [anonymized@anonimyzed.com]...

System is unable to email report. Reason: org.apache.commons.mail.EmailException: javax.mail.internet.AddressException: Missing final ‘@domain’ in string ANONIMYZED'' at org.apache.commons.mail.Email.createInternetAddress(Email.java:1920) at org.apache.commons.mail.Email.setFrom(Email.java:749) at org.apache.commons.mail.Email.setFrom(Email.java:732) at com.kms.katalon.execution.util.MailUtil.initEmail(MailUtil.java:81) at com.kms.katalon.execution.util.MailUtil.sendSummaryMail(MailUtil.java:118) at com.kms.katalon.execution.launcher.ReportableLauncher.sendReportEmail(ReportableLauncher.java:191) at com.kms.katalon.execution.launcher.ReportableLauncher.sendReport(ReportableLauncher.java:161) at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:99) at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:191) at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:136) at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:66) at java.lang.Thread.run(Thread.java:748) Caused by: javax.mail.internet.AddressException: Missing final '@domain' in stringANONIMYZED’’
at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:915)
at javax.mail.internet.InternetAddress.validate(InternetAddress.java:856)
at org.apache.commons.mail.Email.createInternetAddress(Email.java:1916)
… 11 more

I have anonymized some fields

Thanks in advance

EDIT: I found the cause here: AWS SES IAM credentials

Amazon SES uses IAM credentials instead of email and password due to security reasons. It would be interesting to propose an extension for email tool of Katalon Studio ^^

2 Likes