Why not just use an email component?
<?php
class EmailComponent extends Object
{
/**
* Sends email form contact page to info addrss, using senders email
as reply to
*
* @param unknown_type $f_email
* @param unknown_type $f_name
* @param unknown_type $message
*/
function infoemail($f_email,$f_name,$message)
{
$to = '[EMAIL PROTECTED]';
// subject
$subject = 'Contact Page Message from TheGreenLifeList';
// To send HTML mail, the Content-type header must be
set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html;
charset=iso-8859-1' . "\r\n";
$headers .= "From: The GreenLife List <[EMAIL
PROTECTED]>
\n";
$headers .= 'X-Sender: <[EMAIL PROTECTED]>\n';
$headers .= 'X-Mailer: PHP\n';
$headers .= "Reply-To: ".$f_name." <".$f_email.">\n\n";
// Mail it
mail($to, $subject, $message, $headers);
}
?>
'host' => 'mail.xxxxx.com',
> 'username'=>'xxxxxxxx',
> 'password'=>'xxxxxxxx');
> $this->Email->delivery = 'smtp';
> $this->Email->send("testing");
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---