fail: sending mail to facebook email adress with php mail() function - php

my mail system working well. hotmail, gmail or etc are not moving my server's sent mails to "spam" folder but there is something else : facebook mail.
I'm getting user's email when they are login to my website with facebook. After that I have to send email to their facebook.com email. I'm sendin but it's going into directly "Other messages" box. It's not shown on normal "Messages" box.
It's awful because there is no boarding for that new email user had received.
What is the solution?

Your emails are being flagged as spam in Facebook. No one really knows how Facebook will mark email as Spam but if you Google, there will be many ways you can avoid being detected as spam.
As I do with all my email, go through Postmark for my software, or SMTP.com for business mail. Sending it from your server, which I imagine is on a shared host, will alone almost always flag you as SPAM in many system.

Related

Prevent PHPMailer email going to Hotmail Junk Folder

I have created a mailing software using PHPmailer. Everything is working ok apart from emails are going to Hotmail junk folder. Yahoo, Gmail, Aol and other domains are receiving the emails but not Hotmail.
I have set SPF on my hosting for the domain which I am sending the email from and When I check the source of the email on Hotmail, it shows this:
Authentication-Results: hotmail.com; spf=pass.
The emails I am sending is not classified as spam as I get it checked with some online tools. I also tried sending test emails as if I am sending an email to a friend. Still no luck
Has anyona any idea if there is anything else I should do?
Note1:I have checked other posts on here but I couldnt find an answer so I am posting my own with my own details.
Note2: I have also tried sending Gmail SMTP and still emails are going to junk folder.
Note3: I have also tried the hosting company email domain to send but still it goes into junk mail.
Thanks in advance.
Take a good look at the email headers on the receiving hotmail account. There will be clues as to why you're email is being classified as junk.
Take a look at this article.
https://technet.microsoft.com/en-us/library/dn205071(v=exchg.150).aspx
You're looking for two header fields called
X-Forefront-Antispam-Report
X-Microsoft-Antispam
You're going to see a BCL, PCL, SRV with a colon after it and a value, depends on what those values are will be your clues as to why you're hitting the spam folder.
Without posting the full header, their's little information anyone is going provide other then telling you to try this and that. I'm a big proponent of telling people to use this mail tester, because it's the best around, but no mail testing program is going to solve every problem, but they are a good start.
Getting around email spam filters (as a legitimate sender) is a complicated issue.
Personally I recommend using Mailgun, Sparkpost, or another email service.
These guarantee delivery and most are free for the scale you'll be operating at. I personally recommend mailgun.

php sendmail() from same domain - is it considered SPAM now?

I want to know if using PHPmailer functions to send HTML or plain emails
would be not considered as SPAM by mail servers if it would originate
from the domain with the same name.
For example :
sending email with PHPmailer as "info#mydomain.com"
originating from "mydomain.com" domain (as opposed to say GMail server or other mail servers).
I have a "password lost" system that sends emails to people using my website/portal
and so far i tested the function with my GMail account. I wonder that when I will move
to new hosting, linux box, and configure the domain on that box, and add a mail account and use PHPMailer locally, with that mail account, maybe it would be totally cleaner and will not go in SPAM folders when I sent mails.
Let me know your thoughts about it,
and if this really works
thanks,
Your mails originating from yourdomain.com sent as info#yourdomain.com will not be marked with "using domain yoursharedhostingdomain.com" in gmail, so mails shouldn`t drop in the spam folder for that reason.
With Gmail here i mean e-mail client, not using gmail account as a sender.

Codeigniter emails not being received by gmail

