Welcome Guest, Not a member yet? Register   Sign In
Sending HTML Email
#11

[eluser]Chris Newton[/eluser]
You may have logic on your side, but I have white papers, deliverability reports, and experience that prove otherwise... at least when averaged across the email industry as a whole. Agreed, in limited testing, one or another provider may fall to either side, but across the great gamut of web & application based email, I know where the line lies. I work regularly with whitelisting & black listing agencies at a variety of companies like AOL, Verizon, Yahoo, etc. and can tell you, embedded images increase the risk of automatic blockage when sending bulk email (anything over 100 at a time.) As you say, there are many factors that ultimately inform the spam issue, but embedded images is not an industry best-practice, and is more suited when sending image based signatures, or personal email. YMMV, so I'll leave it at that.
#12

[eluser]Edemilson Lima[/eluser]
Quote:and can tell you, embedded images increase the risk of automatic blockage when sending bulk email (anything over 100 at a time.)[/code]

Well, after many extensive tests and statistics reports, if you are saying so, I believe. But I think the embed images can be used for the Emails that an user of a web site receive when he/she finish the register, ask for a password, is notified of a new post or things like that, because each Email have a different contents, so the anti-spam will not threat them as the same thing, repeated hundred times. Unless, maybe, the web site have thousands of simultaneous users everyday. But in any case where we need to send more than one hundred similar messages, like a direct mail, is better to deliver plain text messages to save bandwidth too.

[quote]embedded images is not an industry best-practice, and is more suited when sending image based signatures, or personal email

I agree that is better to send messages with linked images, as this will save bandwidth and mailbox space.
#13

[eluser]codepotato[/eluser]
The way i got this to work was to do the following in the controller / model that you're using to process the email.

Code:
$config = array();
$config['mailtype'] = 'html';
$this->load->library('email', $config);

This clears any defaults set by codeigniter, and just sends using plain html. Works a treat for me!
#14

[eluser]aidehua[/eluser]
I've been pulling my hair out over =3D and =20 and all sorts of unwelcome equals signs that show up in HTML emails in Outlook (breaking links, image srcs, table layouts, line breaks, everything).

This was all while testing on localhost / Windows 7 XAMPP.

Emails looked fine in Gmail / webmail. But not in Outlook or Windows Live Mail.

Tried 108 million things to fix it, read the whole internet looking for a solution. No luck. Still broken in Outlook & Windows Live Mail.

Uploaded everything to live server.

Works fine.

Not really sure what the logic is there. But it works.
#15

[eluser]novice32[/eluser]
When I set send_multipart to false, "3D" still appears but the link works. When true, it didn't work. Try (i.e.
Code:
$config_email['send_multipart'] = FALSE;
) Multipart is not in CI User Guide, but read up on it in libraries\Email.php

I struggled with this for a while.
#16

[eluser]Beano[/eluser]
EMBEDDED IMAGES IN EMAIL

Even though the religious war of embed vs. referenced emails is raging, if anyone wants the ability to embed images into CodeIgniter generated emails, I've extended the mail library to support an embed_image macro....

Basically put the lib extension in your apps lib folder (download from here: Embed image in email) - then in your message body use the macro as follows:

Code:
<html>
<body>
<img src='cid:my_image' />
&lt;/body&gt;
&lt;/html&gt;

&lt;!-- Macro in Windows --&gt;
{embedded_image file=C:\\my_image.png class_id=my_image}{/embedded_image}

&lt;!-- Alternative Linux Macro --&gt;
{embedded_image file=/var/my_image.png class_id=my_image}{/embedded_image}

For a full explanation and code - goto http://thecodeabode.blogspot.com/2010/11...dding.html
#17

[eluser]Unknown[/eluser]
[quote author="aidehua" date="1288671523"]I've been pulling my hair out over =3D and =20 and all sorts of unwelcome equals signs that show up in HTML emails in Outlook (breaking links, image srcs, table layouts, line breaks, everything).

This was all while testing on localhost / Windows 7 XAMPP.

Emails looked fine in Gmail / webmail. But not in Outlook or Windows Live Mail.

Tried 108 million things to fix it, read the whole internet looking for a solution. No luck. Still broken in Outlook & Windows Live Mail.

Uploaded everything to live server.

Works fine.

Not really sure what the logic is there. But it works.[/quote]

I had the same issue with XAMPP on Win 7. After switching to using smtp (127.0.0.1:25) instead of mail, it worked like a charm...




Theme © iAndrew 2016 - Forum software by © MyBB