I would like to use the default bitbucket user account to send out an email using the atlassian/email-notify:0.8.0 pipe in after-script section of my BitBucket pipeline.
I have tried sending emails out from my organization-provided Microsoft accounts but there are firewalls blocking it. I do not have any email server to send out such emails from the pipeline.
If I can leverage the default pipeline emailer (notifications-noreply@bitbucket.org) for this purpose it'd be great. Or any in-house email system that doesn't require any authentication other than a BitBucket Username and App Password would suffice.
Suggestions are welcome!
Hello @Karthik Arun R and welcome to the community!
I'm afraid it's not possible to configure the atlassian/email-notify:0.8.0 to send emails on behalf of the bitbucket default email user (notifications-noreply@bitbucket.org).
In order to use this pipe, you will need to have your own email server or use a third-party provider of your preference such as Gmail, Outlook, Yahoo,etc, that allows you to create a free email account.
Essentially, the pipe works by connecting to the SMTP server provided in HOST variable and triggering the send of an email. This connection with the SMTP server requires authentication, which is configured differently depending on the mail provider you are using. Since the authentication is with the SMTP server, bitbucket username and app password are not applicable, and instead you will need to use the SMTP credentials you have configured on the mail provider end.
You can find more details on how to configure the atlassian/email-notify pipe using the official documentation :
In that documentation you will also find links to some common email providers' docs with instructions and how to set them up.
Thank you, @Karthik Arun R !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.