Forums

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

Email setFrom() groovy jira

Aleksandar Salevski January 9, 2023

I've to use this code to send email from my personal gmail or any other account this mail server does not want to send it, any help?

def email=new Email(aplicantEmail)
email.setFrom("mypresonal@gmai.com")

Should I configure something else in the system email settings?

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
January 9, 2023

Hi @Aleksandar Salevski 

This post might be of interest to you https://community.atlassian.com/t5/Answers-Developer-Questions/Jira-Groovy-Script-help-for-sending-email/qaq-p/464559 since it has a full working code from an Adaptavist personel.

Aleksandar Salevski January 9, 2023

my code is working fine just having problem when I want to set From properties, I want to used other email when sending the email not the Jira Outgoing mail server.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events