I tried contacting support from Bluehost but they don't know how to set this up.
What I did is first create my email account(VPS account). Then get all the details of my email setting.
Email Settings
Mail Server Username: notification@website.co
Standard (without SSL)
Incoming Mail Server: details here
Supported Ports: 143 (IMAP), 110
(POP3) Outgoing Mail Server: details here
Supported Port: 26 (server requires authentication)
So on my PHPMailer code I added this:
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Port = 26;
$mail->Host = "198.xx.xxx.x";
$mail->Username = 'notification@website.co';
$mail->Password = "myemailpassword";
But I got this error.
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host.
This is new setup of my SMTP. Any help? I am new in setting up PHPMailer SMTP.