Reason for not receiving email #2350
behzadi9667
started this conversation in
General
Replies: 2 comments 4 replies
-
Have you tried setting this parameter and looking at the output, after your test? |
Beta Was this translation helpful? Give feedback.
2 replies
-
You have no error checking at all, so you won't know when things are not working. Enabling debug output won't change how anything works, but it will show you what is happening in detail. If your from address is a gmail address and you're sending it through mailtrap, gmail will reject it because it's forgery, and is not permitted by Google's SPF. Mailtrap should be spotting this and rejecting your messages. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, which one is as follows, but whatever I do, I do not receive the email, maybe there is a problem with my server ?? But the PHPmailer function returns the TRUE value
$phpmailer = new PHPMailer(); $phpmailer->isSMTP(); $phpmailer->Host = 'smtp.mailtrap.io'; $phpmailer->SMTPAuth = true; $phpmailer->Port = 2525; $phpmailer->Username = Secret; $phpmailer->Password = Secret; $phpmailer->setFrom($email,$name); $phpmailer->addAddress("ajdar9667@gmail.com"); $phpmailer->CharSet= "UTF-8"; $phpmailer->isHTML(true); $phpmailer->Subject = $subject ; $phpmailer->Body = $text ; $t = $phpmailer->send();
@bd808 @freephile @mscdex @eexit
Beta Was this translation helpful? Give feedback.
All reactions