How to use PHPmailer? Help me with its API

Question!

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->isSMTP();
x->Host = myhost;
x->Port = myport;
x->AddAddress(recipientAddress);
x->From = myEmail;
x->Username = username;
x->Password = password;
x.Send();


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