Answer the question
In order to leave comments, you need to log in
When sending mail via SMTP, there is only 1 character in the sender's name, how to fix it?
I use SendMailSmtpClass, which is taken from github
. Messages come to the mail, but there is only 1 character in the sender's name. Do not tell me how to fix it?
Answer the question
In order to leave comments, you need to log in
Because
$headers .= "From: {$smtp_from[0]} <{$smtp_from[1]}>\r\n"; // от кого письмо
// от кого
$from = array(
"Евгений", // Имя отправителя
"[email protected]" // почта отправителя
);
...
$result = $mailSMTP->send($to, 'Тема письма с копиями ', 'Текст письма', $from);
fputs($socket, "MAIL FROM: <".$this->smtp_username.">\r\n");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question