// mail user their information $yoursite = 'www.mycltcassistant.com'; $webmaster = 'My CLTC Assistant Customer Service'; $youremail = 'email@example.com'; $subject = "You have successfully registered at $yoursite..."; $message = "Dear $firstname $lastname, you are now subscribed to My CLTC Assistant. To login, simply go to http://www.mycltcassistant.com/Protected/client_home.php and enter in the following details in the login form: Username: $email Password: $password Please print this information out and store it for future reference. Thanks, $webmaster"; mail($email, $subject, $message, "From: $yoursite <$youremail>\nX-Mailer:PHP/" . phpversion()); $_SESSION['username'] = "$email"; // mail information to billing $BillingEMail = 'firstname.lastname@example.org, email@example.com, firstname.lastname@example.org'; $subject = 'User Successfully Subscribed to My CLTC Assistant'; $message = "A user successfully subscribed to My CLTC Assistant. See below for information regarding this subscription. First Name: $firstname Last Name: $lastname Billing Address: $billingaddress Billing City: $billingcity Billing State: $billingstate Billing Zip: $billingzip Phone: $phone Fax: $fax E-Mail: $email Password: $password Credit Cart Exp: $ccexpmonth / $ccexpyear Card Type: $cctype Card Number: xxxx $cardnumberlast4 PayFlow Profile: $ppfprofileid Discount Code: $discountcode Course ID: $courseid"; mail($BillingEMail, $subject, $message, "From: $yoursite <$youremail>\nX-Mailer:PHP/" . phpversion());
From novice to tech pro — start learning today.