Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Location
    Houston
    Posts
    5
    Thanks
    1
    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.

    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

  • #2
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    721
    Thanks
    20
    Thanked 84 Times in 84 Posts
    There are 10 types of people on CodingForums,
    Those who understand Binary and those who dont.
    Get Cloud Hosting now from only£59 / month

  • #3
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,341
    Thanks
    60
    Thanked 527 Times in 514 Posts
    Blog Entries
    4
    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.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •