Link to home
Create AccountLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

godaddy vps and phpmailer()

I want to send gmail using phpmailer() using godaddy vps

is this possible



$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                                           // 1 = errors and messages
                                           // 2 = messages only
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->SMTPSecure = "ssl";                 // sets the prefix to the servier
$mail->Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
$mail->Port       = 465;                   // set the SMTP port for the GMAIL server

Open in new window




godaddy vps says
relaying would need to be configured to your server (relayhost = yourservername.secureserver.net) it would not be able to use 3rd party relay servers.
ASKER CERTIFIED SOLUTION
Avatar of sivagnanam chandrakanth
sivagnanam chandrakanth
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of rgb192

ASKER

thanks