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
Post a Comment