Hi,
is there any script to authenticate an email address entered in a form
field?
I used the php mail() function, using the following (where my email
field on the form is called "email"):
$email = explode('@',$em ail);
$mailhost = $email[1];
$mailhost=$mail host.".";
$to = myname@here.com;
$subject = "this is the email subject";
/* message */
$message = 'text of the message';
$headers = "From: ".$email."\r\n" ;
/* and now mail it */
mail($to, $subject, $message, $headers);
I do get the an email when I press submit, but the "From: " field is
nothing like what I entered in the form field.
It prints something like "From: Array@preteus.n et"
This is basically for someone who is downloading a utility and I need to
send him the activation key (and verify the email entered.)
TIA.
is there any script to authenticate an email address entered in a form
field?
I used the php mail() function, using the following (where my email
field on the form is called "email"):
$email = explode('@',$em ail);
$mailhost = $email[1];
$mailhost=$mail host.".";
$to = myname@here.com;
$subject = "this is the email subject";
/* message */
$message = 'text of the message';
$headers = "From: ".$email."\r\n" ;
/* and now mail it */
mail($to, $subject, $message, $headers);
I do get the an email when I press submit, but the "From: " field is
nothing like what I entered in the form field.
It prints something like "From: Array@preteus.n et"
This is basically for someone who is downloading a utility and I need to
send him the activation key (and verify the email entered.)
TIA.
Comment