from($from[, $name = ''[, $return_path = NULL]])
Parameters: |
|
---|---|
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.
Please login to continue.