CI_Email::from()

from($from[, $name = ''[, $return_path = NULL]])

Parameters:
  • $from (string) – “From” e-mail address
  • $name (string) – “From” display name
  • $return_path (string) – Optional email address to redirect undelivered e-mail to
Returns:

CI_Email instance (method chaining)

Return type:

CI_Email

Sets the email address and name of the person sending the email:

$this->email->from('[email protected]', 'Your Name');

You can also set a Return-Path, to help redirect undelivered mail:

$this->email->from('[email protected]', 'Your Name', '[email protected]');

Note

Return-Path can’t be used if you’ve configured ‘smtp’ as your protocol.

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

Please login to continue.