Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "mail.startupsmackdown.org";
- $mail->SMTPAuth = true;
- $mail->Username = "contact@startupsmackdown.org";
- $mail->Password = "test123";
- $mail->From = "contact@startupsmackdown.org";
- $mail->AddReplyTo =($_POST['email']);
- $mail->AddAddress("ichi.brown@gmail.com");
- $mail->WordWrap = 50;
- $mail->IsHTML(true);
- $mail->Subject = "STARTUP SMACKDOWN - Form";
- $string = "Comment submitted by ".$_POST['name']." {$_POST['email']}:<br/>";
- $string.= $_POST['comments'] . "<br/>";
- $mail->Body = $string;
- if(!$mail->Send())
- {
- echo "There was an error sending the message";
- echo "Mailer Error: " . $mail->ErrorInfo;
- exit;
- }
Add Comment
Please, Sign In to add comment