Notifications
Clear all
General Questions
2
Posts
2
Users
0
Reactions
1,689
Views
Jan 19, 2019 4:07 am
I am trying to send a email from my site, but I receive an error:
PHP Warning: mail(): SMTP server response: 550 <test@gmail.com> No such user here in verificaSenha.php on line 15
My code is:
ini_set('SMTP', 'webmail.grupo360web.com.br');
ini_set('smtp_port', 25);
ini_set('sendmail_from', 'test@grupo360web.com.br');
$to = 'test@gmail.com';
$subject = 'test';
$message = 'test';
$headers = 'From: Test <test@grupo360web.com.br>' . "rn" .
'Reply-To: test@grupo360web.com.br' . "rn" .
'X-Mailer: PHP/' . phpversion();
$email = mail($to, $subject, $message, $headers);
if ($email){
echo 'ok';
}else{
echo 'no';
}
1 Reply
Jan 20, 2019 1:06 am
Hello,
I'm afraid it's a bit outside the scope of SolidCP Support.
Your best to ask this question on a php coding blog.
Regards,
Marco