I'm trying to set up an email receipt to send to the user who fills out the form.
I'm using Webform 6.x-3.1. On this help page for Webform "admin/help/webform" it hints at that function by stating this "Once finished adding fields, you may want to send e-mails to administrators or back to the user who filled out the form. Click on the Emails sub-tab underneath the Webform tab on the piece of content."
It looks like they took out the "Additional processing" ability with this version.
I tried adding an hidden email field under the "E-mails" tab to send an email to the form submitter but didn't work. What I di was add a hidden field called "email_user" and for the default value, gave it %post[email] because the email field they fill out is "email". It doesn't look like it's grabbing the post.
Does anyone have this working or understand how to get it done?
I think you might be misunderstanding the E-mails subtab. For an example, start fresh with a new Webform node and try this:
In the "Form components" subtab, add three components: "Example First Name" (type: textfield), "Example Last Name" (type: textfield), and "Example Email Address" (type: email). For this example, mark them all as "Mandatory" (although I don't think that setting is required for confirmation emails).
Check out the "E-mails" subtab. See how the "Component value:" dropdown now displays "Example Email Address" as an option? Leave that selected, and click on the "Add" button to the right.
On the next page, you can define the email header and body, as I'm sure you've seen before. Note at the top, however, the E-mail to address: field, which still has your "Example Email Address" component selected. This means that the confirmation email will be sent to the email address that is entered in the Example Email Address form field upon submission.
Now click the "View" tab and try out your form: Enter an example name and a real email address, submit, and check to see if you receive the Webform-generated confirmation email.
In short: you don't use the E-mails subtab to define additional fields/components for your form; you use it to select which existing form field(s) should be the recipient of a confirmation email.
Related
I've got a contact form. In this form I want to add a "newsletter Opt-In".
This Opt-In has to be double opt-in.
The Problem:
I can set double opt-in
Once this is set, the whole form becomes double opt in
The user has to confirm the form, not the newsletter opt in
Only when the user confirms the form, the contact form mail is sent
So obviously this is the wrong behaviour. I want the formdata to be sent immediately, but a second mail for the newsletter opt-in.
As far as I remember the TypoScript setup plugin.tx_powermail.settings.setup.main.optin=1 or =0 will enable or disable Optin in powermail.
Together with a condition where you listen to a GET/POST if a checkbox is set, you can enable or disable it.
I only know of a solution for the following behaviour:
If the user does not check the Option checkbox, the formdata will be sent immediately to the receiver. If the Optin checkbox is checked, the formdata won't be sent before the user confirms the email. After confirmation the email with the formdata (containing the fielddata newslettersubscription = 1) will be sent to the receiver.
You can use a typoscript condition to check if the newsletter Opt-In checkbox was checked. If the markername of your checkbox is for example newslettersubscription you could use the follwing condition in your typoscript setup.
#disable option
plugin.tx_powermail.settings.setup.main.optin = 0
#enable option if option checkbox is checked
[globalVar = GP:tx_powermail_pi1|field|newslettersubscription|0 > 0]
plugin.tx_powermail.settings.setup.main.optin = 1
[end]
For this to work you have to setup your form with the following settings.
"Double Optin" must not be set in the flex form settings
Within the tab "Mail to User" the fields "Sender Name" and "Sender Email" have to be filled
Your checkbox has to use the markername newslettersubscription
I'm working with Dynamics CRM 2016, I want to send an Email from crm using an email address that the user insert (the email Id is taken from a field in incident-Entity and not from crm-user) according to examples online the option is to use entityreference from another entity that will hold and get the Email address, is there a way not to use Entityreference but instead get my email address from a simple field on incident form?
You can use e-mail addresses that are not associated with e-mailaddress fields. It just requires a few steps.
In the UI navigate to Settings > System Settings > tab Email > header "Set Email form options".
Make sure setting "Allow messages with unresolved email recipients to be sent" is Yes.
Now you can use literal e-mail addresses like in this example:
var sender = new EntityCollection();
sender.Entities.Add(new Entity("activityparty")
{
["addressused"] = "me#home.test"
});
var recipients = new EntityCollection();
recipients.Entities.Add(new Entity("activityparty")
{
["addressused"] = "info#acme.test"
});
var eMail = new Entity("email")
{
["from"] = sender,
["to"] = recipients,
["subject"] = "Just a test",
["description"] = "Body of your e-mail"
};
organizationService.Create(eMail);
You can do it programmatically! You can send an email to a person who is not a Lead/Contact/Account.. The CRM will send email but it will show un resolved referenced when you open it in CRM
Update:
but instead get my email address from a simple field on incident form?
This is not possible in CRM UI. But possible using the code snippet from the blog link in comment. You have to query the textbox content and put in recipient party address.
(These two lines are for sending email to activity party email Id from associated record non-email field from CRM UI, without any code or customization for this particular scenario)
Unfortunately you cannot achieve it.
Only way is associated record.
currently we have a custom record with a list/record field that links to an opportunity and i can create a button that creates new emails (via workflow) pulling recipient information from the contact on the opportunity record but what i want to know is if there is a way to replicate the "New Email" button usually found on a record's Mail Merge tab as i want to be able to press a button to open an email template that has no recipient set as currently the send email workflow option has both recipient and sender as mandatory fields - is this possible?
You can edit the Custom Record Type to check the 'Enable Mail Merge' checkbox, then you should have this functionality.
If you want the functionality to be available via a button in the main button group, I don't believe this is possible using a workflow only; however you can achieve this with scripting. To do this, create a User Event script with a Before Load function to add the button to the form, and a Client Script which can be called on clicking the button. Upload and deploy to the Custom Record Type that you want the email button to appear on. For this answer I'll assume you have at least a basic knowledge of creating a script record - let me know if you need more information.
The User Event script:
function emailButton(type, form)
{
//add a custom button on the form
//specify the function name of the Client script created in Step 2
form.addButton('custpage_Add', 'Start Email','startEmail();');
//set the internal id of the Client script created in Step 2
form.setScript('customscript_ppcs_start_email_client');
}
The Client script:
function startEmail() {
new_message([['transaction',document.forms['main_form'].elements['id'].value],['entity',document.forms['main_form'].elements['companyid'].value],['template',['66']]], 'EMAIL');
}
You can modify the template used by replacing the '66' with the internal ID of the template you want, or you can remove it. You can also remove the 'entity' as you don't want the recipient to be set. Below is an example with both removed:
function startEmail() {
new_message([['transaction',document.forms['main_form'].elements['id'].value]], 'EMAIL');
}
Im using dmailsubscription to register users to a newsletter. Theres an option where, once already registered and confirmed, you can get an email with the link to edit your profile.
The problem is, once you enter the email address, the page is reloaded and the plugin shows no message at all. Id like to get some sort of confirmation text, like:
"The email with the link to edit your profile was sent to xxx#xxx.com"
or at least:
"The email with the link to edit your profile was sent to your email address"
, but I dont know how.
Here's my template: http://pastebin.com/K5WVSgrY
Above
<!-- ###TEMPLATE_DELETE_SAVED### begin
But AFTER
###TEMPLATE_INFOMAIL### end-->
Try to add this:
<BR><BR><BR><BR>
<HR>
<BR><BR><BR><EM>This template is the response page when a users has requested
his password send to his email.</EM> <BR><BR><!-- ###TEMPLATE_INFOMAIL_SENT### begin
This template is the response page when a users has requested his password send to his email.
-->###GW1B###We have emailed your your details. Edit your message here.###GW1E###<BR><BR>###GW2B### <STRONG>Go back</STRONG><BR>###GW2E###
<!-- ###TEMPLATE_INFOMAIL_SENT### end--><BR><BR><BR><BR>
<HR>
I cannot find this part in your template-file.
Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others.
The form, after filled in, would:
send the content of the form fields to an email address (name:joe, phone number: 555 etc)
send an instance response to the email provided ('thanks for your contribution')
add email address to an internal database (which is exportable) within the wprdpress admin
Thanks.
This will accomplish your task and more - http://wordpress.org/extend/plugins/formstack/
cformsII from Delicious Day is what you're looking for. Customizable, easy to set up, and can be set up to track all form submissions. Find it at http://www.deliciousdays.com/cforms-plugin/