This topic is locked

Send email after record add

12/22/2008 1:31:03 PM
PHPRunner General questions
S
sconello author

I have a field called "id_nome_progetto" in the table "_jb_progetti"

Each time a new record is added I want to send an email to "xxxx@xxxxx.com" with the content of the "id_nome_progetto" field in the message body.
I tried with this:
$email="xxxx@xxxxx.com";

$message="";

$subject="Sample subject";

$message.="id_nome_progetto:".$values["id_nome_progetto"]."\r\n";

mail($email, $subject, $message);
what's wrong?

S
sconello author 12/23/2008

I have a field called "id_nome_progetto" in the table "_jb_progetti"

Each time a new record is added I want to send an email to "xxxx@xxxxx.com" with the content of the "id_nome_progetto" field in the message body.
I tried with this:
$email="xxxx@xxxxx.com";

$message="";

$subject="Sample subject";

$message.="id_nome_progetto:".$values["id_nome_progetto"]."\r\n";

mail($email, $subject, $message);
what's wrong?


Nobody help me?

J
Jane 12/23/2008

Hi,
your code looks correct.

Please check all your field names. Field names are case sensitive here.
If it doesn't help publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.