This one is kinda queer..

Here's the file I'm talking about :

http://jeff.nationaltestingcenter.com/scratch/Acc.pm

And here is the actual section of code..

============
 # don't load the header & footer for the email
my ($pre,$post) =
($self->tt_config->{TEMPLATE_OPTIONS}->{PRE_PROCESS},$self->tt_config->{TEMPLATE_OPTIONS}->{POST_PROCESS});
$self->tt_config->{TEMPLATE_OPTIONS}->{PRE_PROCESS} = '';
$self->tt_config->{TEMPLATE_OPTIONS}->{POST_PROCESS} = '';

 # send the user a message to let them know about their account
my $vars = { var1  => 'stuff', };
my $mailbody =
$self->tt_process('FindIt/Public/signup_complete_email.tmpl',$vars);
$self->sendEmail($user->email,$self->conf->param('mail_from'),$self->conf->param('mail_fromfull'),'Account
Created',$$mailbody);

 # reset template options
$self->tt_config->{TEMPLATE_OPTIONS}->{PRE_PROCESS} = $pre;
$self->tt_config->{TEMPLATE_OPTIONS}->{POST_PROCESS} = $post;

return $self->forward('signup_complete');
=========
So, what I'm trying to do is :

1: turn off my PRE/POST processing and parse an email template and
send it out to the user.
2: turn the PRE/POST back to what they were and forward the runmode along.

Here's whats actually happening.

1: The mail get's sent as I would expect, without the PRE/POST processing.
2: When the run mode get's forwarded, signup_complete renders without
the PRE / POST processing.

Idea's ?

Jeff.


--
Unless otherwise indicated, anything I write is either garnered from
experience or pulled out of my ass, depending on situational needs..

Jeff MacDonald

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to