Closed jonny7 closed 10 years ago
Try this
$mail->setTo('an@emailaddress.com' => 'Mr Administrator');
Is there anything else below $mail->setBody(), other than $mail->send()?
I had to try
$mail->setTo(array('an@emailaddress.com' => 'Mr Administrator'));
and I got the same result. There is nothing mail related below setBody() or send(). I also removed everything below to test and the same result.
I found that removing $mail->Mailer='smtps';
seemed to solve the problem. No idea why and not fully confirmed.
Hi,
I've had this problem for ages in development and not been able to figure it out. When I try and send emails from my Yii app I always seem to get the subject twice and also 2 x To fields, although I don't receive the email twice. In both outlook and gmail I get a duplicate To address so: jonny7@myemail.com, jonny7@myemail.com and it Outlook I also get the subject twice ex. "This is my subject This is my subject". Is this a bug or a misconfiguration on my part?