My Automation framework when completes the execution of test cases, it sends a mail to me with the link to execution report & a log file as an attachment. Now the audience for the report has expanded & we need to send the mail to a group email address.
When I set the email (to say firstname.lastname@example.org) none of the users in the group receives the mail. Where as if I send the email to my email address or anyone else email address it works.
I get no logs or error for this & so I am not able to understand the issue correctly.
An insight from the experts will help in understanding the issue.
I got to know that "Java doesn't know whether an email address is for a single user or a group. Probably the issue with SMTP Server". HOW!!
To elaborate this a bit more for you, when the test-team get the bits to test from dev-team, an email get floated automatically from Electric Commander to a group email address about the build generation. I guess with this in reference you may be able to explain more. I believe there must be a way to address this issue. Your expert advice will be more than a help.
Also, do i have to expand the group email to all the individuals on the list because there is no way i can send mail to a group e-mail address ?
I was wondering how come other email application like Gmail or Outlook itself will be handling it !! It should be as simple as sending a mail. do you know the root cause behind the issue. Though I will try to expand the group email to all the individuals on the list.
As I said, there is no concept of "sending to a group address" as far as Java is concerned. Java has no knowledge of that, nor does it need to; it's up to the mail server to distribute a mail to all group members in that case.
One thing you can do is to turn on the JavaMail debug flag which will cause all kinds of information to be output. If that looks like everything is OK on the client side, you will have to work with the mail server admin to debug this further.