The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
Hi there, I'm back to working on this problem after some time away from it and was wondering if anybody could help me: After working with my host company for a while I've -finally- been able to confirm that things -are- set up correctly on their end for php/smtp mail to work -- in fact I was able to get the following code, which is their recommended way of enabling php/smtp mail on their server, to work:
Code:
<? require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "sendmail.brinkster.com"; $mail->SMTPAuth = true; // This line is important for smtp authentication $mail->Username = "Validbrinkster@hostedemail.com"; $mail->Password = "EmailPassword"; $mail->From ="Validbrinkster@hostedemail.com"; $mail->FromName ="Validbrinkster@hostedemail.com"; $mail->AddAddress("Valid@emailaddress.com"); $mail->IsHTML(true); $mail->Subject = "Email Subject"; $mail->Body = "Email Body"; if(!$mail->Send()) { echo "Message was not sent <p>"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message has been sent"; ?> As always, thanks in advance to anyone who might help me out with this =) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|