[thelist] PHP equivalent to CFMAIL
Joe Crawford
jcrawford at avencom.com
Wed Sep 19 14:17:44 CDT 2001
"McAtee, Malcolm" wrote:
> Does any one have or know where to locate PHP code that duplicates CFMAIL
> functionality.
> I need to send form results to an action page which has a "thank you"
> message ad fill will forward the results in an e-mail
Hi Malcolm - I'll take a stab...
(From the CF documentation):
<CFMAIL
TO="#form.mailto#"
FROM="#form.mailFrom#"
SUBJECT="#form.subject#">
This message was sent by an
automatic mailer built with CFMAIL:
====================================================
#form.body#
</CFMAIL>
And the equivalent in PHP would be (these are new variable names):
mail( $form_mailto,$form_subject,
"This message was sent by an
automatic mailer built with mail() in php:
====================================================
$form_body" ,"From: $form_mailFrom");
/* http://www.php.net/manual/en/function.mail.php */
HTH!
- Joe <http://artlung.com/>
--
................... Joe Crawford \\ Web Design & Development
..... mailto:jcrawford at avencom.com \\ http://www.avencom.com
.... San Diego \\ CA \\ USA \\ AVENCOM: Set Your Sites Higher
More information about the thelist
mailing list