How to use PHPmailer? Help me with its API


I have created a PHP page, whereby having the page to send automatically to user, i tried using PHPMailer but it only says "SMTP ERROR: cannot access host or somthing like that "

here's my code:

PHPMailer x = new PHPMailer();
x->Host = myhost;
x->Port = myport;
x->From = myEmail;
x->Username = username;
x->Password = password;

This video can help you solving your question :)
By: admin

PHPMailer SMTP Error 550

My server and php mail() function sends email to the spam folder

How to use PHPmailer? Help me with its API

PHPMailer Lite & GMAIL SMTP: emails not sent to Yahoo Mail, how to debug?

PHP, PHPMailer: Can't get example code for PHPMailer to work

PHPMailer Works on WAMP but not on Production Server

sending email using gmail server [duplicate]

fsockopen returns 'bool(false)' from browser but 'resource(4) of type (stream)' from command line

PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP

PHPMailer or SwiftMailer? [duplicate]

Problem with SMTP emails sent via PhpMailer: Helo Not Accepted