Expand|Select|Wrap|Line Numbers
- <?php
- //now to send the mails to seller
- require("class.phpmailer.php");
- $mail = new PHPMailer();
- //$mail->IsSMTP(); // telling the class to use SMTP
- //$mail->Host = "smtp.example.com"; // SMTP server
- $from = "vasilis@emile.com";
- $mail->From = $from;
- $mail->FromName = "Mike Kypriotis";
- $mail->AddAddress("mike@emile.gr","Mike");
- //$mail->AddAddress("customers@generalmusic.gr");
- //$mail->IsSendmail(); // telling the class to use Sendmail
- //$mail->Sendmail = "/usr/sbin/sendmail"; // send mail executables
- $mail->IsHTML(true);
- $mail->Subject = "Test Request ";
- $body="This is a test mail22 <a href='http://www.yahoo.com'>here</a>";
- $mail->Body =$body;
- $mail->AltBody="Hello, my friend! \n\n This message uses HTML entities, but you prefer plain text !";
- if(!$mail->Send())
- {
- //echo 'Message was not sent.';
- //echo 'Mailer error: ' . $mail->ErrorInfo;
- echo "Error outlook Sending";
- }
- else
- {
- echo "Send to outlook OK";
- }
- //now to send the mails to seller
- $mail = new PHPMailer();
- //$mail->IsSMTP(); // telling the class to use SMTP
- //$mail->Host = "smtp.example.com"; // SMTP server
- $from = "mike@emile.com";
- $mail->From = "mike@emile.com";
- $mail->FromName = "Hans Pollaerts ";
- $mail->AddAddress("mike_k12003@yahoo.gr","Mike");
- //$mail->AddAddress("customers@generalmusic.gr");
- //$mail->IsSendmail(); // telling the class to use Sendmail
- //$mail->Sendmail = "/usr/sbin/sendmail"; // send mail executables
- $mail->IsHTML(true);
- $mail->Subject = "Test Request ";
- $body="This is a test mail 22<a href='http://www.yahoo.com'>here</a>";
- $mail->Body =$body;
- $mail->AltBody="Hello, my friend! \n\n This message uses HTML entities, but you prefer plain text !";
- if(!$mail->Send())
- {
- //echo 'Message was not sent.';
- //echo 'Mailer error: ' . $mail->ErrorInfo;
- echo "Error yahoo Sending";
- }
- else
- {
- echo "Send to yahoo OK";
- }
- ?>
My body has hyperlinks but even if removed it will go to the junk
The IP of the server where the script is not blacklisted
Any suggestions?