June 12, 201214 yr Hi I'm trying to test out a contact form I made but have no idea how to get my localhost to actually send emails. I've got xampp installed under default settings and have not changed any of the configuration files. I have gmail and hotmail accounts that I'm willing to use for testing my contact form.
June 12, 201214 yr Author This would have been far easier to do than create a post http://bit.ly/KAEirC I've tried the first three solutions already and they don't seem to work.
June 12, 201214 yr Author The first SMTP solution definitely works, I've done it myself I've just double checked, my sendmail.ini looks very different to the one described in the post. I don't have anything to do with Mercury at all, and when I do apply the appropriate lines of code into the sendmail.ini and php.ini nothing seems to be sent. My sendmail.ini looks like this: [sendmail] ; you must change mail.mydomain.com to your smtp server, ; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup) ; emails delivered via IIS's pickup directory cause sendmail to ; run quicker, but you won't get error messages back to the calling ; application. smtp_server=localhost ; smtp port (normally 25) smtp_port=25 ; the default domain for this server will be read from the registry ; this will be appended to email addresses when one isn't provided ; if you want to override the value in the registry, uncomment and modify ;default_domain=local ; log smtp errors to error.log (defaults to same directory as sendmail.exe) ; uncomment to enable logging ;error_logfile=error.log ; create debug log as debug.log (defaults to same directory as sendmail.exe) ; uncomment to enable debugging ;debug_logfile=debug.log ; if your smtp server requires authentication, modify the following two lines ;auth_username= ;auth_password= ; if your smtp server uses pop3 before smtp authentication, modify the ; following three lines ;pop3_server= ;pop3_username= ;pop3_password= ; to force the sender to always be the following email address, uncomment and ; populate with a valid email address. this will only affect the "MAIL FROM" ; command, it won't modify the "From: " header of the message content ;force_sender=me@localhost ; sendmail will use your hostname and your default_domain in the ehlo/helo ; smtp greeting. you can manually set the ehlo/helo name if required ;hostname=localhost Where do I proceed from here?
June 12, 201214 yr If you're still having trouble with that, you could always install mercury mail http://www.pmail.com/overviews/ovw_mercury.htm
June 12, 201214 yr You can send emails direct from your localhost on your own computer via WAMPServer2 or XAMPP by editing the php.ini file in the WAMPServer or XAMPP folder (carefully - save a copy first). http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html You need to know the smtp server name of your ISP. The processing code for your form stays the same as if you were sending through your host's server. You change the php.ini file which is part of XAMPP (and it appears that XAMPP has another file called sendmail.ini (but WAMPServer 2 that I use doesn't have that file). It's probably safer just to upload your page with the form and send an email to yourself using your host's server. Edited June 12, 201214 yr by Wickham
June 12, 201214 yr This would have been far easier to do than create a post http://bit.ly/KAEirC The point of a web design forum is to talk about and help people with web design. Everyone could Google anything but some people still need some help, which is where forums come in. Please don't tell people to Google, it's a waste of a post and very unhelpful.
June 12, 201214 yr Please don't tell people to Google, it's a waste of a post and very unhelpful. Seriously? You're having a go because I've told someone to Google their issue? I appreciate that some people will have googled, but a lot don't. I find posting the above more of a waste of time considering it is something you could have (and probably ought to have) sent via a PM
June 12, 201214 yr My point still stands, whether made on the forum or via PM. Your original post... This would have been far easier to do than create a post http://bit.ly/KAEirC ...was hardly helpful. Whether i post it here or PM you, it wouldn't be any more time than the other. Edited June 12, 201214 yr by MikeChipshop
June 12, 201214 yr No, but it's of no benefit to this thread to post it here, and in your opinion it wasn't helpful. Had the OP not googled, then surely that would be helpful
June 12, 201214 yr In the interests of fairness, I've been known to post the odd lmgtfy link occasionally. It's a useful tool when people clearly haven't googled at all before asking their question, but here the OP has. Edit: though Jay didn't know that when posting. Edit again: this should be required reading before posting on a tech forum. Edited June 12, 201214 yr by Renaissance-Design
June 12, 201214 yr Maybe it's just me that uses the LMGTFY link in a condescending way? If so, i apologise to Jay.
June 12, 201214 yr I find them quick to do and make short urls. sure there's a comedy side to it, but it's been years since it was launched, and for me at least the novelty of it's worn off
Create an account or sign in to comment