Sitecore ECM: User unsubscribing newsletter receives no confirmation email - email

My unsubscribe-link does not work properly. The user IS moved from Opt-in into Opt-out, but receives no confirmation email. Do I have to do anything to make that happen?
Note that I have not altered anything in /sitecore/content/ECM/[MyTarget Audience]/Standard Messages/Self-Service Subscription/Unsubscribe Notification.
In my footer I link to a existing unsubscribe.aspx I have found:
<a href="/sitecore/Unsubscribe.aspx">
<unsubscribe>
<sc:Text runat="server" Field="Unsubscribe" Item="<%# this.DataSource. %>" />
</unsubscribe>
</a>
In the email this is transformed into
<a href="http://www.multi-wing.com/sitecore/RedirectUrlPage.aspx?ec_url=%2fsitecore%2fUnsubscribe.aspx&ec_camp=A0D5584059504B85A3E3317B306A0411&ec_as=B9844EF7C873423FA9C369890E9354E8">
<unsubscribe>Unsubscribe</unsubscribe>
</a>
As I said the user IS being unsubscribed, but what do I have to do to make sure he/she receives an email confirmation?

If you've setup ECM with default settings it should just send automatically. If you have ECM sending emails then this should also be working.
Check your spam filter or your junk. This kind of notification get's junked all the time due to the format of the email.

Related

Why would an email sent from a ColdFusion script to an Office 365 distribution list fail to make it to the list members?

I have an application that sends mail using the ColdFusion <cfmail> tag. When the recipient, specified in the "to" attribute, is a simple single-user mailbox or shared mailbox, the mail is delivered without issue. When the recipient is a distribution list, however, the mail never arrives at the list members' inboxes. Following is what the code looks like:
<cfprocessingdirective suppresswhitespace="no">
<cfmail
type="html"
query="getRecord"
from="Some Email Address<SomeEmail#Address.com>"
to="some_distribution#list.com"
subject="Subject Text">
<p>Some text</p>
<ul>
<li>Some Field: #encodeForHTML(getRecord.someField)#</li>
<li>Some Other Field: #encodeForHTML(getRecord.someOtherField)#</li>
</ul>
<p>Some text</p>
</cfmail>
</cfprocessingdirective>
This has been tested with multiple distribution lists, and failed with all of them. I've tested adding a single-user email address or shared mailbox address to the CC or BCC attribute of the tag, and found that the mail arrives at the CC/BCC address, but not at the addresses of the members of the distribution list.
For Office 365, all groups and distribution lists have Outside Receiving turned off by default. You should check in the configuration for the group if the "Let people outside this organization send mail to this group" check box has been turned on.
To get to this setting:
log into Office 365 as an administrator
select the group from the Active Groups list
click on the group to open the properties slide out
switch to the Settings tab
you can turn on the flag from this panel and apply the changes
Sometimes group emails like that require the sender to be "inside" the group, or at least SMTP authenticated with the server. I'd check that first.

Order confirm email translation issue Magento 2

Our Magento 2.1.5 site is ready to translate all email templates.
But, when a customer creates order, he got non-translated order confirm email immediately. To check this issue, when we click "send email" tab on order view page on admin, we get the correctly translated email.
Send order
What was wrong?
We found this email template which was just order_new.html on theme folder.
app\design\frontend\[vendor]\[theme]\Magento_Sales\email\order_new.html
Also, this template was assigned on vendor.
vendor\magento\module-sales\etc\email_templates.xml
<template id="sales_email_order_template" label="New Order" file="order_new.html" type="html" module="Magento_Sales" area="frontend"/>
Is there any solution?
I solved this issue successfully.
This is solution.
Original:
#subject Your {{var store.getFrontendName()}} order confirmation #
My Solution:
#subject {{trans "Your %store_name order confirmation" store_name=$store.getFrontendName() }}#

HTML form - check if email entered correctly?

I creating Contact us form and i want in email section that if email entered wrong way (not name#example.com), user wouldn't be able to submit form.
input:
<input name="email" type="text" value="" size="30"/>
With regexp using javascript/php (or whatever) you would be able to validate an email format : presence of "#", presence of ".dom", but you will have to hard code to avoid something like "example.com".
I would suggest to use a validation/activation mechanism : send an email with a link, when user click the link you receive a notification, that means that email is valid so you can take care of it !
You can check this topic : Validate email address in JavaScript?
But it does not take care about something like "name#example.com".
As Mike W said in comments, the only way to validate a valid email is to send an email.
Also, you could have fun trying to trap auto-response for invalid email by checking the sender mailbox ;)

How to use IPN/PDT to display receipt and digital and/or downloadable products after purchase and redirection with PayPal

I have a webshop: energyshop.se which I have successfully managed to setup a Sandbox account at PayPal and to create a Buyer and a Seller account, created a button which I implemented to my site (from the Seller account) and I manage to make a payment through my Buyer account and got redirection to work too, to energyshop.se/tack.
So far so good, now I wonder how do I reach the "product ID" that IPN/PDT sends when the user is redirected? How do I use that holder to display files for download or just for play/listening? And what are the holders/variable that holds the receipt information? I would like to say for example when returned to /tack to display the receipt and then the downloadable item.
Any help is very welcome I have worked n this site for ages now and just want it done, it is for a customer too.
I tried to do something like this (i use wordpress at my thankyoupage):
<div id="receiptform">
<form method=post action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="cmd" value="_notify-synch">
<input type="hidden" name="tx" value="TransactionID">
<input type="hidden" name="at" value="P0d7_HmQSAuXh9r-7hG1Rzf_npI2LaFgYHQJyWUsjQHg7WhZARqs3sq6IW4">
<input type="submit" value="PDT">
</form>
</div>
But that just displays a button PDT that when clicked displyas FAIL ERROR: 4002
How do I edit this to just display the content nicely in tx?
Also, I can tell that "its" working because in the address field, when redirected to thank-you-page this reads: http://energyshop.se/tack/?tx=9LJ24270G46097059&st=Completed&amt=10.00&cc=USD&cm=&item_number=1 which leads me to think its A) completed and B) got the info I need. Now is the question how i present this data? What am I supposed to do? A php-script that I...? I cant seem to find any examples on it, just the defnition of the variables for IPN/PDT but that doesnt help me if I dont know where to put or do with it...
You would want to use PDT as you are. When you receive the tx variable and etc back, you have to do a post back to PayPal to verify all of the inforamtion. Then once you have varified the post, PayPal will then send all of the variables back to your script. You can find a bit more on how PDT works at https://www.x.com/developers/paypal/documentation-tools/ipn/integration-guide/IPNPDTAnAlternativetoIPN. There are also some sample scripts on that site as well at https://www.x.com/developers/PayPal/documentation-tools/code-sample/216627 and https://paypaltech.com/PDTGen/

TYPO3 + dmailsubscription: Get a confirmation message after email for editing profile

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.