Leverkusen Posted June 15, 2015 Share Posted June 15, 2015 I have my own contact script working fine on my site, but in my other site which is a free hosting, its not working, and the code is the same, i know a guy having a site in the same hosting and he has a working contact script, what could be the possible problem? Quote Link to comment https://forums.phpfreaks.com/topic/296820-contact-script/ Share on other sites More sharing options...
QuickOldCar Posted June 15, 2015 Share Posted June 15, 2015 When it comes to sending mail can be many things to make it not work. using sendmail? own smtp host? your domain being refused? Try phpmailer Quote Link to comment https://forums.phpfreaks.com/topic/296820-contact-script/#findComment-1513904 Share on other sites More sharing options...
mac_gyver Posted June 16, 2015 Share Posted June 16, 2015 any particular web hosting may have restrictions on how to send email through their mail server (and may not even supply a sending mail server, your friend that can send emails may be sending them through some other mail server.) what is your free web host's name and have you checked their FAQ section on sending emails? common problems would be a mail server that's set up to require smtp authentication or problems with the From: address (or lack of) being used in the email headers. Quote Link to comment https://forums.phpfreaks.com/topic/296820-contact-script/#findComment-1514018 Share on other sites More sharing options...
Leverkusen Posted June 25, 2015 Author Share Posted June 25, 2015 I sent a problem to my hosting about this and i mentioned that other guy uses contact script perfectly fine and they answered this http://prntscr.com/7l05jc So i guess its something about script or maybe other mailserver? Quote Link to comment https://forums.phpfreaks.com/topic/296820-contact-script/#findComment-1514864 Share on other sites More sharing options...
mac_gyver Posted June 25, 2015 Share Posted June 25, 2015 if your free web host doesn't provide sending/outgoing email, then the person you know that is able to send/receive contact form emails is likely sending the email through or just to some other mail server, such as a gmail account. if your web host hasn't blocked communications on port 25, you can, using a script like phpmailer, send emails to your own personal email account, hosted somewhere else. to do this, you must use smtp authentication (supplying your email account's email address and password) with the phpmailer script. there are examples at the phpmailer site. Quote Link to comment https://forums.phpfreaks.com/topic/296820-contact-script/#findComment-1514868 Share on other sites More sharing options...
Leverkusen Posted June 25, 2015 Author Share Posted June 25, 2015 Sounds very complicated but i will try to do what i can to get that thing work. Quote Link to comment https://forums.phpfreaks.com/topic/296820-contact-script/#findComment-1514871 Share on other sites More sharing options...
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.