Problem With Phpmailer

I want to send mail with phpmailer from my host,but when i run this code,any message show in result. what is my problem in this code?

$mail = new PHPMailer();
$mail->addAddress("recipient Email"); // recipient Email
$mail->setFrom("Sender Email"); // Sender Email
$mail->Body="hello world !";
$mail->Host=""; // SMTP Host
$mail->Username="Sender Email";   //I created this mail in my host
$mail->Password="*****"; // password for email
$mail->SMTPAuth = true;
   if(!$mail->Send()) {
        echo 'Message was not sent.';
        echo 'Mailer error: ' . $mail->ErrorInfo;
   } else {
        echo 'Message has been sent.';

this is my host and smtp information

Is that outgoing server setting correct for SSL mail? It seems that you’re using the outgoing server from the non-SSL setting, but the port for SSL.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.