Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $email = new PHPMailer();
- $email->isSMTP();
- $email->SMTPDebug = 0;
- $email->Debugoutput = 'html';
- $email->SMTPAuth = true;
- $email->Host = "gator2010.hostgator.com";
- $email->Port = 465;
- $email->Username = "email@mydomain.com";
- $email->Password = "emailpassword";
- $email->setFrom('email@mydomain.com', 'Sender Name');
- $email->Subject = 'Subject';
- $email->MsgHTML($body);
- $email->AddAddress( "useraddress" );
- $email->AddReplyTo('email@mydomain.com');
- if(!$email->Send()) {
- header("xxx");
- die ();
- } else {
- header("yyy");
- die ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement