php - add $email entry to email recipient -
i'm using following code contact form i've purchased;
$address = "myemailaddress here"; $e_subject = 'footie tote ' . $name . '.'; $e_body = "you have received scores $name, following details;\n match a: $matcha\n match b: $matchb\n match c: $matchc\n match d: $matchd\n match e: $matche\n match f: $matchf\n match g: $matchg\n match h: $matchh\n name: $name\n email: $email\n " . php_eol . php_eol; $msg = wordwrap( $e_body . $e_content . $e_reply, 70 ); $headers = "from: $email" . php_eol; $headers .= "reply-to: $email" . php_eol; $headers .= "mime-version: 1.0" . php_eol; $headers .= "content-type: text/plain; charset=utf-8" . php_eol; $headers .= "content-transfer-encoding: quoted-printable" . php_eol; if(mail($address, $e_subject, $msg, $headers)) { etc. i'm trying have email sent email address, email address has entered form (the $email value), it's getting copy of submitted form.
could please point me in right direction achieve this.
taking @ the examples in php docs, looks can add cc headers (or bcc if prefer). looking @ headers in example #4 on page, should able this:
// ... previous code $headers = "from: $email" . php_eol; $headers .= "cc: $email" . php_eol; $headers .= "reply-to: $email" . php_eol; // ... later code
Comments
Post a Comment