Hi,
spoke too soon.
I got it working :)
Forgot to change in Configuration -> Email Options
Use MIME HTML When Sending Emails = true
Just to let anybody else know.
Thanks all
Hi,
spoke too soon.
I got it working :)
Forgot to change in Configuration -> Email Options
Use MIME HTML When Sending Emails = true
Just to let anybody else know.
Thanks all
Is this fix for email only or for the newsletter?
I have made Dr Byte's suggested amendments but still find that I cannot receive html emails - they just arrive blank. Any ideas?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Ah! I've been using 'Send email' as the test. I've just sent a newsletter to admin and it arrived [although it had been converted to plain text in the process and delivered to my spam folder, but perhaps that's due to my own email settings on my PC??].
So thanks for the fix, but why isn't the 'send email' working with html emails?
High2k,
Don't think we've asked this yet, in Admin-Config-Email Options do you have 'Use MIME HTML when sending emails' set to true?
OK, if some mail is getting through it means that it is possible to send mail, even if the HTML is being lost along the way. ( hope you have Admin email format set to HTML?
Check the headers on the email/newsletter you received - in Outlook, open the email, then file-properties-details-message source. If there is a return path, reply to or a received from or similar with <nobody> listed, you need to try and get 'Emails must send from known domain' working.
If you are using PHP as the mail transport, switch to sendmail -f to see if that works.
You also need to ensure that there is an Emails sent FROM address defined in email options.
Does your hosting co. have any guidelines or recommendations as to the recommended email setup?
Hi,
I don't have the 'detail' option in Outlook. I just have properties > general.
However, I do note that where it says 'message type' it says plain text. Surely it should say rich text or html?
In admin, email format has alwys been set to HTML, and email sent from has always had an address.
I also notice that if I send a rich text message that only has text in it, then the text does come through, but it is unformatted. If I add an image to the email then the image does not appear at all - not even the little missing image box that we're all used to.
It therefore appears that although I have selected html emails, they are just defaulting to plain text.
Normally yes, but not necessarily. You mentioned implementing Dr. Bytes fix in an earlier post. Were you referring to this - referenced in post 20 in this thread?
// if no customer email record found, and admin email format is set to HTML, and sending newsletter, and admin is logged in, use HTML:
if ($customers_email_format_read->RecordCount() == 0 && ADMIN_EXTRA_EMAIL_FORMAT == 'HTML' && in_array($module, array('newsletters', 'product_notification')) && isset($_SESSION['admin_id'])) {
$customers_email_format = 'HTML';
}
If you don't have that in place, all admin emails go out as plain text.
On customer mail, I seem to remember that the default is also text.
Setting a 'FROM' email address is also of limited use unless 'Send from known domain' is also set to true, as this gets rid of 'nobody' as the mail source.
Unfortunately, that requires having a mail transport that would allow it.
At this stage I'd say ask your hosting company what mail settings they suggest to allow you to send HTML mail, and set reply to and envelope from addresses
Bookmarks