Monday, January 5, 2009

Re: How to change default mailer Email component link

Hi Bernardo, thanks for the reply maybe in other versions the xmailer
property is tucked away. but this time it's showing on the email body.
and not on the header. Below is what I get from the mailer. I'm using
the latest version of cake.

Hi xeroxss,
Thank you for signing up in our service. To complete the sign up
process please click on the link below:
Confirm your account

This email was sent using the CakePHP Framework

This is what is inside my confirmation.ctp under the /app/views/
elements/email/html/

Hi <?php e($name); ?>,<br />
Thank you for signing up in our service. To complete the sign up
process please click on the link below:<br />
<a href="http://<?php e($server_name) ?><?php e($html->url(array
('controller' => 'users', 'action' => 'confirm'))) ?>/<?php e($id) ?>/
<?php e($code) ?>">Confirm your account</a>

Any other ideas?


On Jan 5, 11:34 pm, Bernardo Vieira <bvieira.li...@gmail.com> wrote:
> It's not advisable to change code directly in cake's core files. Cake is
> designed in a way that pretty much everything is customizable on a per
> application basis. Furthermore the  xMailer property  is not actually
> visible in the email body, it only appears in the email's headers which
> are normally tucked away in most email clients so you shouldn't have to
> worry about that. To adjust your email layouts you should edit
> app/views/layouts/email/html/default.ctp and
> app/views/layouts/email/text/default.ctp.
>
> xeroxss wrote:
> > Hi!, I'm new to Cake PHP and i'm trying to change the link in the
> > email being sent by the cake php framework.
> > I change the definition in the following line of the email.php in the
> > /cake/libs/controller/components/email.php but I'm still seeing the
> > same message even if  I deleted my cache. Is there additional files
> > where I need to change it. Thanks!
>
> > EmailComponent::$xMailer = 'CakePHP Email Component'
>
> > Definition at line 192 of file email.php.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: