lingo5 Posted March 23, 2011 Share Posted March 23, 2011 Hi all, I am quite new to PHP and MySql. I know how to upload a file a and save the path in the DB, but now I need to send an automatic email to the user when a new invoice is added to his directory. Please help. Thanks Link to comment https://forums.phpfreaks.com/topic/231475-send-email-to-user-on-new-file-upload/ Share on other sites More sharing options...
aabid Posted March 23, 2011 Share Posted March 23, 2011 Are you expecting us to write code for you ???? Link to comment https://forums.phpfreaks.com/topic/231475-send-email-to-user-on-new-file-upload/#findComment-1191218 Share on other sites More sharing options...
lingo5 Posted March 23, 2011 Author Share Posted March 23, 2011 Hi aabid, no i'm just asking for an example on how to do this. I have searched Google and can't find any example thta is easy enough for me to understand.That's all. Link to comment https://forums.phpfreaks.com/topic/231475-send-email-to-user-on-new-file-upload/#findComment-1191220 Share on other sites More sharing options...
aabid Posted March 23, 2011 Share Posted March 23, 2011 Well you should use mail() function just below where you store the path of uploaded file into the database. This way whenever any file is added mail() function gets executed and sends the mail. I hope it will help you BTW you can search more about mail() in Google to know more about it. Link to comment https://forums.phpfreaks.com/topic/231475-send-email-to-user-on-new-file-upload/#findComment-1191228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.