Failed to send email: Check your configuration settings: Connection unexpectedly closed: The read operation timed out
I am using atlassian/email-notify:0.8.0
My Pipeline Script is:
Hello @Satish Kumar ,
Welcome to Atlassian Community!
From the pipe configuration you shared, it seems like you are sending the e-mail from a Gmail account, but you have configured the HOST variable with the SMTP address of Outlook.
In order to send an e-mail from a gmail account, you will need to configure the HOST with Gmail's STMP address, which is smtp.gmail.com. Following is an example using Gmaiils configuration in the pipe :
- pipe: atlassian/email-notify:0.8.0 variables: USERNAME: 'myemail@gmail.com' PASSWORD: $PASSWORD FROM: 'myemail@gmail.com' TO: 'example@example.com' HOST: 'smtp.gmail.com' PORT: 587 SUBJECT: 'Bitbucket Pipe Notification for your-bitbucket-pipeline'
Please note that due to changes in Google not supporting less secure apps (see Google changes for less secure apps), to make this pipe work with a Google account, you will to create a Google app password.
For more details and examples of using the atlassian/email-notify pipe, you can check its official documentation in the link below :
Hope that helps!
Thank you, @Satish Kumar !
Patrik S
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.