This topic is locked

email values

5/15/2009 8:53:32 AM
PHPRunner General questions
G
Greeham author

Hi,
I am trying to have a before record added event email the provider of the information:-
$email=" ".$values["engineermail"]."\n ";

$subject="Spares Request";

$date_value = $values["date"];

$date_value = date("d-m-Y",strtotime($date_value));
$headers= "MIME-Version: 1.0" . "\r\n";

$headers.= "Content-type: text/html; charset=iso-8859-1" . "\r\n";

$headers.= "From: ".$values["engineer"]."\n ";
$message.=bl;ah blah blah......
So when the form (or record is added) then I want the information on the form emailed to the person who has submitted it (the engineermail value in my form), but it won't email them.
Any ideas?
Thanks,
Graham

501350 5/15/2009

Did you have written the following within your code?

mail($email, $subject, $message, $header);
G
Greeham author 5/15/2009

Did you have written the following within your code?


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


I have, yes.
I only quoted the part at the top. The emailing works fine if I put an actual address in there i.e
$email="blablah@blah.com";

$subject="Spares Request";

$date_value = $values["date"];

$date_value = date("d-m-Y",strtotime($date_value));
But when i change it to $email=" ".$values["engineermail"]."\n ";

it doesn't mail the resultant information to the address of the person adding the record...
Thanks,
Graham

L
laonian 5/15/2009

Could you try this and see whether it works?
$email=" $values["engineermail"]\n ";

G
Greeham author 5/15/2009

Could you try this and see whether it works?

$email=" $values["engineermail"]\n ";


Thnaks for the replies so far but still no joy.
Thanks again,
Graham

G
Greeham author 5/18/2009

Anyone else help out?
Thanks,
Graham

J
Jane 5/18/2009

Graham,
Please 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.

G
Greeham author 5/19/2009

Graham,

Please 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.


Hi Jane,
Done.
Thanks,