send html format |
[eluser]tirso[/eluser]
hi to all What's wrong with my code, This is my first time to use this class. I received it with my email but there is no any contents. I tried to remove ($this->email->mailtype = 'html' and I received it with contents but html element was included. Thanks in advance Code: function send(){
[eluser]umefarooq[/eluser]
hi try the following line of code it will work fine. Code: replace
[eluser]tirso[/eluser]
Hi, thanks for your replied, still blank content. any thoughts... Thanks Tirso
[eluser]Jay Logan[/eluser]
For HTML e-mails, I do something like this: Code: $this->load->library('email'); Then just make a view file containing the message HTML and use code like <?= $name_first ?> to display info.
[eluser]tirso[/eluser]
hi, thank's for your response, I tried your code but still the same blank contents. I checked the full header in my yahoo account and maybe there is something wrong. Here is the header. Quote:Return-Path: <[email protected]>
[eluser]David Johansson[/eluser]
try to echo your $message before sending the email to see if something is wrong already before the email is sent.
[eluser]tirso[/eluser]
Hi, I did what your suggestion, there is no error with the content. It was displayed the inputted message. here is the full header after some revisions Quote:Return-Path: <[email protected]>
[eluser]David Johansson[/eluser]
You still have many content-type in the header... maybe you should try to clear the mail variables first with $this->email->clear();
[eluser]David Johansson[/eluser]
you could also use the print_debugger function to se everything before sending it: $this->email->print_debugger();
[eluser]tirso[/eluser]
hi, here is the printed result of the debugger. Actually I tried to send a simple html message but still doesn't work. here is now the code Code: $this->load->library('email'); Quote:Your message has been successfully sent using the following protocol: mail |
Welcome Guest, Not a member yet? Register Sign In |