how to send customized mails depending on the value of a field with the rules module

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
drupalmouse82's picture

i was wondering if i can use the selected value of a drop box or optiongroup to make an automated customized mail for my clients. For example i have a drop box with the following options:

price (drop box or option group):

a) 10 $ for 10 days
b) 20 $ for 20 days
c) 30 $ for 30 days

my client selects option "b) 20 $ for 20 days" then i want to send an automated mail after the client submitts his choice, that says "you have selected option "b) 20 $ for 20 days". on the other hand, if the client selects option a) i want to send an automated mail that says "you have selected option "a) 10 $ for 10 days", and so on.

is it possible to do this task with the rules module?

 thanks for your responses in advance

Comments

Yes, its posible. There is a

Petr Illek's picture

Yes, its posible. There is a condition availaible for field value. Then you can use this field value via token in the email. There should be some other setup, but you will find out easily.

Petr thanks for your help

drupalmouse82's picture

thanks! but maybe I misspoke.

My name is Adrian, I'm from Argentina, so I apologize for my bad English. I want to tell that I'm developing a site for the publication of used car sales, where users must register to post! the issue of payment of the publication would be the end of the entry of vehicle data, the user selects through a listbox OptionGroup or one of several options the plan of publication. for example:
"a) 10 $ x 10 days of publication"
"b) 20 $ x 20 days of publication"
"c) 30 $ x 30 days of publication"

and then save the content, according to the option you select, you send an email with the paypal payment coupon (in my case DineroMail) notification that he must pay $ according to many publishing plan chosen.

My intention is to do with the module rules, but can not find how to implement sending the mail custom VALUE AS A FUNCTION OF FIELD "publication scheme", according to the chosen field value, send a custom mail inserting the paypal code with the corresponding amount, so would have to have 3 emails personalized with paypal code with the amounts $ 10, $ 20 and $ 30, ie:

1) the user registers,
2) the user create content to publish your vehicle entering data, photos, etc.. and finally select one of the options "publication scheme"
3) With module after saving rules contained in the previous step, trigger the action of sending mail with the payment coupon with your payment DineroMail ACCORDING to select the option "plan to publish"

You can make the difference with Rules? Payment does not want to do it at the same site, just send the payment coupon by mail for the user to print the coupon. What do you recommend?

Have you tried creating a

IWasBornToWin's picture

Have you tried creating a rules component (rules set). With the compenant you can create 3 different rules within it, 1 for each case and have it's own condition.

Then in your current rule you just have one action - to call on the component.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: