CI_Email::set_alt_message()

set_alt_message($str)

Parameters:
  • $str (string) – Alternative e-mail message body
Returns:

CI_Email instance (method chaining)

Return type:

CI_Email

Sets the alternative e-mail message body:

$this->email->set_alt_message('This is the alternative message');

This is an optional message string which can be used if you send HTML formatted email. It lets you specify an alternative message with no HTML formatting which is added to the header string for people who do not accept HTML email. If you do not set your own message CodeIgniter will extract the message from your HTML email and strip the tags.

doc_CodeIgniter
2016-10-15 16:31:30
Comments
Leave a Comment

Please login to continue.