Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mail script
- <?php
- require("class.phpmailer.php");
- $mail = new PHPMailer();
- Script
- $mail->IsSMTP();
- $mail->Host = "ecowin.in";
- $mail->SMTPAuth = true;
- //$mail->SMTPSecure = "ssl";
- $mail->Port = 587;
- $mail->Username = "test@ecowin.in";
- $mail->Password = "*********";
- $mail->From = "info@ecowin.in";
- $mail->FromName = "Test from Info";
- $mail->AddAddress("mailhostingserver@yahoo.com");
- //$mail->AddReplyTo("mail@mail.com");
- $mail->IsHTML(true);
- $mail->Subject = "Test message from server";
- $mail->Body = "Test Mail<b>in b Script old!</b>";
- //$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
- if(!$mail->Send())
- {
- echo "Message could not be sent. <p>";
- echo "Mailer Error: " . $mail->ErrorInfo;
- exit;
- }
- echo "Message has been sent";
- ?>
Add Comment
Please, Sign In to add comment