php - PHPMailer For Sending Mail on Godaddy -


i want use phpmailer on cpanel linux on godaddy. not find useful help. need install package or installed default? if installed path can use inside php program? if not installed, there document on how install on godaddy cpanel? , regards, have tried code below did not work , did not give errors either.

<?php echo "testing class phpmail 3"; require("class.phpmailer.php"); $mail = new phpmailer(); $mail->smtpdebug = 1; // enable verbose debug output $mail->issmtp(); $mail->host = "relay-hosting.secureserver.net"; $mail->port = 25; $mail->smtpsecure = "none"; $mail->smtpauth = false; $mail->username = ""; $mail->password = "";  $mail->from = "info@sa3at-soujoud.com"; $mail->addaddress("info@luxurylebanon.com"); $mail->subject = "first phpmailer message"; $mail->body = "hi! \n\n first e-mail sent through phpmailer."; $mail->wordwrap = 50; if(!$mail->send()) { echo 'message not sent.'; echo 'mailer error: ' . $mail->errorinfo; } else { echo 'message has been sent.'; } ?> 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -