[DUPLICATE] -Multiple calls to JUtility::sendMail results in Multiple recipients - Joomla! Forum - community, help and support
i have been experiencing strange behaviour when sending mail different recipients using jutility::sendmail method. best way describe behaviour example;
now happens above first message's recipient (i.e. address) 'spauldingsmails@example.com' second message's recipient 'spauldingsmails@example.com' , 'eleuw@example.com' (i.e. 'spauldingsmails@example.com, eleuw@example.com').
would correct in saying line jmail::getinstance(); in jutility::sendmail method getting instantiated jmail object , continually adding addresses via jmail::addrecipient method?
i'm interested know if else experiencing problem or case of me incorrectly using jutility::sendmail send multiple messages different recipients.
code: select all
function sendnotification()
{
$subject = 'message example';
$body1 = 'spaulding! did tell language?!';
jutility::sendmail('eleuw@example.com','judge smails', 'spauldingsmails@example.com', $subject,$body1);
$body2 = 'sorry grandpa, forgot.';
jutility::sendmail('spauldingsmails@example.com', 'spaulding smails', 'eleuw@example.com', $subject, $body2);
}
now happens above first message's recipient (i.e. address) 'spauldingsmails@example.com' second message's recipient 'spauldingsmails@example.com' , 'eleuw@example.com' (i.e. 'spauldingsmails@example.com, eleuw@example.com').
would correct in saying line jmail::getinstance(); in jutility::sendmail method getting instantiated jmail object , continually adding addresses via jmail::addrecipient method?
i'm interested know if else experiencing problem or case of me incorrectly using jutility::sendmail send multiple messages different recipients.
Comments
Post a Comment