Page 1 of 1
use OpenEMM for order confirmations
Posted: Thu Oct 07, 2010 11:43 am
by gerben
I would like to use OpenEMM for order confirmations.
Is it possible to trigger events with variables like webforms do? I would prefer to trigger events with webservices but other ways are also acceptable.
Kind regards,
Gerben
Posted: Thu Oct 14, 2010 7:54 am
by maschoff
What dou you mean by "events"? Event-triggered emails?
Posted: Thu Oct 14, 2010 8:32 am
by gerben
Yes. The company I work for would like to use OpenEMM for individual e-mails similar to subscription confirmations.
The main purpose is to send out an order confirmation.
The difference with a subscription confirmation is that the action is not triggered by a webform but by an external system, preferable using webservices.
I think OpenEMM is a good framework for this because it handles bounces, manages templates, and can register the email address to a mailing list for later usage.
Posted: Thu Oct 14, 2010 3:23 pm
by maschoff
You could trigger an action consisting of an action script which uses ScriptHelper.sendEmail (see doc for OpenEMM Script Actions) to send out single mails. The link would look like this:
Code: Select all
http://www.domain.com:8080/form.do?agnCI=1&agnFN=SendMail&SENDER=news@domain.com&RECIPIENT=customer@domain.com&SUBJECT=Notification&TEXT=Dear...
Form SendMail simply starts an Action which consist of an action script. The corresponding action script would look like this:
Code: Select all
#set($result=$ScriptHelper.sendEmail($requestParameters.SENDER, $requestParameters.RECIPIENT, $requestParameters.SUBJECT, $requestParameters.TEXT, "", 0, "ISO-8859-1"))
#if($result)
#set($scriptResult="1")
#else
#set($scriptResult="0")
#end
Would that be helpful?
Posted: Thu Oct 14, 2010 3:44 pm
by gerben
Absolutely! Thank you.