I have been experiencing a condition whereby I can get E-Mail transmissions with attachments from the site that I am developing that are sent to my location (OheyWe@hotmail.com) while those also being sent to the intended recipient can not.
The PHP Mime code is:
$mime_boundary = "<<<--==+X[".md5(time())."]";
$headers .= "From: [email]admin@AMedicineTime.com[/email]\r\n";
$headers .= "To: [email]bdadams@ac.net[/email]\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: multipart/mixed;\r\n";
$headers .= " boundary=\"".$mime_boundary."\"";
$message .= "This is a multi-part message in MIME format.\r\n";
$message .= "\r\n";
$message .= "--".$mime_boundary."\r\n";
$message .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
$message .= "Content-Transfer-Encoding: 7bit\r\n";
$message .= "\r\n";
$message .= "Hello! \r\n";
$message .= "There is a schedule to be processed in the FormResults folder. \r\n";
$message .= "The attachment is the following file: \r\n";
$message .= "\r\n";
$message .= " ${cook2namE} \r\n";
$message .= "\r\n";
$message .= "--".$mime_boundary."\r\n";
$fileContent = $stringtowrite;
$message .= "Content-Type: application/octet-stream;\r\n";
$message .= " name=\"${cook2namE}.txt\"\r\n";
$message .= "Content-Transfer-Encoding: quoted-printable\r\n";
$message .= "Content-Disposition: attachment;\r\n";
$message .= " filename=\"${cook2namE}.txt\"\r\n";
$message .= "\r\n";
$message .= $fileContent;
$message .= "\r\n";
$message .= "--".$mime_boundary."\r\n";
if ($tXmit != "No")
{
$ok2 = mail("Etest@AMedicineTime.com", "Schedule Data Transmission", $message, $headers);
$ok3 = mail("bdadams@ac.net", "Schedule Data Transmission", $message, $headers);
$ok4 = mail("schedule@AMedicineTime.com", "Schedule Data Transmission", $message, $headers);
}
Note: the preceding yields the same results, being the following which was provided by the hosting people:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
bdadams@ac.net
SMTP error from remote mailer after RCPT TO:<bdadams@ac.net>:
host gallium.carolina.net [208.170.147.235]: 554
<nobody@host1.web333.com>:
Sender address rejected: Mail from nobody is always spam
bruceadams@ac.net
(ultimately generated from Etest@AMedicineTime.com)
SMTP error from remote mailer after RCPT TO:<bruceadams@ac.net>:
host gallium.carolina.net [208.170.147.235]: 554
<nobody@host1.web333.com>:
Sender address rejected: Mail from nobody is always spam
------ This is a copy of the message, including all the headers. ------
Return-path: <nobody@host1.web333.com>
Received: from nobody by host1.web333.com with local (Exim 4.50)
id 1E3Igw-0007AB-Fv; Thu, 11 Aug 2005 14:26:14 -0500
To: Etest@AMedicineTime.com
Subject: Schedule Data Transmission
From: admin@AMedicineTime.com
To: bdadams@ac.net
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="<<<--==+X[b4f4259e1b5ff470062fccb76247140a]"
Message-Id: <E1E3Igw-0007AB-Fv@host1.web333.com>
Date: Thu, 11 Aug 2005 14:26:14 -0500
X-web333-MailScanner-Information: Please contact the ISP for more information
X-web333-MailScanner: Found to be clean
X-web333-MailScanner-SpamCheck: not spam, SpamAssassin (score=-5.853,
required 5, autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -2.60,
MIME_QP_LONG_LINE 0.04, NO_REAL_NAME 0.01)
X-web333-MailScanner-From: nobody@host1.web333.com
This is a multi-part message in MIME format.
--<<<--==+X[b4f4259e1b5ff470062fccb76247140a]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hello!
There is a schedule to be processed in the FormResults folder.
The attachments are the following files:
with the rest of the attachments following that line.
The transmission that is directed to Etest@AMedicineTime.com is forwarded to My HotMail address (OHeyWe@hotmail.com) and I have always received everything that I have sent to that address, yet the site owner (badams@ac.net) has not.
The obvious is that somehow the From “Nobody” need fixing, but I am stumped at this point as to how. So any and all assistance will be most appreciated.
White Eagle