Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail function

Status
Not open for further replies.

apffal

Technical User
Apr 10, 2004
97
PT
When I send mail, using PHP mail function, messages are rejected by server anti-spam software, except to users who have one address based on that server.
How can I solve this problem ? Thanks.

That's my relevant code :
while ($row = mysql_fetch_array($result)) {
set_time_limit(0);
$email = $row['email'];
mail("$email", stripslashes($_POST[subject]), stripslashes($_POST[message]),
"MIME-Version: 1.0\r\n".
"Content-type: text/plain; charset=iso-8859-1\r\n".
"From: TRL News <root@trl8.net>\r\n".
"Reply-To: <root@trl8.net>");
print "Mail enviado para: $email<br>";
}

And the details mail message :
MIME-Version: 1.0
Content-type: text/plain; charset=iso-8859-1
From: TRL News <root@trl8.net>
Reply-To: <root@trl8.net>
Message-Id: <200407171329781.SM01532@harpwro-14>
X-RBL-Warning: NOABUSE: "Not supporting abuse@mail.telepac.pt"
X-RBL-Warning: NOPOSTMASTER: "Not supporting postmaster@mail.telepac.pt"
X-RBL-Warning: HELOBOGUS: Domain harpwro-14 returns a server failure for MX or A records.
X-RBL-Warning: SPAMHEADERS: This E-mail has headers consistent with spam [4000020e].
X-RBL-Warning: WEIGHT10: Weight of 12 reaches or exceeds the limit of 10.
X-Declude-Sender: afalmeida@mail.telepac.pt [209.161.96.164]
X-Note: This E-mail was scanned by Declude JunkMail ( for spam.
X-Spam-Tests-Failed: NOABUSE, NOPOSTMASTER, HELOBOGUS, SPAMHEADERS, WEIGHT10 [12]
X-Note: This E-mail was sent from 209-161-96-164.joinweb.com ([209.161.96.164]).
 
It seems to me that the mail server in question is not an open SMTP relay. Most mail servers will relay for clients in their network. Is there any reason why it would not for connections from your PHP installation?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Do you mean I cannot use mail function using that mail server ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top