Postmaster-for-Craft-CMS
Postmaster-for-Craft-CMS copied to clipboard
Error sending out emails
Hi,
I'm getting an internal server error when the plugin tries to send out the email for both PHP Mail and Sendmail. When i do a test email send from the Craft Email settings page both seem to send out fine. The issue only seems to happen when postermaster tries to email out.
Please find attached my settings.
Look forward to your reply :)
Thanks for the report on this. I am looking into it. I will get a fix for this asap. I have no idea what is going wrong, but need to test locally to see if I can duplicate this issue.
I just tested this locally and it's working fine for me. For reference, here is the code that is used to send emails with Craft. I think if there is an error, it's something within Craft itself because I am just using the official methods.
$emailModel = new EmailModel($model->settings->getAttributes());
$emailModel->cc = explode(',', $model->settings->cc);
$emailModel->bcc = explode(',', $model->settings->bcc);
$success = $this->craft()->email->sendEmail($emailModel);
Does this still work as I can not get BCC or CC working?
Brand says you have to pass an array with the name and email in it here: http://craftcms.stackexchange.com/questions/10268/how-to-set-cc-or-bcc-emails-to-emailmodel
Anyone else had the same problem?