pranshu82202 Posted July 11, 2011 Share Posted July 11, 2011 I have created a website. In which their is registration form. i want that, when a user fill the form an automatic mail will send to the user. (user already entered his email id in the form) well i want to send the mail from my gmail account. assume my username - aaa assume my password - bbb Can you guyzz tell me what will be the php script. Quote Link to comment https://forums.phpfreaks.com/topic/241650-sending-a-mail/ Share on other sites More sharing options...
teynon Posted July 11, 2011 Share Posted July 11, 2011 mail("YOUREMAIL", "SUBJECT", "MESSAGE", "HEADERS"); Quote Link to comment https://forums.phpfreaks.com/topic/241650-sending-a-mail/#findComment-1241165 Share on other sites More sharing options...
imperium2335 Posted July 11, 2011 Share Posted July 11, 2011 Make sure you escape all user input for your form too, using addslashes and striptags. Quote Link to comment https://forums.phpfreaks.com/topic/241650-sending-a-mail/#findComment-1241166 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.