Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error sending out emails #5

Open
elivnjak opened this issue Jan 6, 2015 · 3 comments
Open

Error sending out emails #5

elivnjak opened this issue Jan 6, 2015 · 3 comments

Comments

@elivnjak
Copy link

elivnjak commented Jan 6, 2015

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

@objectivehtml
Copy link
Owner

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
Copy link
Owner

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

@green17
Copy link

green17 commented Dec 13, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants