Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. recipient - the recipient (s) - if there are more than 1 recipient, recipients are joined together with a comma between them

  2. sender - the sender - but only if the sender is defined.

 

Usage Examples

Do you have cookies?

...

Code Block
string custName = "";

if(customerId == 1) {
  custName = "Evil Corporation";
} else if(customerId == 2) {
    custName = "Wayne Enterprises";
}

sendEmail("mysender@kepler-rominfo.com", "torecipient1@kepler-rominfo.com", "ccrecipient@kepler.ro", "Your issue:" + key, "template.tpl");

Now, customerId  customerId is either the name of the customfield or an alias to it (recommended). 

Let's write our template, this time a html email:

...