Jump to content

[SOLVED] E-mail notification of new guestbook entry


Styler001

Recommended Posts

In my php script is the following code for when a person makes a new guestbook entry on my site:

 

{
echo "<br>Your comment has been entered into our guestbook.  Thank you.<br><br /><a href=\"javascript:window.close();\">Close Window</a>";
}

 

I would like to add some code to automatically send me an e-mail (let's say to my_email@my_email.com) when the above code is executed.  All it needs to say is something like, "New guestbook entry" in the subject line without any message text.

 

I know this is basic stuff.  But, for the life of me, I can't remember where I saw an example of this before.  And I'm assuming this would be placed before the final }.

 

Thanks in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.