Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail->isSMTP();
- $mail->SMTPAuth = true;
- $mail->Host = 'smtp.gmail.com';
- $mail->Username = 'krshutube@gmail.com';
- $mail->Password = 'Appo1234';
- $mail->SMTPSecure = 'ssl';
- $mail->Port = 465;
- $mail->isHTML();
- $mail->Subject = '$fields['name'] is wanting to apply.';
- $mail->Body = '<p>Name: $fields['name']</p><p>E-Mail: $fields['e-mail']</p><p>IGN: $fields['IGN']</p><p>Game Preference: $fields['game preference']</p><p>CPS: $fields['CPS']</p><p>Message: $fields['anything else']</p>';
- $mail->FromName = 'Contact';
- $mail->AddReplyTo($fields['e-mail'], $fields['name']);
- $mail->AddAddress('krshutube@gmail.com');
- if($mail->send) {
- header('Location: thanks.php');
- die();
- } else {
- $errors[] = 'Sorry, could not send email. Try again later.';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement