...

View Full Version : PHP mail transition from Apache to Windows server



HWL1223
08-03-2012, 02:24 AM
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.

Short version:
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.

Long version:
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.

Arcticwarrio
08-03-2012, 12:10 PM
use phpmailer

http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

tangoforce
08-03-2012, 02:58 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum