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. 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"); 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. Link to comment https://forums.phpfreaks.com/topic/241650-sending-a-mail/#findComment-1241166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.