I\'m sending mail from Jenkins to an anonymous SMTP relay internally. That relay then securely sends mail to exchange online via TLS on port 587. The transport works perfectly,
import javax.mail.Message.RecipientType import javax.mail.Address import javax.mail.internet.InternetAddress import javax.mail.internet.MimeMessage msg.setFrom(new InternetAddress("john...@server.com"))