Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,268
Community Members
 
Community Events
165
Community Groups

Sending email via pipe is failed in bitbucket pipeline

Hi All,

I am trying to send the build status via email using email-notify pipe but its failed with sending failed.

 

- pipe: atlassian/email-notify:0.4.3

variables:

USERNAME: 'yyy@xxxx.com'

PASSWORD: $PASSWORD2

FROM: 'yyy@xxxx.com'

TO: 'abcde@xxxx.com'

HOST: 'corporate.mail.protection.outlook.com'

SUBJECT: '${ALERT_TYPE}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}'

DEBUG: 'true' 

Host is corporate office 365 domain

Error message

image.png

Outlook office 365 settings in my account

image.png

 

2 comments

Looks like the port is blocked because that SMTP host only supports port 25.

Ideally you should use smtp.office365.com as the host if you want the port to be 587 (the default, which you don't indicate so it must be). This is the recommended way since SPF will be valid.

That doesn't support MFA though, so if you need that you need to change the port to 25 and use the host you have above. That doesn't support external emailing, which normally is fine. SPF will also fail, so it may be blocked unless you make some rules. You might be able to figure out the SPF setting from Atlassian's TXT record and add it to yours.

Hi! Have same issue on my Pipelines in BitBucket. 

Here is my ymlFile. Sending from gmail account to gmail account. When try to add Port - it fails telling that there is no way to send an email

ymlFile.jpg

And this is what I receive in the end

sendingEmail.jpg

If anyone can help me with that I would be very appreciated! Happy holidays!

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,177 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you