Emails sent by Godaddy LAMP sendmail gets filters as spam in gmail
Hello there, I am running LAMP stack and have sendmail send email to my customers. Recently I found Gmail filters those emails sent by sendmail as Spam. A quick web research indicates I need to enable SPF, which I did on DNS:
v=spf1 mx -all
and my sendmail script is pretty much straightforward, such as:
my $sendmail = "/usr/sbin/sendmail -t -f'info\@sharpenedflat.com'"; my $from = "From: Sharpened Flat <info\@sharpenedflat.com>"; my $send_to = "To: email@example.com"}; my $subject = "Subject: Sharpened Flat Newsletter";
open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!"; print SENDMAIL $from."\n"; print SENDMAIL "Reply-to: info\@sharpenedflat.com\n"; print SENDMAIL $send_to."\n"; print SENDMAIL $subject."\n"; print SENDMAIL "Content-type: text/html\n\n"; print SENDMAIL $content."\n"; close(SENDMAIL);
What should I do in order to pass Gmail's Spam filter?