hno Posted May 17, 2009 Share Posted May 17, 2009 Hi My host does not support mail function.I heard that it's possible to send mail from a mail server like gmail or yahoo but I don't know how to do that so what should i do for that? If it's possible gives me and example with gmail by the username:hno2005 and pass:123456 . Thnaks Quote Link to comment https://forums.phpfreaks.com/topic/158466-how-to-send-mail/ Share on other sites More sharing options...
pneudralics Posted May 17, 2009 Share Posted May 17, 2009 All you do is change the mail to in the mail(); Ex: Users use contact form and the form will send it to [email protected] mail ([email protected], "$subject", "$body", "From:$email"); Quote Link to comment https://forums.phpfreaks.com/topic/158466-how-to-send-mail/#findComment-835723 Share on other sites More sharing options...
trq Posted May 17, 2009 Share Posted May 17, 2009 If your server does not support the mail function it is highly unlikely to support the sockets functions that would be required to send mail otherwise. Does your server support the sockets extension? Quote Link to comment https://forums.phpfreaks.com/topic/158466-how-to-send-mail/#findComment-835725 Share on other sites More sharing options...
Daniel0 Posted May 17, 2009 Share Posted May 17, 2009 All you do is change the mail to in the mail(); Ex: Users use contact form and the form will send it to [email protected] mail ([email protected], "$subject", "$body", "From:$email"); Besides providing code with syntax errors, maybe it would also be a good idea to read the question... Quote Link to comment https://forums.phpfreaks.com/topic/158466-how-to-send-mail/#findComment-835733 Share on other sites More sharing options...
hno Posted May 17, 2009 Author Share Posted May 17, 2009 If your server does not support the mail function it is highly unlikely to support the sockets functions that would be required to send mail otherwise. Does your server support the sockets extension? Yes ,what should i do now? Quote Link to comment https://forums.phpfreaks.com/topic/158466-how-to-send-mail/#findComment-835892 Share on other sites More sharing options...
Daniel0 Posted May 17, 2009 Share Posted May 17, 2009 Get a better host. Quote Link to comment https://forums.phpfreaks.com/topic/158466-how-to-send-mail/#findComment-835895 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.