AlabamaHit Posted January 11, 2010 Posted January 11, 2010 Can you use the mail() function in xampp? Or does it not work. I get errors. Figured it might be somethign with the localhost just not allowing, Figured I would ask before I went looking into this to far. Quote
Zeggy Posted January 11, 2010 Posted January 11, 2010 Did you setup your php.ini to use your SMTP server settings? Quote
AlabamaHit Posted January 11, 2010 Author Posted January 11, 2010 No, I don't know anything about doing that. Quote
Zeggy Posted January 11, 2010 Posted January 11, 2010 Well, the mail you send needs to be sent through a mail server. You'll need to enter the mail server you want to use, and the port, etc. in php.ini. If you don't have a mail server that you can use, you could use gmail's if you've got a gmail account. I'm not sure how to set that up though. You could google it. Quote
Dayo Posted January 11, 2010 Posted January 11, 2010 look for this in xampp/php/php.ini (think thats the location (just closed files and cba to reopen)) [mail function] ; For Win32 only. ; [url]http://php.net/smtp[/url] SMTP = localhost ; [url]http://php.net/smtp-port[/url] smtp_port = 25 ; For Win32 only. ; [url]http://php.net/sendmail-from[/url] ;sendmail_from = postmaster@localhost ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; [url]http://php.net/sendmail-path[/url] ;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename mail.add_x_header = Off ; Log all mail() calls including the full path of the script, line #, to address and headers ;mail.log = "C:\xampp\apache\logs\php_mail.log" then edit with your details Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.