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

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.

Related

Outlook Show Email Images to User

I'm trying to send mails to some users which are basically built over images. How can I get those images to download by default in the users' (outlook) mailbox?
I did try encoding the image in base64 and sending it, not as a hosted image but embedded in email-html. But that too, did not work :( (I was SO sure that it would)
The client (organization) is well aware of this (that we'll be exchanging mails). Is there any setting that can be tweaked in the admin panel of MSExchange or o365 which can allow this?
Users have to have that set in their preferences. You cannot make it automatically do it as an email sender due to SPAM senders and security reasons.
Outlook allows adding hidden attachments, you may refer mention they in the message body (embedded images). In the message body you may see the following tags:
<img src="cid:some-image-cid" alt="img" />
The "cid:" prefix means that name refers to the attached image with the specified content ID.
Attachment attachment = newMail.Attachments.Add(
#"E:\Pictures\image001.jpg",
OlAttachmentType.olEmbeddeditem, null, "Some image display name");
string imageCid = "image001.jpg#123";
attachment.PropertyAccessor.SetProperty(
"http://schemas.microsoft.com/mapi/proptag/0x3712001E", imageCid);
String.Format("<body><img src=\"cid:{0}\"></body>", imageCid);

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() }}#

Sitecore ECM: User unsubscribing newsletter receives no confirmation 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.

Transactional Email Service with a lot of complex personalization

We are a dating application that wants to engage our users and thereby we want the ones in a week to send to our users report email about their activity, And of course the activity of every use should be unique.
Here is the example of the report, we want to deliver:
Hi, `User`,
You are receiving this notice because you have unread messages!
Do not miss your chance, maybe one of these messages were sent by your significant other!
Unread messages from these users:
Maria, 39, Rostov, link to profile of Maria, link to image of Maria
MIA, 33, Minsk, link to profile of MIA, link to image of MIA
Elena, 33, Kiev,link to profile of Elena, link to image of Elena
Click here to see all messages
I would like to use the one of leading Transactional or Marketing Email Services, but I don't know which one of them could give us solution to this need.
I've used MailJet email transactional service for this matter. They support possibility to add unlimited number of custom properties.
So far I advanced very well with the task doing the following:
Added custom properties for all needed properties
I've uploaded contact list details with all data via a CSV file
I've written a raw html template and bounded the template's placeholders to the custom properties of list details
For example:
<div class="new__faces__img"><img src='[[data:visitor1.photo]]'></div>
<div class="new__faces__name">
<span>[[data:visitor1.name]]</span>, [[data:visitor1.age]]
</div>
> other visitors ...
<div class="new__faces__img"><img src='[[data:visitor12.photo]]'></div>
<div class="new__faces__name">
<span>[[data:visitor12.name]]</span>, [[data:visitor12.age]]
</div>

Amazon SES Unsubscribe list with PHP

I have used amazon SES service for email campaigning. PHP Class that I am using can be found at http://www.orderingdisorder.com/aws/ses/.
I want to place a link in html mail that will be used to unsubscribe that user from list. I am sending mail to a list of users however, I want link to be unique for each. Link should appear as
http://www.mydomain.com/mail_unsub.php?userid=mymails#gmail.com&key=kjhgporhfs
Is there any function in SES that I can use directly??
suggestions please
You could place a special tag like #unsub# at the footer. When you loop through the mail list, you need to replace unsub tag with the current user email ( add the http://mydomain.com too of course)
When user click on that link, you need to remove them from you list. Or mark it as unsubscribe. It should be done inside mail_unsubscribe.php