View Full Version : sending emails when a new record is entered
02-14-2008, 06:08 AM
I am new to PHP and PHP magic plus. I have generated a few sample db's and can not figure out how to send an email with the info entered.
02-14-2008, 06:27 AM
I just searched this forum and found this (http://www.websitedatabases.com/database-forum/showpost.php?p=875&postcount=2) thread. :)
02-14-2008, 06:49 PM
How do you get the fields to be included
02-15-2008, 06:00 AM
Did you get the email notification working. You do not mention that.
02-16-2008, 03:18 AM
No I have not been able to. I can not figure out where in the page to insert the mail command?
02-16-2008, 10:07 AM
I can not figure out where in the page to insert the mail command"you should add this line after the "Insert into .." line;"
Open the relevant table_dmp.php look for the the sql insert into part and insert the mail line right after it. Save it and reupload.
sql("insert into .....;
@mail("your_email_address", "subject", "body text");
Try it :)
02-17-2008, 04:33 AM
Thank you so much, I found where to place the code.
How do I add the fields from the db to be listed within the email?
How do I change the from name to my address rather than a long number?
I thank you in advance again. Sorry I take the short buss.
vBulletin® v3.7.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.