[Typo3] Inside my extension I want to send an email
Annie Raymond
araymond at cegep-ste-foy.qc.ca
Tue Nov 1 14:45:47 CET 2005
Hi Richard,
Here is the code that I use.
//Send message the subscriber
t3lib_div::plainMailEncoded(
$this->piVars['email'],
$this->conf['email.']['subject'],
"\n".$this->conf['email.']['message']."\n\n\n".$varEmail,
'FROM: '.$this->conf['email.']['fromName'].'
<'.$this->conf['email.']['from'].'>','quoted-printable');
//End send
Where $this->piVars['email'] is the email that I have collect in my form.
$this->conf['email']['subject'], $this->conf['email.']['message'],
$this->conf['email.']['fromName'] and $this->conf['email.']['from'] are
defined in the file ext_typoscript_setup.txt and
ext_typoscript_constants.txt
Here is the code in ext_typoscript_setup.txt
email {
subject = {$plugin.tx_CSFformation_pi1.email.subject}
from = {$plugin.tx_CSFformation_pi1.email.from}
fromName = {$plugin.tx_CSFformation_pi1.email.fromName}
message ={$plugin.tx_CSFformation_pi1.email.message}
messageThanks ={$plugin.tx_CSFformation_pi1.email.messageThanks}
}
Here is the code in ext_typoscript_constants.txt
email{
subject = Confirmation d'inscription
from = blabla at test.com
fromName = Blab Bla
messageThanks= Nous avons reçu votre inscription.<br> Vous
recevrez sous peu, une confirmation par courriel de votre choix
d'activités.
message = Merci de votre intérêt!
}
If you have question, you can contact me directly
Annie Raymond, Webmestre
Service des télécommunications et de l'informatique
Cégep de Sainte-Foy
Tél.: 1-418-659-6600 #3825
Dmitry Dulepov a écrit :
>Hi!
>
>Ries van Twisk wrote:
>
>
>>Typo3 also hold functions for doing just that....
>>
>>
>
>I found that much more complicated. Never managed to send e-mail with
>them quickly...
>
>Dmitry.
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
More information about the TYPO3-english
mailing list