We help IT Professionals succeed at work.

avoiding spam list

rgb192
rgb192 used Ask the Experts™
on
what are steps to prevent mail sent from a webserver to not be on a spam list

should i avoid bcc
should i only send to one person at a time
what is limit of emails sent in one minute

is there anywhere to register my server


if I use phpmailer instead, am i less likely to get on spam list
<?php
 
$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
 
mail($recipient, $subject, $mail_body, $header); //mail command :)
?>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I think it all depends on the unique message id in the message header and as longs the email you sent comes from the domain it says it does i think should be ok and any email you send should have a unsubscribe or email sent by mistake link on.
Commented:
I've seen this kind of problem before. Some mail servers don't like it if an email has no "Reply-To" field specified. If you don't want replies, specify a "Reply-To:" field that goes to a catch-all email address in the same domain as the "From:" field.

$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
...
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
$header .= "Reply-To: Nobody <unmonitored@adress.com>\r\n"; // Reply-To in sender's Domain
Most Valuable Expert 2011
Top Expert 2016

Commented:
This is a really loaded question, with dozens, if not hundreds of answers.  There are whole companies that make a living just trying to answer these kinds of questions.  How easy or hard is it to get this right?  I don't know for sure, but recently email from the American retail giant, Sears (owner of Lands End, etc.) has been flagged by Gmail as spam.  And I am on their email request list.  So expect email issues to begin taking up a lot of your time.

If you insist on sending your own email, you want to learn about the Sender Policy Framework, and make sure that your hosting company does not add any "anti-spam" headers to your messages - a sure sign that the message might be spam!  You want to send to only one person at a time.  The number and rate of email messages is throttled by your hosting company, so ask them about these guidelines.  You can pretty well figure that a long BCC list is a sure spam indicator, so avoid that.  Do not use terms like "FREE OFFER!!!" in the subject line.  Don't bother sending the email if the word "viagra" is anywhere in the message, etc.

Better yet, ditch the entire issue and outsource your broadcast email to Constant Contact or one of the similar online services.  We did this last year at my church and my overall opinion is that the outsourcing was an unqualified success.  Our emails always go through, they look nice, the staff at the church finds Constant Contact easy to deal with, the costs are very modest, etc.  And I am no longer spending my time on thankless tasks that involve clients with incompetent spam filters.  A winner all the way around.

Best regards, ~Ray
Infusionsoft is also a great company to use for sending out email.

But to tackle your original question. Two things come to mind.

Make sure you send out mail through your domains email server and not to webserver. Many avalable scripts like phpmailer or pearmail have the ability to loginto and send through your mail server. Not sending through an actual email server can score your email high on the spam lists.

Make sure you use a valid working email address. Using a fake address can get you into a whole heap of trouble.

Author

Commented:
>>Make sure you use a valid working email address. Using a fake address can get you into a whole heap of trouble.


what is a 'valid working email address'

does this mean that the server domain name matches the 'reply to'
Most Valuable Expert 2011
Top Expert 2016
Commented:
I think what the expert suggests is that the reply-to address needs to be a real email address, one that is monitored, and replies to this address need to be handled correctly.  For example, if someone clicks "reply" in their email program and sends a message that says, "My email address has changed..." or "Please take me off this list..." you are legally obligated to comply with their request.  The penalties for failure to do this are rather severe - prison time - so you need to be fully aware of what you're getting yourself into if you try to do the broadcast email from your own server.  Avoiding a criminal complaint - just another reason that Constant Contact provides such a good value proposition!

Author

Commented:
what about ******* in subject

Author

Commented:
are ******
bad characters
like
viagra

Author

Commented:
i am sending internal emails about product quantity

******low status alert on productid 14823 *******



to one email address



and sending customers tracking numbers
and there are two possible email reply to addresses
but each email is sent by the same server with the same domain name and same ip address


could constant contact do that
Most Valuable Expert 2011
Top Expert 2016

Commented:
I think you're OK with asterisks.  How many emails are you talking about sending?

Author

Commented:
25 a day
Most Valuable Expert 2011
Top Expert 2016

Commented:
And all the recipients are expecting the email messages?  If so they can "whitelist" your sending server.  You should be OK.  I thought you were more interested in broadcasting, but with only 25 to a known population you should be fine.

Author

Commented:
thanks