phpfrk Posted October 10, 2008 Share Posted October 10, 2008 Would someone please show me php code to receive an auto email notification when someone clicks on a "submit" button? Thank you Link to comment https://forums.phpfreaks.com/topic/127811-email-notification/ Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 <?php if (isset($_POST['submit'])) { mail('[email protected]','button was pressed','I said button was pressed!'); } ?> Link to comment https://forums.phpfreaks.com/topic/127811-email-notification/#findComment-661674 Share on other sites More sharing options...
redarrow Posted October 10, 2008 Share Posted October 10, 2008 That funny use some header's atleast lol........... Link to comment https://forums.phpfreaks.com/topic/127811-email-notification/#findComment-661675 Share on other sites More sharing options...
trq Posted October 10, 2008 Share Posted October 10, 2008 That funny use some header's atleast lol........... If your smtp server is configured correctly (and your not using a shared host) you don't need to add extra headers via php. Link to comment https://forums.phpfreaks.com/topic/127811-email-notification/#findComment-661681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.