Email Connect

Email Connect is used to create a connection with the mail account in order to send or retrieve data from the mentioned mail account.

Email Connection String format : Type | IP-Address/Host Name | Port | Security Type | User Name | Password

The email protocol types available in BQ platform are :

  1. IMAP

  2. POP3

  3. SMTP

The security types available in BQ platform are :

  1. None

  2. SSL

  3. TLS

 

Steps to create an Email Connection :

  1. Click on CONFIGURE on left panel.

  2. Click on Email Connect.

  3. Enter the meta data for :

    1. Variable name

    2. Type : Select from IMAP, SMTP, POP3

    3. IP Address / Host Name

    4. Port

    5. Security Type : Select from None, SSL, TLS

    6. User Name : Mail account username

    7. Password : Mail account password

  4. Click on Save button.

The Email connection variable created can be used in the test case.

If you are trying to configure your Gmail account, you can find the IP-Address/Host Name, Port, Security Type information by following either of the two ways :

Following the below steps :
1- Click on the Settings icon on your mailbox
2- Click on Settings
3- Click on Forward and POP/IMAP tab
4- Click on Learn More Link (under IMAP access section)

Link : https://support.google.com/mail/answer/7126229?hl=en&visit_id=637256414356189534-3292911035&rd=2

If you are still unable to access your account, please follow the link : https://support.google.com/a/answer/6260879?hl=en 

 

If you are using Office365, please use the below details :

IMAP

Host Name : outlook.office365.com

Port : 143 or 993

Encryption method : SSL

SMTP

Host Name : smtp.office365.com

Port : 587

Encryption method : TLS

POP3

Host Name : outlook.office365.com

Port : 110 or 995

Encryption method : SSL

 

Also, if you are using java version 291, you might encounter error “Could not connect to mail server with given credentials, Please validate“ with keyword ‘setMailConnection’.

As per JDK 8u291 Update Release Notes :

TLS 1.0 and 1.1 are versions of the TLS protocol that are no longer considered secure and have been superseded by more secure and modern versions (TLS 1.2 and 1.3)

These versions have now been disabled by default. If you encounter issues, you can, at your own risk, re-enable the versions by removing "TLSv1" and/or "TLSv1.1" from the jdk.tls.disabledAlgorithms security property in the java.security configuration file.

 

Watch a video :

This video displays how to create a mail connection and use it in a test case.

 

 

 

Â