By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,636 Members | 1,814 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,636 IT Pros & Developers. It's quick & easy.

email with php

P: 2
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.com" 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
Feb 2 '07 #1
Share this Question
Share on Google+
1 Reply


Motoma
Expert 2.5K+
P: 3,235
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.com" 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.
Feb 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.