TYPO3 Powermail double opt-in for newsletter only - typo3

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

Related

APEX 19.2 page process & session state

Have a Dynamic Action on an APEX 19.2 form page, which sends an email immediately upon clicking the 'Create' button (done through a DB Package). This email includes data found in the session state. But missing is any value entered on the form page, specifically what is selected in a radio group. Was thinking maybe the radio group item selected can be saved to the session state - then can be included in the email. Wondering how/if this can be accomplished?
Found the solution!! DA's have a "Page Items to Submit" - so needed to include the missing page item to the plsql code. Then alter the DB package specifications & body to process that.

Email aren't been sent in Aldryn forms, even though email backend is configured

I'm using Aldryn forms to submit contact page. In aldryn forms when the contact form is submitted it can be seen in the admin panel.
Including this, I need to receive email notifications.
As I've already worked on a few email notification projects in Django.
I've provided the relevant code for the email-backend config.
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'abc#gmail.com'
EMAIL_HOST_PASSWORD = 'xxx'
EMAIL_PORT = '587'
EMAIL_USE_TLS = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
When the contact form is submitted I need to receive an email in abc#gmail.com
please let me know if anything I'm missing out or wrongly configured.
I've resolved the issue after filling "Recipients" section in "Email notifications" inside settings of "Form" plugin (aldryn-forms plugin of Djangocms in my case). Settings are correct - work for me.

Blocked (disabled) email body field in CRM 2013

In standard situation when you would like to create an Email through CRM 2013 user interface, you fill sender, recipient, subject and body of email and send it.
But in one specific situation, the body (description) field can be disabled and you are not able to insert any text inside.
The cause of the problem is the setting called Use secure frames to restrict email message content. So if you have the problem with the body field, go to the Settings->Administration->System Settings->Email tab. Find section Set Email form options and set Use secure frames to restrict email message content to No. That's all.
We checked this solution, we have the same issue in CRM 2016 8.0 but for us, this setting is already set to "No" and the body is disabled until we save the record.

Clickable format to email links in lotus notes

I am working on an application with xpages.I would like to send emails with that contain links.
When I send the link, it does not appear in clickable format.Can someone help me to have clickable format?
Thank you
var db = session.getCurrentDatabase();
var memo = db.createDocument();
memo.appendItemValue("Body","http://www.my_link.com");
memo.appendItemValue("Form", "Memo");
memo.appendItemValue("Subject", "New task !");
var t = mail.getValue();
memo.send(t);
If you do it like this, the "Body"- Item is a simple Text- Item and not a Richtext- Item. Text- Items cannot contain clickable links.
You have to explicitly define Body as a NotesRichtextItem and append text to it:
var rtitem:NotesRichTextItem = memo.createRichTextItem("Body");
rtitem.appendText("http://www.my_link.com");
rtitem.addNewLine();
This way the link will automatically be converted to a clickable hotspot.
If you are hoping that the statement memo.appendItemValue("Body","http://www.my_link.com"); will create a rich text field with link then it won't. For that use NotesRichTextItem class. You could also look into this Technote on how to create HTML formatted mail messages.
One question here, where will the recipient would be viewing this mail? In Notes client or this mail would be sent to IDs like Gmail or Yahoo? If recipient would be viewing this mail in Lotus Notes then you would have to enable this setting in your Notes client.
Go to File > Preferences > Basic Notes Client Configuration. Under the section Additional options enable the setting Make Internet URLs (http://.......) into Hotspots.
If the mail is being sent to IDs like Gmail or Yahoo then you would be at their mercy on how links are displayed. But in my experience they always display links, if they are in valid format.

Drupal Webform email receipt

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.