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 [email protected]

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("[email protected]", "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 [email protected] 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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3412316a-7ba0-4e6c-8daf-ec74e5042fcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to