iansari
11-02-2006, 09:25 AM
I would like to user PHP Mailer in my website. What is the "include" path (e.g. ?/?/phpmailer.php) for the PHPMailer module at hostmonster? Do I have to install PHPMailer (seems to be already instlalled as I got a test message from some application in my catch all address)
Thx.
s0l1dsn8k3
11-02-2006, 11:50 AM
Are you talking about PHPMailer, the mailing script class written in PHP?
I'm using it for my site when I send the submitted form info to an email address. To install, you just need to extract the PHPMailer package to a folder. For example, place the gzip file in public_html and when you extract it, it'll be in public_html/PHPMailer. If your other PHP files that wants to use PHPMailer are in public_html, then all you need to do is add this line:
require_once("PHPMailer/class.phpmailer.php");
Then in your PHP script, you can start creating mail messages using PHPMailer.
$mail = new PHPMailer();
PHPMailer is not installed on the server, by default. If your other scripts are able to send mail, they must be using the generic mail() in PHP to send the mail through Unix/Linux's sendmail.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.