|
|
accessing smtp with php
|
|
|
|
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status:
Offline
|
|
I was wondering if it is possible to access smtp via php...
For years we've been using a simple form processor that sends mail via sendmail.... but on one particular server sendmail is turned off although we have access to smtp.
Any ideas on how convert this bit of code so it uses smtp?
$Message = "<font face=verdana size=2>".$Message."</font></body></html>";
mail( $MailToAddress, $MailSubject, $Message, "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: $name <$email>\r\nBCc: $MailToCC");
header("Location: ".$redirectURL);
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by barbarian:
I was wondering if it is possible to access smtp via php...
For years we've been using a simple form processor that sends mail via sendmail.... but on one particular server sendmail is turned off although we have access to smtp.
Any ideas on how convert this bit of code so it uses smtp?
$Message = "<font face=verdana size=2>".$Message."</font></body></html>";
mail( $MailToAddress, $MailSubject, $Message, "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: $name <$email>\r\nBCc: $MailToCC");
header("Location: ".$redirectURL);
Use this:
http://phpmailer.sourceforge.net/
It supports SMTP and a lot more. Very nice.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
|
|
|
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|