Hello there,
I need to add a custom email trigger that send to a new registered user a 'confirmation email'.
How can I do that? Is there a way to customize these triggers?
I know I can do this editing direct in the Register scriplet, adding codes that will send a confirmation email right after the user registration, but for configuration porpuses and administrator organization I want to add this modification in the config section 'email template' and the correct 'select trigger' for this purpose.
Thanks,
Fábio Menezes
Confirmation email for the registered user (custom trigger)
-
- Ensign (ENS)
- Posts: 5
- Joined: Tue Oct 07, 2008 9:08 am
Re: Confirmation email for the registered user (custom trigger)
No, you can't customize the triggers, they are fixed in back end. Better you create a Email Template and select none option from available triggers then at location where you want to send this Email template just load the Email Template then send it as below
Code: Select all
emailTemplate.ToAddress = "user@somedomain.com";
emailTemplate.Send();
Re: Confirmation email for the registered user (custom trigger)
Although you can not customize or add the triggers, you can write your own code to send the Email for sending Email Template which contains the NVelocity code. You just need to create your own Email Template and when sending this template provide the NVelocity parameters. Have a look at the following post in which vendor specific Email Notification is generated.
viewtopic.php?f=42&t=8571
viewtopic.php?f=42&t=8571