Hello,
Ok, I am creating a program that emails people with specific information. Now, everything has been going pretty well for me but I have been working on one system creating the code that would be uploaded to a seperate server later. Need I even point out that when I uploaded the code my email part goes thud.
Specifically this is my problem:
<?php
$mail_html = "<p>This is a test<br><font color=\"#FF0000\">Testing... 1... 2... 3.</font>";
$header.="From: Mr. Bill";
$header.="\r\n";
$header.="Content-type: text/html;\r\n";
mail("test@test.com", "testing", "$mail_html","$header");
php?>
I generated this very basic text to do my testing and try to track down what the problem is but it is not going well. If I do this on my test system it will work fine. But when I put it on my production system it works but it puts this at the top of the email:
Message-Id: <200423322070522.20892SJSKJ@test.com> Date: Thu, 22 Apr 2004 03:05:22 -0400 (EDT) Return-Path: deleted@test.com X-OriginalArrivalTime: 22 Apr 2004 07:07:20.0593 (UTC) FILETIME=[74320010:01C42838]
My test system is a linux box running PHP, MySQL and Apache. (schocking isn't it) 😉
The production system is a OS/390 mainframe running a Linux VMWare session with PHP, MySQL and Apache as well.
I post this here because I am not sure if this is a coding problem or something else. Has anyone ever heard of a setup like my production setup that may have caused problems? MIME in general seems to be fighting because if I did this with a Base64 encoded message it seems like it does not decode when received and looks like gibberish.
Ok, I am sure I missed some critical info here so if you need more, just ask. (Within security limits of course :p )
Thanks,
Aludaan