Query

hi,

when sending email how to send two emails at a time

for example:

mailer.tos().appendAddress(toEmail) in this case one email is sending. How to pass two parameters?

i wrote code mailer.tos().appendAddress(toEmail,exceptionmail) && mailer.tos().appendAddress(toEmail + exceptionmail) but its not working could you please clarifies it.

You have to call appendAddress() twice:

mailer.tos().appendAddress('a1@b.c');
mailer.tos().appendAddress('a2@b.c');