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:
1 | $this ->email->from( '[email protected]' , 'Your Name' ); |
You can also set a Return-Path, to help redirect undelivered mail:
1 | $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.