-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Red question mark appearing beside the domain's email #891
Comments
What do you mean by "red question mark". Are you talking about when they receive the email in something such as gmail, and they are getting the message flagged with a question mark in their webmail client? |
The red question mark appears instead of the profile photo, and when you hover it, it says that gmail.com can't verify that domain.com actually send this email. |
Assuming you have your domain set up properly to send email (reverse dns, etc), try using DKIM with phpmailer. I had issues with gmail saying emails weren't legitimate before I enabled DKIM. |
How? I asked my hosting provider and it says that DKIM and SPF is already enabled to my account, I am using a shared hosting service. |
It might help if you posted a screen shot. It's really unclear where this problem is. |
That is only my problem, when sending an email using my domain's email + phpmailer I get that. (I even tried domain's email + gmail and domain's email + mail() and still get that.) |
Can you view source on the message and post the headers here; they will usually say what the problem is. |
No, do what I said - view source of the message and post the headers, as text. |
|
The critical part is this:
You need to add your source address to your SPF record; there's nothing wrong with your code or the message. |
Do you mean by source address is this |
Yes. You would add that to your SPF using a clause like |
please tell me also
|
That message was not sent with PHPMailer. It has SPF, DKIM and DMARC failures, so I’m not surprised you’re having trouble. |
But mails are show red question mark in gmail so what can i do please help me i searched lot of on google but no answer found hostgator will not help me please do anything synchro |
If you’re not going to read what I said there’s no point in me saying anything else. This is not a PHPMailer issue. |
So no solution forme? |
Maybe learn to read? |
@prabhmeet133 ... Its been said that the issue you are referring to is a DNS/Domain Config problem. So you need to address the problem ... outside phpmailer |
Hello! I am using my domain's email account to send emails to users, the problem is, upon receiving, a red question mark appearing beside the domain's email. Here is the sample code:
`<?php
require 'PHPMailer-master/PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->isSMTP();
$mail->SMTPDebug = 0;
$mail->Debugoutput = 'html';
$mail->Host = "mail.mydomain.com";
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "[email protected]";
$mail->Password = "emailpassword";
$mail->setFrom('[email protected]', 'Domain Name');
$mail->addAddress('[email protected]', 'User Name');
$mail->Subject = "This is the subject.";
$mail->Body = "This is a Message.";
if (!$mail->send()) {
echo "Error sending message";
} else {
echo "Message sent!";
}
?>`
What do I need to do to make the red question mark disappears?
As of now I am just only testing PHPMailer out, and hopefully, if I resolved this, will implement it on the website.
The text was updated successfully, but these errors were encountered: