Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
08-03-2012, 03:24 AM #1
- Join Date
- Jun 2011
- Thanked 0 Times in 0 Posts
PHP mail transition from Apache to Windows server
I have what I believe is a PHP problem as it applies to a Windows based mail server.. I do not know enough to fix it myself but have tried several approaches.
Specifically, I have used Agosoft Mailserver Pro for years on a Windows box with no issue when my hosted websites were on a Linux box (with mail turned on). This week, after a Linux crash, I moved all sites to a Windows Server box running Apache and PHP.
Now I get a "354 Enter mail. end with "." on a line by itself" hang/error on Argo MailPro when trying to use/send a PHP form mailer on the Windows server into Argo MailServer.
I migrated pages with forms from a Linux box to a Windows server. I cannot figure what to change in the php form scripts to get a mail to go/work directly through Argo Mail Server. I have tried numerous (apparently) incorrect "/n" edits trying to add a ".".
HOWEVER - using an email relay program set to port 2525 on the same machne (and modifying the php.ini sendmail port accordingly), an email goes through the relay program and Argo accepts it.
I have tested several PHP scripts and it has to be a formatting issue in the PHP as it (PHP) talks to Argo (I have tried 2 versions) but stops Argo when the message tries to send (and I get the 354).
FYI - I had this problem with a commercial surveillance DVR software too (sending alarm email to Argo) and the vendor (AverMedia) re-wrote their software, but couldn’t tell me what they did.
Hope I am clear - Appreciate any help! Thanks
I want to elaborate that I am sending emails OUT fine - its receiving them in Argo that isnt working.
Last edited by HWL1223; 08-03-2012 at 02:18 PM. Reason: details
08-03-2012, 01:10 PM #2
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Get Cloud Hosting now from only£59 / month
08-03-2012, 03:58 PM #3
- Join Date
- Feb 2011
- Your Monitor
- Thanked 537 Times in 524 Posts
Windows has a different line terminator than linux. Linux uses \n for a newline / return whilst windows uses \r\n instead.
You might want to tinker with the script and see if that makes any difference.
I can't really think of anything to write here now...