Welcome Guest, Not a member yet? Register   Sign In
Setting Email Recipient Name

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.

$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?

Theme © iAndrew 2016 - Forum software by © MyBB