email-ext-plugin in Pipeline script does not send email to group email id even though console says sending email. The same works for individual email id.
[Pipeline] emailextSending email to: group...@BMC.com
Also "cc:" & "bcc:" doesn't work at all from pipeline script, no matter how I try it. Any example of using CC, BCC will be really helpful.
I can send email to same email group from jenkins server through linux 'mail" command. So that's not an issue. Also any comment on usage of CC/BCC will be helpful.
I mean, I was doing it from crontab for sending email before starting job through rest API call from shell script. That is working. However this does not give me facility of using env variables to be used in email as I am doing it outside of jenkins. Hence tried email-ext plugin in my pipeline script as the example given above in description.
If as you say some email gets through its highly likely not jenkins but something in your setup that is the problem. I get tickets about this all the time and it always ends up being mail server or spam filter or similar dropping the emails. Check the logs on whatever server is configured as the email server in jenkins and I am almost positive you will find entries there saying jenkins sent the email, what happens to it after that is outside of jenkins control
Not a good question to ask, however I haven't configured any mail server myself, so which logs to check in the server? Jenkins logs or some linux logs? All I know is same pipeline script send me email if I put my email id in "to:". Also my crontab code which work looks like below which sends email to same group email id
ok, that is empty for me(screenshot attached). So I need to first setup SMTP server and then provide those details in the email config section, right? However this is working for individual email id even without setting that SMTP Server field, is it expected behavior?
Can emails be sent to the group email via normal email methods? We have a similar issue at my company that we are looking into. Sending emails via Outlook to the groups works, but sending from Jenkins does not. It would be interesting to know if you are seeing the same thing.