Hello, I am having two problems with email:

1.) The email (welcome.ctp) is sending, but the layout (default.ctp) is not
being included.

2.) I'd rather not have the "This email was sent using the CakePHP
Framework..." message at the bottom.

I've included the email layout, email view, and controller code below. Any
help is appreciated!!

views/elements/email/text/default.ctp:

<?php echo $content_for_layout ?>
http://www.mysite.com

views/elements/email/text/welcome.ctp:

Test message for <?php echo $new_user['User']['username'] ?>

Controller:

$this->Email->from = [EMAIL PROTECTED];
$this->Email->replyTo = $this->Email->from;
$this->Email->to = $new_user[0]['User']['email'];
$this->Email->subject = 'Welcome to mysite.com';
$this->Email->template = 'welcome';
$this->Email->layout = 'default';
$this->Email->sendAs = 'text';
$this->set('new_user', $new_user[0]);
$this->Email->send();
-- 
View this message in context: 
http://n2.nabble.com/Email-layouts-not-working-tp1564302p1564302.html
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to