Welcome Guest, Not a member yet? Register   Sign In
[Solved] sending mails with multipart/alternative
#1

(This post was last modified: 05-10-2017, 12:55 PM by raknjak.)

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 
and
PHP Code:
$this->email->set_mailtype("html"); 
isn't documented.

I'm stuck at the boundary, I have no idea how to get that variable for usage in the message.

Thank you, friend.
Reply
#2

(This post was last modified: 05-10-2017, 11:55 AM by InsiteFX. Edit Reason: Correct keyboard mistype )

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(05-10-2017, 11:55 AM)InsiteFX Wrote: 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.

Thank you, InsiteFX.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB