use OpenEMM for order confirmations

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

gerben
Posts: 3
Joined: Thu Oct 07, 2010 11:41 am
Location: Amsterdam, Netherlands

use OpenEMM for order confirmations

Post 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
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

What dou you mean by "events"? Event-triggered emails?
OpenEMM Maintainer
gerben
Posts: 3
Joined: Thu Oct 07, 2010 11:41 am
Location: Amsterdam, Netherlands

Post 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.
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post 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?
OpenEMM Maintainer
gerben
Posts: 3
Joined: Thu Oct 07, 2010 11:41 am
Location: Amsterdam, Netherlands

Post by gerben »

Absolutely! Thank you.
Post Reply