[Solved] sending mails with multipart/alternative - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] sending mails with multipart/alternative (/showthread.php?tid=68014) |
[Solved] sending mails with multipart/alternative - raknjak - 05-10-2017 Hello I've been looking around to no avail to find out how exactly we use the Email Class to send plain and html emails together. I know the general procedure in PHP but it seems stuff like PHP Code: $this->send_multipart PHP Code: $this->email->set_mailtype("html"); I'm stuck at the boundary, I have no idea how to get that variable for usage in the message. Thank you, friend. RE: sending mails with multipart/alternative - InsiteFX - 05-10-2017 You can set an alternative message that is text and not html, after you set your html add this after it. PHP Code: $this->email->set_alt_message('This is the alternative text message'); You can also setup a string variable and pass that also. RE: sending mails with multipart/alternative - raknjak - 05-10-2017 (05-10-2017, 11:55 AM)InsiteFX Wrote: You can set an alternative message that is text and not html, Thank you, InsiteFX. |