Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-03-2012, 02:24 AM   PM User | #1
HWL1223
New to the CF scene

 
Join Date: Jun 2011
Location: Houston
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
HWL1223 is an unknown quantity at this point
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.

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.

Last edited by HWL1223; 08-03-2012 at 01:18 PM.. Reason: details
HWL1223 is offline   Reply With Quote
Old 08-03-2012, 12:10 PM   PM User | #2
Arcticwarrio
Regular Coder

 
Arcticwarrio's Avatar
 
Join Date: May 2012
Location: UK
Posts: 575
Thanks: 15
Thanked 64 Times in 64 Posts
Arcticwarrio is on a distinguished road
use phpmailer

http://code.google.com/a/apache-extr...downloads/list
__________________
There are 10 types of people on CodingForums,
Those who understand Binary and those who dont.
Arcticwarrio is offline   Reply With Quote
Old 08-03-2012, 02:58 PM   PM User | #3
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,496
Thanks: 44
Thanked 439 Times in 428 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
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.
__________________
Please wrap your code in [php] tags. It is a sticky topic and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:35 AM.


Advertisement
Log in to turn off these ads.