Sending an email from within a page
Posted: Thu May 15, 2008 2:22 pm
Sorry in advance if this is not the right place to post this, but since it relates to CMSMailer, I thought it belonged with questions about the core.
See Calguy's post about sending an email from within a page: http://forum.cmsmadesimple.org/index.ph ... 525.0.html
The code doesn't work for me. Running CMSMS 1.2.4 with CMSMailer 1.73.12.
I paste the code from Calguy's first post into my page, and create my UDT with the UDT code specified in his post, but this is what I get when I view the page:
string(138) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->reset() (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(157) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->SetSubject('Test Message') (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(173) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->AddAddress('calguy1000@cmsmadesimple.org') (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(164) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->SetBody('This is a test message') (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(137) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->Send() (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
What could be causing this? Is it an issue with CMSMailer, or the way I'm implementing the code, or what?
Please move this post if it belongs somewhere else.
See Calguy's post about sending an email from within a page: http://forum.cmsmadesimple.org/index.ph ... 525.0.html
The code doesn't work for me. Running CMSMS 1.2.4 with CMSMailer 1.73.12.
I paste the code from Calguy's first post into my page, and create my UDT with the UDT code specified in his post, but this is what I get when I view the page:
string(138) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->reset() (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(157) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->SetSubject('Test Message') (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(173) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->AddAddress('calguy1000@cmsmadesimple.org') (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(164) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->SetBody('This is a test message') (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(137) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag: $cmsmailer->Send() (Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
What could be causing this? Is it an issue with CMSMailer, or the way I'm implementing the code, or what?
Please move this post if it belongs somewhere else.