phpmailer - Change From name PHP mail -


i have question

i have php module sends mail, , works fine, have problem.

when receive mail in name receive sitemessageadminpage@admin.com. want leave name.

i have code

$email_from2="adminpage@admin.com";     $headers .= 'from: page.com' . $email_from2 . "\r\n" .             'reply-to: ' . $email_from2 . "\r\n" .             'x-mailer: php/' . phpversion(); 

please help

if have problems sending mail(), use phpmailer library: https://github.com/phpmailer/phpmailer


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -