Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script runner unable to send email to a distribution list

Rajat Gupta June 22, 2016

I am using script runner's custom script option to send a custom email. The script works fine if email is sent to a particular users. However, it fails when being sent to a distribution list. Can you please let me know if there is any configuration which I am missing.(A note: There is no error message in mail queue)

Following is the error message:

Time (on server): Wed Jun 22 2016 18:49:44 GMT-0400 (EDT)

The following log information was produced by this execution. Use statements like:log.info("...") to record logging information.

2016-06-22 18:49:44,357 ERROR [workflow.ScriptWorkflowFunction]: *************************************************************************************
2016-06-22 18:49:44,358 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: DEMO-6, actionId: 4, file: <inline script>
com.atlassian.mail.MailException: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:214)
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:151)
	at com.atlassian.mail.server.SMTPMailServer$send.call(Unknown Source)
	at Script331.sendEmail(Script331.groovy:87)
	at Script331$_run_closure1.doCall(Script331.groovy:77)
	at Script331.run(Script331.groovy:58)
Caused by: javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1950)
	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1195)
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendMimeMessage(SMTPMailServerImpl.java:226)
	at com.atlassian.mail.server.managers.EventAwareSMTPMailServer.sendMimeMessage(EventAwareSMTPMailServer.java:25)
	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:176)
	... 5 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
;
  nested exception is:
	com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
	at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1803)
	... 9 more
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 #5.1.0 Address rejected.
	... 10 more

2 answers

0 votes
Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 22, 2016

The error is coming from the SMTP server. Is the email address allowed to receive external emails?

 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 22, 2016

That's not a Script Runner or JIRA error.

The email address you are sending the mail to is not known to the email server it is going to.   It's not a valid address.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events