mail() function issue...**URGENT!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • borisding
    New Member
    • Oct 2008
    • 9

    mail() function issue...**URGENT!

    [MOD: Moved from PHP forum. -pbmods]

    Hi there,

    Well, I really need help from someone here, and hope that someone will answer my question and solve my problem. I know it's very common question and being asked by many developers:

    Basically i keep getting warning message and unable to send out email:
    [PHP]Warning: mail(): Failed to connect to mailserver at "mail.xxxx. com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\hosting\xxxx \xxx\thankyou.p hp on line 314[/PHP]

    I have already done what i'm supposed to do.
    a) changed the setting in php.ini file, that connect to the correct mail server.
    b) Added server ip address to relay and allowed to send out email, for aunthentication etc.

    Basically, my script is on Server A (not mail server), and need to connect to Server B (mail server) for sending email. After everything done, and restart Server A, it's working and able to send out email. But after end of day, it's unable to send out the mail anymore, yet get the warning message instead. I'm sure the mail server is correct. So,

    1) What could be the problem? is it the php installation problem?
    2) Why it's not stable, only sustain for one day (next day fail to send out email)?

    PS: Current php version is 4.3.9, on Windows server 2000 with IIS support.

    Pls help! thanks in advance.
  • Ferris
    New Member
    • Oct 2007
    • 101

    #2
    Maybe there's a firewall on Server B , it regarded your e-mail as a spam.
    I suggest you may change an E-Mail account and have a try, to make sure there's no problems in PHP.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      If your code isn't changing, then it sounds like something is going on on your mail server. I'm going to go ahead and move this thread and let our Linux Experts have at it.

      Comment

      • micmast
        New Member
        • Mar 2008
        • 144

        #4
        what mail server are you using?

        Comment

        • borisding
          New Member
          • Oct 2008
          • 9

          #5
          Hi Guys,

          Thanks for all replies! Anyway, the problem is already. Basically i have decided migrated the php application to the new server.. Thought the Original server is too old and not strong enough to connect to mail Server (what I read from other forums).

          Anyway, I didn't change any scripts inside the application,apa rt from some setting in php.ini for new server, of course.|o| Now the problem is solved on the new server..

          Thanks.

          Comment

          Working...