Failed to connect to mailserver

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grace01
    New Member
    • Sep 2007
    • 6

    Failed to connect to mailserver

    Hello,

    My php program can send mail on php 5. But some of other php programs cannot work on php 5, so I switch to php 4. Now my php program cannot send mail. I use remote smpt server to send mail. I got error:

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in htmlMimeMail.ph p on line 670. Actually I already configured to use remote smtp server not localhost. Why php5 can detect my setting in htmlMimeMail.ph p but php 4 cannot? What should I do?

    My server os is windows.

    Thanks

    Grace
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Refer to the line specified in htmlMimeMail.ph p and set the smtp host name with the Service providers Smtp host name and port. I think in your file it is "localhost" but your service provider is using another name. like "smtp.ispname.c om".

    Comment

    Working...