PHP email form won't submit with different entered email address -
any idea why [enter email] field on form reach me@me.com if email entered matches me@me.com?
if put in other email address 1 listed in $to=, email doesn't send.
$fieldname = 'images'; if ($_post){ // we'll begin assigning address , message subject $to="me@me.com"; $subject="registration"; $from = "<".stripslashes($_post['email']).">"; // generate random string used boundary marker $mime_boundary="==multipart_boundary_x".md5(mt_rand())."x"; // we'll build message headers $headers = "from: $from\r\n" . "mime-version: 1.0\r\n" . "content-type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\"\n"; thank help.
edited add pastebin
you setting from header address posted in form, , to header email address. should reversed if trying send email them.
$to="me@me.com"; $subject="registration"; $from = "<".stripslashes($_post['email']).">"; if indeed want email appear come address listed in form, can't in general that. can't send email on behalf of use (your smtp server reject these days). prevent pfishing attacks (from: someone@thatyouknow.com, subject: password again?).
send email address control. include email address form part of body of email.
Comments
Post a Comment