CI generated email |
[eluser]onblur[/eluser]
I'm using CI 1.7 to send emails using smtp protocol. The email content is generated using views and uses simple html. Email is configured to send email as html. However, when viewing the received email, e.g. with gmail, it looks like the message below (exactly how it is displayed). I'm not sure what is going on here. The views are simple, e.g.: Code: <html> Thanks. Code: Content-Type: multipart/alternative; boundary="B_ALT_49718b66e0888"
[eluser]Hibiscus[/eluser]
I was running in to exactly the same problem. My fix was this: In /system/libraries/Email.php change the following line: Code: $hdr = ($this->_get_protocol() == 'mail') ? $this->newline : ''; to: Code: $hdr = ($this->_get_protocol() == 'mail') ? '' : ''; Messages seem to come through okay in Gmail now.
[eluser]winter[/eluser]
This should probably be done via the email config: newline See: http://ellislab.com/codeigniter/user-gui...email.html You probably don't want to hack the system libs if there is another way.
[eluser]TheFuzzy0ne[/eluser]
It would be good if we could see how you've configured the Email class. Please can we see you controller? |
Welcome Guest, Not a member yet? Register Sign In |