• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Email Recipient Name

#1
[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.

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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.