Page 1 of 1

localhost & mail()

Posted: Sat Dec 04, 2010 8:54 am
by amirbwb
hello i am using xampp, how can i send mails from localhost ... i'm creating the "forgot my password" function so i want to see if it's working :D:D thx

Re: localhost & mail()

Posted: Sat Dec 04, 2010 9:47 am
by Celauran
You'll need to install a mail server or use something like PEAR's Mail package to use your ISP's SMTP server.

Re: localhost & mail()

Posted: Sat Dec 04, 2010 6:51 pm
by Pazuzu156
RoundCube is the best way to go for something like this. Also, you need a live SMTP host and IMAP host.

Re: localhost & mail()

Posted: Sun Dec 05, 2010 5:37 am
by amirbwb
thanks for helping, look at what i've done:
-install xampp
-start Apache Mysql and Mercury
-open mercury and manage a new user "amir" (and set a username and password)
-open outlook express created a new account with email "amir@localhost" and incoming /outgoing server 127.0.0.1 or localhost
-but when i send a msg to "amir@localhost" it's telling me :
"The connection to the server has failed. Account 'Amir', Server '127.0.0.1',Protocol:SMTP, Port 25, Secure (SSL), No Socket Error: 10061, Error Number:0x800CCC0E"

Re: localhost & mail()

Posted: Mon Dec 06, 2010 7:25 am
by Pazuzu156
If I've learned anything from web design, it's that anything you want to do on a home server for outside communications, ports must be forwarded. If you have ports forwarded, then use the STMP and IMAP provided by your ISP, use them and make a subdomain. Many people use "mail.domain.com" as a subdomain for their STMP and IMAP connections. STMP is for any outgoing messages and is the easiest to set up, use the STMP port from your ISP, forward that port. IMAP is for incomming messages and allows for people to send messages to your mail server. Use the IMAP port from your ISP and forward that as well, then forward port 80 so any outside connections can connect to you. After that, you shouldn't have any problems.