SMTP out settings?
Posted by: TheDragon (---.dhcp.embarqhsd.net)
Date: October 30, 2006 04:40PM

I have a working html page that has a form and action=php and it all works
(including an email sent as desired)
(all on http server)

BUT

I then put the whole thing onto my local computer, running under WAMP
and although the site works
and the php works
I cannot test the mail portion because I get this 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 C:\wamp\www\STSInfo\html\STSMail.php on line 202

I have no idea how to edit my PHP or html to fix this
(while working on my local host)


Options: ReplyQuote
Re: SMTP out settings?
Posted by: CyberSpatium (71.237.217.---)
Date: October 31, 2006 12:45AM

wamp does not come with an smtp server so you you can not send emails.

Options: ReplyQuote
Re: SMTP out settings?
Posted by: ankur.vyas1 (106.67.186.---)
Date: May 28, 2013 06:57AM

Then can you explain how to test on WAMP server using PHP mail ( )?

Options: ReplyQuote
Re: SMTP out settings?
Posted by: zdy (27.17.16.---)
Date: May 28, 2013 10:57AM

Open the DOS prompt icon in Windows by selecting "Start," and in the provided search box type: Command Prompt From the list of programs, click "Command Prompt."

2
Type one of the following commands: ping smtp.mysite.com ping mail.mysite.com
Locate the name of your SMTP address in the response, which displays immediately after the word "Pinging," and write it down for future reference.

1
Open up Outlook Express and click “Tools," "Account Settings" and then the E-Mail tab.

2 www.cusabio.com/ELISA_Kit-84594 il-6 elisa kit
Double-click the email account for which you need the SMTP information.

3
View the Server Information, which lists the "Outgoing mail server (SMTP)."

Options: ReplyQuote
Re: SMTP out settings?
Posted by: RiggsFolly (---.as13285.net)
Date: May 28, 2013 11:13AM

Ankur,

In order to test your code using mail() without making any changes, or rather just changing the mail servers name/address, you will have to install a mail server on your system.

Windows system do not come with a mail server like lots of *nix systems.

There are a few out there, but most only allow you to send a few ( like 10 ) emails per day on the free software.

I use hMailserver.com which works well for me. Its not a straight forward process though I am afraid.
The software is good, not limits that I have found, but unless you are familiar with mail servers it will take some reading of the documentation to get it working nicely.



Edited 1 time(s). Last edit at 05/28/2013 11:16AM by RiggsFolly.

Options: ReplyQuote


Sorry, only registered users may post in this forum.