We setup a new email account via CPanel, and we tested that we can log into the webmail to send and receive emails of that account. We use this email account to send mails to our visitors to comlete the registration & activate their membership. However, on our website, we always see "mail has been successfully sent" but in fact, no one can receive that mails. Since the mail system is good, there seems to me some mistakes in relation to our scripts. And, our emails need to be athorizaed, here is the scripts, can any body advise that how to correct? Thanks in advance.
$smtpserver = "mail.xxx.com"; $port = 25 ; $smtpuser = "email@example.com"; $smtppwd = "111111"; $mailtype = "HTML"; $sender = "firstname.lastname@example.org"; $smtp = new smtp($smtpserver,$port,true,$smtpuser,$smtppwd,$sender); $smtp->debug = true; $to = $UserName; $subject = "Active Your Account-xxx"; $body = "<html>