i am facing a problem when i send email using cakephp3 on my hosting. Emails are being sent but when i view the recieved email in browser i see this along with the email address from i'm sending the email
From: no-reply#mail.com via cp-in-12.webhostbox.net
However when i check mail in phone's gmail client 'via cp-in-12.webhostbox.net' does not shows up.
Here is my code
$email = new Email('default');
$email->from(['no-reply#mail.com' => 'no-reply#mail.com'])
->to('mymail#gmail.com')
->subject('Test Mail')
->send('Thank You! for purchase! its a test mail');
}
Please help.
Thank You
Google appends the "via mail.domain.com" when the sending domain does not have any sort of SPF records on it. It's to notify users that the email may not have originated from the "From" email address' domain, but since you don't have any restrictions (set by SPF), Google can't tell if you're a bad guy, or just haven't set up your records yet. You're going to want to either setup some SPF and DKIM records (check with your webhost on how to do that), and that should eliminate those messages. The reason it doesn't appear on iPhone is because that platform does not have that feature.
Related
When someone signs up they receive an email with a link they need to click to verify their email. The email comes from no_reply#domain.com
So far all clients receive this email with the exception of clients using their own domain with Office365. With these clients it's not an issue of emails going to spam - they don't receive anything at all in either their spam or their inbox.
The email is sent from a domain that uses Google Business for email.
Any ideas how to solve this issue?
I should add that if the email is forwarded manually, it does come through, just not when automatically sent.
I have a form on my portfolio that allows a user fill in a form with a question they have and send that to me by email.
When i try to use sendgrid it only allows me as a verified user to send emails from my own email address. but i want the 'from' field to be dynamically filled in by that user and then sent to me.
note: I also tried 'emailjs' but that works fine in development but fails in production.
Any suggestions on how to fix this or any other platforms i can use for that preferabally free since it is a hobby project.
Thanks
Twilio SendGrid developer evangelist here.
You do need to use a verified email address to send emails from SendGrid, this is to stop people using a form like you describe to spoof anyone's email address.
A better idea is to send emails created in your form from a verified email address and set the reply-to address as the submitted email. That way you can send with SendGrid and then when you reply in your email client it will return to the person that submitted the form.
I added more detail and example code (in Python) in this answer.
I am trying to send an email from my Firebase Cloud Functions using the SendGrid's mail client for Node.js
I am following their example described as follows:
const sgMail = require('#sendgrid/mail');
sgMail.setApiKey(functions.config().sendgrid.key);
const msg = {
to: 'my_own_mail#gmail.com',
from: 'my_other_own_mail#gmail.com',
subject: 'Sending with Twilio SendGrid is Fun',
text: 'and easy to do anywhere, even with Node.js',
html: '<strong>and easy to do anywhere, even with Node.js</strong>',
};
sgMail.send(msg);
Once the function is fired, everything gets executed successfully. In my function logs I get Status 202 and the actual mail gets delivered but not in the main mailbox but rather in the Spam folder. When I open the message, it simply says:
I don't really understand what is the problem.
NOTE: If I send the message to an Yahoo email it doesn't go in the Spam folder. Same applies if I send it to my business email.
Your problem is not related to cloud functions or the code, there are a few anti-spam rules you need to follow, this gave me a good starting point
Sendgrid does not send your messages to the SPAM folder it all depends on the recipients mail delivery flow spam filters.
Most messages are marked as spam for one of the following reasons
1. Message is not authenticated properly
Validated that your message is authenticated properly with SPF or DKIM
2.Your message originates from an IP that is in a Blacklist (this might be on Sendgrid's)
Try by sending a message to your self and open the message headers , then look for entries like the one below
Received: from xxxxxxxxx.com (xxxxxxx.com [xxx.xx.xxx.xx])
by xxxx.com with SMTPS id ##############
The IP between [] is the sending server IP try to use public blacklist such as spamhaus to see if it is blacklisted and report to Sendrig if you find a match
3.The content of your message has known phishing techniques (accidentally or not)
Check the "Format your mail" section for Gmail senders guidelines as general recommendation
i am trying to setup mails on my VestaCP, i have made MX, Dmarc records, followed every guide about these records on google but there are 2 problems.
Here is my mxtoolbox results
https://mxtoolbox.com/domain/letsupload.co/
=======
1st Problem -/
The first problem is that all my mails sent from contact#letsupload.co are sent into spam folders, though i created all required records.
2nd Problem -/
I can send emails from my webmail but i cant receive them, when i send email from gmail it gets sent, there is no error that my email was not delivered but i dont receive it in my webmail.
Please help me out.
You will find that not many people will help because of the lack of code. Just always make sure that when you ask a question like this wondering why something isn't working, you provide code so people can pin point a problem. Stack Overflow don't put that page there before you ask a question because they think you're stupid, they do it so you can get a more specific and the best response to your question. So just make sure you give this a look.
However, I had a similar issue before where all my mails were being sent to the spam folder and they're a few things that could be the cause:
Mail Client Reverse DNS Checks: You mentioned that you are using a personal domain but one thing to remember is that your domain will have its on DNS server.e.g. if you are with GoDaddy that would be the default DNS setting. So the problem is that when you send an email to lets say a #outlook.com email server the mail client of the recipient will do a reverse DNS check. So it realises that you are sending to an #outlook.com but the email is coming from #letsupload.co. So it realises that you are sending from an IP that isn't related to the domain you sending to and that is what SPAM is! Like I said without seeing your code I can't exactly know how to help but if you aren't aready using a mail server with Authentication enabled that could be a cause. Try using a server with authentication and add this code:
// I am using $mail as my instance of PHPMailer
$mail->Host = 'your-new-server-with-authentication';
$mail->Port = 587; // usually the default port (double check though)
$mail->SMTPAuth = true;
// now define the username and password for your mail server
$mail->Username = 'your-username#mailserver.com';
$mail->Password = 'OpenSesame123';
Reply to: You can also try adding a reply-to email address. Some mail servers tend to put emails in spam that don't have a reply email address to stop bots from spamming a person's email account. So try adding this if you haven't already:
// I am using $mail as my instance of the PHPMailer
$mail->AddReplyTo('youremail#domain.com');
Implementing SPF: If the above to fail then the chances are that you need to implement SPF. You can learn all about this from an expert on the subject gr8gonzo here is the tutorial and article he wrote on the subject. That will not only just help with implementing SPF but also with the best practises for when you're sending emails.
I have a custom gmail domain (myself#customdom.com) and I have set on backend to receive order copies in that email but I am not receiving them. Now, If I add a normal gmail account (myself#gmail.com) it works.
myself#customdom.com --> FAILS
myyself#gmail.com --> WORKS
I have tried some solutions but they don't seem to work. What is blocking the emails to get to my custom emails? Any help?
Thanks.
Are you using customdom.com as the domain name your Magento store is sitting on?
i.e sales#customdom.com is the "FROM" email address for orders and myself#customdom.com is "TO" address
If so I would ensure you have a SPF record set on your domain name as this email is mostly likely being added as spam.
This is a common issue where the web server is trying to "spoof" your email address as a sender and when you try to email yourself, its marked as spam.