email with php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pigumcf
    New Member
    • Jan 2007
    • 2

    email with php

    Hello, all

    I downloaded a mailserver on local computer which also has a localhost server. The mailserver set up an admin account: admin@username. com

    When I used the mail function, the following is the error msg generated:

    Failed to connect to mailserver at "username.c om" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set().

    What do I need to do to make the mailserver work and send email from my machine?

    New to php, especially not familiar with SMTP etc,

    Any help is greatly appreciated!

    pigumcf
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by pigumcf
    Hello, all

    I downloaded a mailserver on local computer which also has a localhost server. The mailserver set up an admin account: admin@username. com

    When I used the mail function, the following is the error msg generated:

    Failed to connect to mailserver at "username.c om" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set().

    What do I need to do to make the mailserver work and send email from my machine?

    New to php, especially not familiar with SMTP etc,

    Any help is greatly appreciated!

    pigumcf
    Check to make sure the SMTP server is running, and your firewall is open on the SMTP port.

    Comment

    Working...