10-06-2011, 08:51 PM
[eluser]Unknown[/eluser]
Hi everyone,
I'm trying send email and wish to have the "friendly" recipient name being included in the email. All I get is just the email address and not the recipient's name.
Does anyone know why? I've seen references on the web to a second parameter to the "to" function for passing in a friendly name. Having a look at the CI source/documentation, there doesn't appear to be any such parameter?
Hi everyone,
I'm trying send email and wish to have the "friendly" recipient name being included in the email. All I get is just the email address and not the recipient's name.
Code:
$this->email->to('John Smith <[email protected]>'); // emails displays as [email protected]
$this->email->to('"John Smith" <[email protected]>'); // emails displays as [email protected]
$this->email->to('<[email protected]>','John Smith'); // emails displays as [email protected]
Does anyone know why? I've seen references on the web to a second parameter to the "to" function for passing in a friendly name. Having a look at the CI source/documentation, there doesn't appear to be any such parameter?