I have Javamail working as far as sending mail goes, but I am unable to get it to send to more than one recipient.
I tried the following:
InternetAddress[] to = InternetAddress.parse((String)to);
where 'to' is equal to "bob@bob.net,bob2@bob.net".
If I just have 1 email address in the String 'to' it will send, but if I try and give it a comma seperated list it will not.
I don't know whether it is a formatting issue or I am just not calling the parse method properly.
Any help would be appreciated.
Thanks,
Al
I tried the following:
InternetAddress[] to = InternetAddress.parse((String)to);
where 'to' is equal to "bob@bob.net,bob2@bob.net".
If I just have 1 email address in the String 'to' it will send, but if I try and give it a comma seperated list it will not.
I don't know whether it is a formatting issue or I am just not calling the parse method properly.
Any help would be appreciated.
Thanks,
Al