liddiard1977 Posted October 13, 2009 Share Posted October 13, 2009 Hi guys, New on here and completely new at php, no we were wondering if someone/everyone can help with a problem we have. I've created a html form for user to fill in some details and then they can submit it and it will whizz off to an email address, my colleague and I have pieced together a bit of php coding which we think should activate it but it doesn't seem to work, initially we were getting the 'mail failed to send message' but now we aren't getting anything. We have spent the best part of 3 hours trawling the web looking for a solution and to be honest we are stumped. Attached is a zip folder with the html form in as well as our bit of php coding, if anyone can have a look and explain to us like we are kids as to what we have done wrong, we would be massivley grateful. Thanking you in advance Warmest A & M [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/177538-mail-sending-failure/ Share on other sites More sharing options...
GKWelding Posted October 13, 2009 Share Posted October 13, 2009 I have tested the script on my webserver, it works perfectly fine, this means your mail function isn't set up correctly in your php.ini file. Link to comment https://forums.phpfreaks.com/topic/177538-mail-sending-failure/#findComment-936101 Share on other sites More sharing options...
liddiard1977 Posted October 13, 2009 Author Share Posted October 13, 2009 Hi, That's grand thank you, we thought we may have had it right in a way. What do you think we need to do in the php.ini file? My colleague thinks he can access it but isn't sure as to what to do. Regards A & M Link to comment https://forums.phpfreaks.com/topic/177538-mail-sending-failure/#findComment-936109 Share on other sites More sharing options...
GKWelding Posted October 13, 2009 Share Posted October 13, 2009 open the php.ini file and search for [mail function], you need to set SMTP to equal your SMTP host, usually localhost, smtp_port to your smtp port number, usually 25, set sendmail_from to whatever email address you want and that should be it. Link to comment https://forums.phpfreaks.com/topic/177538-mail-sending-failure/#findComment-936111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.