Confirmation email for the registered user (custom trigger)

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
fabiomenezes
Ensign (ENS)
Ensign (ENS)
Posts: 5
Joined: Tue Oct 07, 2008 9:08 am

Confirmation email for the registered user (custom trigger)

Post by fabiomenezes » Mon Oct 20, 2008 8:39 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Confirmation email for the registered user (custom trigger)

Post by mazhar » Mon Oct 20, 2008 10:31 am

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();

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Confirmation email for the registered user (custom trigger)

Post by mazhar » Tue Oct 21, 2008 10:17 am

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

Post Reply