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();
here is quick fix of your code
so now you would get more debug messages and track your errors and fix them 🙂
update : okay that is easy :
The function $mail->IsMail(); indicates that the letter must be sent using mail() function. Other methods are: