I want to email the results of a form to the user. Everything is being emailed except for $company, $address, $city, $state and $zip.
I'm obviously not working the ." correctly. How is the proper way of doing this? Thanks.
[PHP] function sendWelcome($us er, $email, $pass){
$from = "From: ".EMAIL_FROM_NA ME." <".EMAIL_FROM_A DDR.">";
$subject = "website - Welcome!";
$body = $user.",\n\n"
."Welcome! You've just registered! "
."with the following information:\n\ n"
."Username: ".$user."\n "
."Password: ".$pass."\n \n"
."".$company."\ n"
."".$address."\ n"
."".$city.", ".$state." ".$zip."\n\ n"
."If you ever lose or forget your password, a new "
."password will be generated for you and sent to this "
."email address, if you would like to change your "
."email address you can do so by going to the "
."My Account page after signing in.\n\n"
."- admin";
return mail($email,$su bject,$body,$fr om);
}[/PHP]
I'm obviously not working the ." correctly. How is the proper way of doing this? Thanks.
[PHP] function sendWelcome($us er, $email, $pass){
$from = "From: ".EMAIL_FROM_NA ME." <".EMAIL_FROM_A DDR.">";
$subject = "website - Welcome!";
$body = $user.",\n\n"
."Welcome! You've just registered! "
."with the following information:\n\ n"
."Username: ".$user."\n "
."Password: ".$pass."\n \n"
."".$company."\ n"
."".$address."\ n"
."".$city.", ".$state." ".$zip."\n\ n"
."If you ever lose or forget your password, a new "
."password will be generated for you and sent to this "
."email address, if you would like to change your "
."email address you can do so by going to the "
."My Account page after signing in.\n\n"
."- admin";
return mail($email,$su bject,$body,$fr om);
}[/PHP]
Comment