Hello and welcome to our community! Is this your first visit?
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
    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 02:18 PM. Reason: details

  2. #2
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Thanked 100 Times in 100 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. #3
    Master Coder
    Join Date
    Feb 2011
    Your Monitor
    Thanked 615 Times in 601 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.
    Quote Originally Posted by deathshadow View Post
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.


Posting Permissions

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