View Full Version : sending emails when a new record is entered
Jeffw
02-14-2008, 05: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.
Help anyone?
Thank you
Kayla
02-14-2008, 05:27 AM
I just searched this forum and found this (http://www.websitedatabases.com/database-forum/showpost.php?p=875&postcount=2) thread. :)
Jeffw
02-14-2008, 05:49 PM
How do you get the fields to be included
Kayla
02-15-2008, 05:00 AM
Did you get the email notification working. You do not mention that.
Jeffw
02-16-2008, 02:18 AM
No I have not been able to. I can not figure out where in the page to insert the mail command?
Kayla
02-16-2008, 09: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 :)
Jeffw
02-17-2008, 03: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.
Jeff
vBulletin® v3.7.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.