This topic is locked

Detailed email

2/1/2007 6:38:46 PM
PHPRunner General questions
T
TVining author

Rather than a simple "New person added" I want to send an email that has details of the record that was added...
How do I include all fields in the email?

T
thesofa 2/1/2007

Hi

If you use the search function on this forum and use email as the searched for word, I am sure you will find a post that will tell you how to do this.

HTH

T
TVining author 2/1/2007

Hi

If you use the search function on this forum and use email as the searched for word, I am sure you will find a post that will tell you how to do this.

HTH


Found it. Thanks. Gosh, I get on people for not searching on my board, then I do it here. :-(
When someone logs in, can I send an email saying "user DANJONES has logged in"?

J
Jane 2/2/2007

Tony,
you can do it using After successful login event on the Events tab.

Here is a sample code:

function AfterSuccessfulLogin()

{

// ** Send simple email ****
$email="test@test.com";

$message="User ".$_SESSION["UserID"]." has logged in";

$subject="Sample subject";

mail($email, $subject, $message);

}