email signature with logo using CID Embedded Images (Inline Images) - powershell

Trying to build a powershell script to create an email signature for an office 365 email. The signature will have the company logo. The four patterns that can be used are:
CID Embedded Images (Inline Images)
Base64 Encoding
Attachments
Linked Images
number 3 is out, since every mail would have attachments.
number 4 was tried but outlook and most mail clients will not download external links for security reasons.
We tried number 2 and it does work in some clients. Office 365 isn't one of them....which leads me to the old school #1 option.
If we go to the Office 365 web portal and edit the signature you can easily add an image and format your signature, it uses method #1 internally. The problem I have is that we need to create these email signatures for hundreds of thousands of email accounts so we MUST automate it.
You can set a users email signature with the powershell command
Set-MailboxMessageConfiguration
you have to pass in a string for the signature which can be a mini HTML file. The problem is that we can't get a clean way to build a HTML file for the signature that includes a CID Embedded Images (Inline Images) since we have no way to know what the boundary value will be in the MIME message that gets created. We have the base64 encoded value of the image but can't see to find a way to get it to embed. So it will work in O365 AND outlook and other popular email clients.
Any idea how to do this in code? does not even have to be powershell... C# graph API maybe?
We are open to suggestions.. .
Thanks in advance..
-Ken

Related

Images in email are being blocked by Apple & Outlook

We send emails from AWS SES, and utilize a few differetn email templates.
HTML - our old emails are just pure HTML, we link to images and they are able to download as expected in Outlook 2016, webmail and other clients
Mustache - we use several mustache templates, link images exactly the same as our custom HTML templates, but the exact same image is blocked by Outlook
Is there anything in the mustache template that might increase mail client security to treat the exact same image differently in the 2 use cases above?
We've confirmed the location of the image is identical in both cases and the image is publicly availbble by clicking the path directly in a browser.

Mass email with personalized content

I know it's not 100% related to coding, but there is plenty of knowledgeable folks here, someone may know the answer.
I need to send a mass email (270 recipients) and each email needs to contain a pull from Excel sheet, containing data related to people that report to each recipient. So one recipient would get an email with 3-4 people, while the other recipient would get email with 10-15 different data points (like name, DOB, etc.)
I tried mail merge but it just sends multiple emails with separated data points for each person to each recipient (each recipient gets 10-15 emails related to 10-15 different people).
If there is a function in MS Office environment - what's it called? If there is resource (YT clip, etc.) would you have a link?
Many, many thanks!
You can automate Outlook from Excel, see Automating Outlook from Other Office Applications for more information. With Outlook object model you may configure whatever you need - reading the range of different cells in Excel and paste that information into the message body according to your needs.

Send responsive email with media queries in Outlook

We have a newsletter that uses media queries to display it in a responsive format for smaller screens. It displays as it should in Outlook, but when the email is forwarded on, it appears that Outlook is removing the media query code. We are using Outlook to send the email since we have exchange lists that we need to include. Does anyone know if there is a way around Outlook removing the media query code when forwarding, or another way to send an email with media queries through Outlook?
Unfortunately Outlook uses it's industry famous Microsoft Word render engine to reinterpret html email. This means that when forwarding, your email is full of MS garbage and, in this case, removing some of the original wanted code.
I've had issues with some corporate exchange servers stripping media queries - I think caused by their security software. Try sending to a different domain.
Best way to see if it is stripping your media queries is to check your email code. Scroll to the bottom of your email and right click>view source just inside your Outlook viewing window.
If sending to a different domain doesn't work, I'm afraid you may be out of luck as there is no way to force Outlook to preserve your original code.
Are you sending the newsletter via an Outlook email merge?
If you want better control, use a email newsletter service like Aweber or Constant Contact.
Granted, you need your contacts to opt-in but this shouldn't be a big problem if they want your newsletter.

WinRT/Metro/Win8 Share Contracts - How to send mail with subject, text and attachtment?

Is there an build in feature that provides sharing multiply types like text and image to other applications? All i found was sharing only text or only images to the build in mail application of windows 8.
Want to send an E-Mail were the subject, text and attachment is preset.
From my experience, the current build of Mail (Release Preview) simply won't do it. If you have an attachment, it ignores the subject and text. Look like we're going to have to wait for RTM or test with another email client.
UPDATE: AFAIK, this is still the case even after RTM. The Mail client simply can't handle both a message body and an attachment.

Possible to send SQL Reporting Services report in email format with a duplicate pdf attachment?

Our system sends a "Daily Update" email via Reporting Services to all users each morning. If people are on a computer there's no issue. But, for users on the go, some mobile device email clients can't render the email. However, they can all render pdf files.
So... the quick fix was to create two subscriptions for each user; one with the message in the body and one with the message in an attached pdf. This creates an annoying amount of friction. I'd love to send a single email with the message in the body a duplicate pdf version attached.
Is there a simple solution?
FYI, we're managing this through Reporting Services Subscriptions.
By default, no: you can't have both formats in one email
The report "render format" determines whether inline or attached if you check "Include Report". So setting to "PDF" will generate an attachment. However, if you check "Include Link" for PDF rendering then folk can click and go to the report served by the Web site.
Otherwise, you'd have to write some small app that calls the ReportServer service and gets both report formats and combine into one email. Or write your own custom delivery extension
I think it is better to use Database Mail. You can manage it to send e-mail or SMS or even both of them to your subscribtion list.
I'm not sure that you can send a single email with the message in the body a duplicate pdf version attached.
If I understood it correctly, you want to send an email with attachment in pdf and this pdf will have same text/data as that in email body, right?
If that is the case then don't you think "Include Report" with "Render Format" in PDF will give you desired result?