Mimekit attachments not working with iOS email app - c#

I'm using Mimekit to construct emails containing a PDF attachment. This works well in every case, except when the recipient has an iPhone. On an iPhone, the email appears in their inbox with a paperclip symbol next to it. However when they open the email there is no attachment present.
Does anyone have any ideas how I can resolve this?
Regards,
Adam

The solution was to add the attachments to BodyBuilder.Attachments instead of BodyBuilder.LinkedResources.

Related

How to open mail client with body contain an embedded link?

I'm developing a Winform Application using .net Framework 4.8
I have a send email feature which open a user mail client and fill it with some basic content like From, To, Subject, body,... using the mailto: protocol.
I'm trying to fill the body of the email with an embedded link like in the picture.
I did a lot of research on mailto protocol and I know that it only support body with plain text, not html or something that we can add an embedded link to it.
If you know any way I can put an embedded link into the body of an email that will open on the client email app, please let me know.
It doesn't have to be using the mailto protocol, any .net libraries is also acceptable.
Thanks in advance

Html template for outlook app email not rendering as expected

I am sending html template to mail with C#. The email I sent has the following issues:
Html tags and css works fine in browser and mobile outlook, But it
coming in plain text in the Outlook desktop app. (I have inline css and tables)
And images do not appear at all. blockedimgsrc includes urls in
google chrome outlook. In gmail, the src of the image tag does not
come at all.
How can i fix these? can someone help?
Problem solved. Make sure the mail is not in junk, move it to inbox. :)

What is the best way to display an exchange mail message on an ASP.net web page?

I have a list of actions happend on an item listed on an ASP.net website. These actions are logged in a simple sql table linked to the item.
i.e.:
[2013-11-04 18:00]: Problem solved
[2013-11-04 18:00]: Called User
[2013-11-04 14:00]: Mail Received
For this, I will have to query the support mailbox for new mail messages. When a new message is received, a 'mail received' action is created. The 'mail recieved' entry should be clickable so the support user can see the contents of this message.
Question: How do I show this message to the support user?
Using Exchange Webservices Managed API 2.0 I can find this message and his body but the message body can have inline images and other layouts.
Options:
Show the message on the web page try to render the mail message the best way I can.
-> Are there any free plugins that do this? Something like this but that can be used in a web page?
Use Outlook to display this email message.
1&2 combined.. show a preview text-only message and click to see the whole message using outlook.
Since the support user will have Outlook 2010 or higher installed on his machine, the 3th option seems a logical choice but how can I display this message in outlook?
#{
HttpContext.Current.Response.AddHeader("Content-disposition", "inline;filename=message.msg");
HttpContext.Current.Response.ContentType = "application/vnd.ms-outlook";
}
#(new HtmlString(ViewBag.Body))
Obviously doesn't work.. a .msg file seems binary. Do I need an API for this?
But even when this works I will have these problems:
Every time you open a message you will have to click 'Open' to view this message.
-> Can I prevent this in modern browsers (primarily IE10 & IE11)?
-> Or are there 'inline outlook viewers' available?
When this support user answers this message using his outlook, this message will be sent 'from' his account. There would be no trace of this sent message!
-> Can anyone think of a way around this?
We are using an on-premise Exchange 2010 SP3 server that should be migrated to Exchange Online some time next year. Application is running on ASP.NET 4.5 using MVC 5.0 framework.
It could be solution to use this API to download messages as .msg file directly from Exchange server
Tinker with the different body types and retrieval methods. Info here:
http://msdn.microsoft.com/en-us/library/ee217562(v=exchg.80).aspx
See if any of them return something that's relatively easy to display, whether that be parsing the HTML body or showing the RTF body in the browser. I haven't mucked with this much and don't have an Exchange server handy or I'd check myself. If Exchange doesn't chew up the HTML when the message is send, you may be able to parse out the src="cid:contentIdOfAttachment" and replace it with a proper link to the attachment for display in the browser, but Exchange can do funny things to HTML and CSS.
And for clarification, by "support user", do you mean a support employee (ie, tech support) or someone who is receiving support and checking on the status of their ticket? If the message is to be shown and/or replied to in Outlook, would this person be accessing a single support mailbox (perhaps a public folder) or would the message be forwarded/copied to the person's individual mailbox?
If I'm getting this right, you'll be copying it to an individual mailbox, and from there it's "outside" the system, so the reply goes straight to the end user and skips the central support mailbox. You might be able to circumvent this by altering the message before it is sent/downloaded by changing the "from" to the central support mailbox. When the support user responds, it goes back to the central support mailbox, where you can have a secondary sync action (or even the same one that's fetching incoming mail) process it, change the to/from to send to the intended recipient from the central support mailbox, and send it off by using UpdateItems and saving it to the Sent folder. It's not pretty, but it should be possible. That's just off the top of my head, though, so there could easily be a better solution. And I'm operating on a few assumptions about the system you're working in, so maybe I have things a bit wrong.

How to remove windows mail signature while charm sharing in windows 8 xaml?

I share one URL to windows mail app using charm search from my application by default I am getting Sent from windows mail signature is coming in mail body. but if share the text to mail app the sent from windows mail signature is coming at bottom
is there any way I an position the mail signature at bottom?
No, you cannot control this. The only person that can remove the mail signature is the user. Sorry.

Bad Mail format in Outlook but fine in Gmail

i have created a function which send an email having large HTML data containing many in-line styling and images.
HTML body is set to true.
The Email appears fine in GMAIL with all styling and images but in Outlook the format got distracted.
Do outlook requires something more to make email exactly like in Gmail?
Thanks for any help
Thanks #Me.Name
your link help me to solve the issue, steps mentioned in below link help in creating HTML for outlook view
http://robcubbon.com/create-html-email-newsletters-outlook/

Categories