Hi,
I'm looking for a way to set the email alias when we send email. We are using the same account for many services on a single machine and use alias to filter the email on client side.
the email ext is set to use the general account ser...@MyCie.com
But I want the email to be output as one of the alias so other developer can easily filter them (jenkins@, redmine@, ...). But the build admin only have 1 account to monitor server@
Before pipeline I was doing the following pre send script:
import javax.mail.Message.RecipientType
import javax.mail.Address
import javax.mail.internet.InternetAddress
import javax.mail.internet.MimeMessage
msg.setFrom(new InternetAddress("jen...@MyCie.com", "Build Server Jenkins"));
was also using the $DEFAULT_PRESEND_SCRIPT for each project with this. Now I dunno how to do this, changing the reply-to does work but I would like to send it as jen...@MyCie.com too.
I know this should probably not be done this way but I would still like to keep that feature on if possible and since Gmail doesn't allow to log in with the alias account I'm a bit lost how to do so :-(
If anybody have a quick even dirty solution I would be glade,
Thanks,
Jerome