I have a drupal commerce form and I'd like it to send me an email with all the data from the form the user filled out every time they submit the form.
Is this possible?
Not sure what a "drupal commerce" form is. There are two major kinds of forms in Drupal Commerce, including the add-to-cart form and the checkout form. Both forms include actions in the Rules module that would let you send an email should one of them get submitted.
Here's a rule that proves the point for add-to-cart (though I would not recommend spamming yourself this way):
{ "rules_spam_yourself" : {
"LABEL" : "Spam Yourself",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "commerce_cart" ],
"ON" : { "commerce_cart_product_add" : [] },
"DO" : [
{ "mail" : {
"to" : [ "site:mail" ],
"subject" : "Product added!",
"message" : "\/\/ Product\r\nProduct Added: [commerce-product:title] ([commerce-product:sku])\r\nQuantity: [quantity:value]\r\n\r\n\/\/ Order\r\nOrder ID: [commerce-order:order-id]\r\nOrder Number: [commerce-order:order-number]\r\n\r\nOrder Status: [commerce-order:status-title]\t\r\nOrder State: [commerce-order:state-title]\r\n\r\nCreated: [commerce-order:created]\r\nUpdated: [commerce-order:changed]\r\n\r\n\/\/ Customer\r\nCustomer Email Address: [commerce-order:mail]\r\n\r\n\/\/ Actions\r\nCustomer View: [commerce-order:customer-url]\r\nAdministrative View: [commerce-order:admin-url]\r\n",
"language" : [ "" ]
}
}
]
}
}