Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("class.phpmailer.php");
- $mail = new PHPMailer();
- $mail->IsSMTP(); // set mailer to use SMTP
- $mail->Host = "ssl://smtp.gmail.com"; // specify main and backup server
- $mail->Port = 465;
- $mail->SMTPAuth = true; // turn on SMTP authentication
- $mail->Username = "info@maciacartgallery.it"; // SMTP username
- $mail->Password = "myPass"; // SMTP password
- $mail->From = "thecypherone@gmail.com";
- $mail->FromName = "Cypher";
- $mail->AddAddress("info@maciacartgallery.it");
- $mail->AddReplyTo("thecypherone@gmail.com", "Cypher");
- $mail->WordWrap = 50; // set word wrap to 50 characters
- $mail->Subject = "Website Message";
- $mail->Body = "";
- $mail->AltBody = "ashjdgjsdghssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss";
- if(!$mail->Send())
- {
- echo "Mailer Error: " . $mail->ErrorInfo;
- echo '&sent=Error';
- }
- else
- {
- echo '&sent=OK';
- echo "Cypher";
- }
- echo "cypher";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement