Question

Does JMail accepts delimiter(;) or comma(,) as a separator between different email address like CDO.Message.

For example, we can write,

Mail.To="a@a.com,b@b.com" in CDO.Message.

Does the same is valid for JMAIL like the one below.

jMail.AddRecipient ("a@a.com,b@b.com")

I know we can add multiple recipients by calling the AddRecipient again and again but my question is can we do it in a single line like in CDO.Message?

No correct solution

OTHER TIPS

yes you can add multiple recipients by calling the AddRecipient

Yes, you can.

I spent some time figuring this out as well. I tried the recommended array() of recipients but that did not seem to work. The only thing which worked for me so far was a properly formatted multiple recipient string:

$jmail->addRecipient('recipient1@site.com','recipient2@site.com','recipient3@site.com');

Please note the ["] markup. If you replace the ["] with ['] it will not work. It's little "delicate" this way :)

I am using jMail with PHP/COM extension but I am sure you can reuse this principle for ASP or any other language.

I hope this helped.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top