Expand my Community achievements bar.

SOLVED

Auto Email send Upon Form submission

Avatar

Level 2

Hi,

I have a landing page which is hosted in adobe, and this page has a form where few text fields(FirstName, LastName, Email & Subscription Services) are added. Upon the submission of form needs to send an email immediately to the registrants with some personalized content from the form data like "Dear FirstName, Thanks for subscribing serviceA, Service B".

Let me know if this is possible in Adobe campaign with out using Transactional messaging module.

Thanks,

Moseen

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi Moseen,

In ACC, you can do it by using the logic of the default register recipients web App.

Basically to send an email you have to use a script like this

// Send confirmation

nms.delivery.QueueNotification("confirmation",

<delivery>

<targets>

  <deliveryTarget>

    <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>

      <where>

        <condition expr={'@id ='+ ctx.recipient.@id}/>

      </where>

    </targetPart>

  </deliveryTarget>

</targets>

</delivery>)

But be aware that you may have a limitation based on the volume and the number of the engine call defined in your license.

Thanks

David

View solution in original post

5 Replies

Avatar

Correct answer by
Level 3

Hi Moseen,

In ACC, you can do it by using the logic of the default register recipients web App.

Basically to send an email you have to use a script like this

// Send confirmation

nms.delivery.QueueNotification("confirmation",

<delivery>

<targets>

  <deliveryTarget>

    <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>

      <where>

        <condition expr={'@id ='+ ctx.recipient.@id}/>

      </where>

    </targetPart>

  </deliveryTarget>

</targets>

</delivery>)

But be aware that you may have a limitation based on the volume and the number of the engine call defined in your license.

Thanks

David

Avatar

Employee

You can also think of using writing java code to send an email.

Please see below similar thread.

How to send an email through an javascript

Avatar

Level 2

Hi Shrawan ,

Thanks for the reply, can we able to pass context variable in this method to personalize the content in the delivery?

Avatar

Level 2

Hi Shrawan,

Is there a better way to implement this, any suggestions would be appreciated and also would like to tell you that queue notification method is not working insted submitdelivery mehtod is working but it generates each delivery log for every single submission. My requirement is to append the delivery logs on the single execution so that we can avoid large volume of logs and also to extract the reports from single point.

Let me know is there any better way to implement this in Adobe campaign.

Thanks,

Moseen

Avatar

Level 10

Hi Moseen,

Have you found a way to achieve this since your last answer?

I can't really help with JavaScript but following up anyway.

Florent