Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mailserver issue |
|
Author |
|
hero789
Joined: 28 Dec 2009 Posts: 4 Location: England
|
Posted: Wed 30 Dec '09 21:21 Post subject: mailserver issue |
|
|
I am trying to use the php mail function but have been getting errors. I am using a localhost address to send to another localhost address. I set up www.ituk.com as a url for 127.0.0.1 in my etc/hosts file. I also set up admin@ituk.com in the etc/hosts file. I then configured my httpd-vhosts adding to parts.
Code: | <VirtualHost *:80>
ServerAdmin postmaster@localhost
DocumentRoot "/xampp/htdocs/"
ServerName www.ituk.com
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@ituk.com
DocumentRoot "/xampp/htdocs/project/website/admin/email/inbox/"
ServerName admin.ituk.com
</VirtualHost>
|
I am trying to send email using a php form but keep getting the same 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 I:\xampp\htdocs\Project\Website\pagecontent\site_text_content\mail.php on line 32
I have checked my php.ini file. port 25 is set as it smtp. So i do not know what is going wrong. THis is my first time trying to set up an email. All i am trying to do is set up an email_us form on the localhost that will allow an email to be sent to the administration folder for the site. Does anyone know what I am missing. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7355 Location: Germany, Next to Hamburg
|
Posted: Tue 05 Jan '10 11:05 Post subject: |
|
|
Quote: | 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 I:\xampp\htdocs\Project\Website\pagecontent\site_text_content\mail.php on line 32 |
Which email server do you run on your computer?
PHP can't connect to it. |
|
Back to top |
|
|
|
|
|
|