I have an app where i'm sending emails on certain events, but when i used my gmail account, i never receive the emails and they are not in my spam folder. When i send them to my work email, i receive them instantaneously.
What do i need to do to get the emails through to google?
I'm using the standard codeigniter email configs (which i think uses sendmail).
I'm using google apps for business and i have the MX records setup that google provides.
Do i need anything else? Also, i'm using subdomains in my app, does that affect what i may need to setup?
EDIT
When i use smtp like this example Sending email with gmail smtp with codeigniter email library, the page never seems to come back. It eventually just timesout.
The only plausible explanation for this behaviour is a SPF Check failure. SPF or Sender Policy Framework is a new technology that allows easy detection of spam. Gmail honours SPF unless you manually mark those emails as not spam. Regardless of this, if you have received emails on another address then they must have reached Gmail too. Check your spam thoroughly, as Gmail does not discard emails even on very high spam suspicion rather they end up in the Spam folder.
You can set up a SPF that allows your webserver to send emails which will result in Gmail accepting emails sent by your webserver as authentic. See http://www.mydigitallife.info/how-to-set-up-and-create-sender-policy-framework-spf-domain-dns-txt-record-with-wizard/ and a wizard from Microsoft.
You will probably see, that at some point in the future, you'll get them all appearing in Gmail. Google is most likely seeing if the sender is spam, and holding those messages. I've experienced that before setting up dev servers. I would suggest using a transactional email service, like Mandrill or SendGrid. You'll find you get a lot of info from those services that you forgo if you simply send an email through PHP.
The Filter Theory The other possibility is that the poster has a filter set up on their GMail account that is filtering out the emails.
I would make sure that you are sending the required header information as well. Have you tried registering a new gmail account and sending it to that user?

Sending email using mail() function in PHP

I am sending email using mail() function from my CentOS server. I am able to send using anyone's name without any authentication. For example, I am able to send email using my email address (abc#gmail.com -- say), my friend's email address (xyz#gmail.com -- say) or any other email address (billgates#microsoft.com -- say).
When someone receives my email from PHP code, it looks exactly like it was sent from the email address that I wanted to send from. I am using this PHP class for sending emails.
My question: How to prevent an email to be automatically marked as spam by the email service provider of the receiver (Gmail, Hotmail, MSN, Yahoo etc.)?
As of now, I have only option for sending email using mail() function only. My authentication code is not working.
Note: I am not going to do any spamming. My web application going to send emails to users who are creating new accounts on my website. And hence, I don't want email from my server to be automatically marked as SPAM by their email service provider (Gmail, MSN, Hotmail, Yahoo etc). I don't want my email to go directly to their SPAM folder instead of their Inbox.
You should use the domain name of your website as E-mail address e.g. noreply#mydomain.com. Because some mail servers will do a dns lookup for the domain stated in your e-mail address or even a reverse dns lookup. Since gmail.com does not resolve to the IP of your webserver the e-mail may get marked as spam. There are many other factors for an e-mail to become spam.
For example HTML formatted mails (especially when containing external images) are more likely to get marked as spam than plain text mails.
Also make sure to use proper Mail headers for your mail, they may also be validated by the remote mail server.

Prevent order confirmations sent via PHPMailer from ending up in spam

When I send order confirmations via PHPMailer, they usually end up in spam folders of Google, Yahoo and Hotmail and also take a long time to deliver. Is there a checklist or something of things I should be aware of when sending confirmations this way? Mail from most sites that I order from or register to gets delivered instantly and doesn't get flagged as spam. What do they know that I don't?
There are tons of reasons why email could end up in spam. Try to put more information in the body of the email. Mentioning users name and surname in email's body or subject also helps.
And check if your server isn't black listed http://www.mxtoolbox.com/blacklists.aspx This happens a lot on shared web hosting. Someone sends out spam, and the whole server gets blacklisted.
This actually isn't caused by PHPMailer, it's caused by the content in the email, the email sent host, or something of that nature that is triggering it to be thought of as spam.=
As Webnet said, it could be the content of the email or the source. For example, my company is hosting a website on Amazon AWS but password and account recovery emails are being flagged as spam. Solution? We used Zend::Mail to connect to and send the emails from a non-AWS host.

Categories