Welcome Guest, Not a member yet? Register   Sign In
Gmail + SMTP + Linux + Email library
#14

[eluser]shane_[/eluser]
If you are using PHP with the Suhosin patch HTML email will be dropped at your server. If you check your server logs you'll see a message like:

Quote:ALERT - mail() - double newline in headers, possible injection, mail dropped (attacker 'xxx.xxx.xxx', file '/path/to/codeigniter/system/libraries/Email.php', line 1519)

The simple way to resolve this is to edit your php.ini. Change

Code:
suhosin.mail.protect = 1

to

Code:
suhosin.mail.protect = 0

This is why email seems to work perfectly with mailtype = text and not with mailtype = html.


Messages In This Thread
Gmail + SMTP + Linux + Email library - by El Forum - 03-28-2010, 02:49 PM
Gmail + SMTP + Linux + Email library - by El Forum - 03-28-2010, 03:19 PM
Gmail + SMTP + Linux + Email library - by El Forum - 03-28-2010, 03:24 PM
Gmail + SMTP + Linux + Email library - by El Forum - 03-28-2010, 04:22 PM
Gmail + SMTP + Linux + Email library - by El Forum - 03-28-2010, 04:25 PM
Gmail + SMTP + Linux + Email library - by El Forum - 03-29-2010, 12:40 AM
Gmail + SMTP + Linux + Email library - by El Forum - 03-29-2010, 01:19 AM
Gmail + SMTP + Linux + Email library - by El Forum - 03-29-2010, 05:32 AM
Gmail + SMTP + Linux + Email library - by El Forum - 03-29-2010, 11:59 AM
Gmail + SMTP + Linux + Email library - by El Forum - 03-29-2010, 05:30 PM
Gmail + SMTP + Linux + Email library - by El Forum - 04-01-2010, 06:49 AM
Gmail + SMTP + Linux + Email library - by El Forum - 04-01-2010, 07:05 AM
Gmail + SMTP + Linux + Email library - by El Forum - 04-01-2010, 07:10 AM
Gmail + SMTP + Linux + Email library - by El Forum - 04-25-2010, 05:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB