Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2008, 04:40 AM
Authorized User
 
Join Date: Nov 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Snowby
Default Want to send mail with localhost.

Hi Friends,

I want to send mail with localhost. I am using Window XP with WAMP.

I had already made necessary settings in php.ini file


SMTP = smtp.mailhost.tld
smtp_port = 25
sendmail_from = snowbydave1@yahoo.com


But still it will give following error :

Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.mailhost.tld" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\wamp\www\rnd\mail.php on line 2

Please guide me.


Thanking you,


Snowby Dave

 
Old May 20th, 2008, 02:55 AM
jomet
Guest
 
Posts: n/a
Default

 do this for sending mail from local host.

type 'inetmgr' at run prompt
rt click at 'Default SMTP Virtual Server'
click properties
click 'access' tab at top
click 'Relay' tab
click only the list below radio button
click add
click single computer radio button
type 127.0.0.1 in ip address



jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
How to send mail Jolley_tolson PHP How-To 0 August 13th, 2007 03:38 AM
Not able to send a mail hums .NET Framework 2.0 5 November 16th, 2004 03:56 AM
mail() is not sending email on localhost SMTP anshul PHP How-To 5 August 4th, 2004 06:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.