Postmaster-for-Craft-CMS icon indicating copy to clipboard operation
Postmaster-for-Craft-CMS copied to clipboard

Error sending out emails

Open elivnjak opened this issue 9 years ago • 3 comments

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 :)

sendmail-error postmaster-error email-settings postmaster-service-settings postmaster-settings parcel-settings

elivnjak avatar Jan 06 '15 01:01 elivnjak

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.

objectivehtml avatar Jan 07 '15 16:01 objectivehtml

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);

objectivehtml avatar Jan 07 '15 16:01 objectivehtml

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?

green17 avatar Dec 13 '16 23:12 green17