smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
210 stars 112 forks source link

alternate view / inline image #90

Open ghost opened 10 years ago

ghost commented 10 years ago

http://social.msdn.microsoft.com/Forums/en-US/ce41bbc1-3982-4853-8f3c-5435e5045bc9/systemnetmail-with-embedded-images?forum=netfxnetcom

when using s22 and system.net.mail to create an email with an inline image, the image does not get placed in the email.

The email will be sent to the appropriate email box, but no inline image.

jstedfast commented 9 years ago

Did you ever figure out a solution to this problem? If not, would you consider using MimeKit and MailKit instead?

If you switch to my libraries, you won't have this problem.

ghost commented 9 years ago

I did not end up using the inline image because of the software limitation, instead I created some HTML and made my own. I will try Mimekit and Mailkit. Thank you!

Tom http://tntsoftworks.dyndns.org/

On Sat, Apr 11, 2015 at 5:56 PM, Jeffrey Stedfast notifications@github.com wrote:

Did you ever figure out a solution to this problem? If not, would you consider using MimeKit https://github.com/jstedfast/MimeKit and MailKit https://github.com/jstedfast/MailKit instead?

If you switch to my libraries, you won't have this problem.

— Reply to this email directly or view it on GitHub https://github.com/smiley22/S22.Imap/issues/90#issuecomment-91933304.

jstedfast commented 9 years ago

The following walkthrough will help you accomplish what you want to do:

https://github.com/jstedfast/MimeKit#creating-a-message-using-a-bodybuilder-not-arnold-schwarzenegger

ghost commented 9 years ago

I have read thru the tutorials and started to use Mailkit but cannot find a way to add my image inline. Does Mailkit have this capability? see image below [image: Inline image 1]

Tom http://tntsoftworks.dyndns.org/

On Wed, Apr 15, 2015 at 3:04 PM, Jeffrey Stedfast notifications@github.com wrote:

The following walkthrough will help you accomplish what you want to do:

https://github.com/jstedfast/MimeKit#creating-a-message-using-a-bodybuilder-not-arnold-schwarzenegger

— Reply to this email directly or view it on GitHub https://github.com/smiley22/S22.Imap/issues/90#issuecomment-93534060.

jstedfast commented 9 years ago

Yes, MailKit has the capability to do EVERYTHING you could ever want to do with email :-)

Check out the documentation here: http://www.mimekit.net/docs/html/CreatingMessages.htm

Specially, see the BodyBuilder section which illustrates 1 of the ways in which you can add inline images.

ghost commented 9 years ago

yes but have you ever heard of the bug where the inline pic doesnt show correctly. IMy app appends the email to my drafts folder where inline works as expected. After sending the email the pic is no longer inline. It shows a small icon as if it doesnt know what pic to show, like the link is broken.

Sent from my Samsung Galaxy Note 10.1

-------- Original message -------- From: Jeffrey Stedfast notifications@github.com Date: 08/15/2015 4:53 PM (GMT-05:00) To: "smiley22/S22.Imap" S22.Imap@noreply.github.com Cc: TJ tmcginnis3@gmail.com Subject: Re: [S22.Imap] alternate view / inline image (#90)

Yes, MailKit has the capability to do EVERYTHING you could ever want to do with email :-)

Check out the documentation here: http://www.mimekit.net/docs/html/CreatingMessages.htm

Specially, see the BodyBuilder section which illustrates 1 of the ways in which you can add inline images.

— Reply to this email directly or view it on GitHub.

jstedfast commented 9 years ago

Are you using the cid:-type URL where you use the image's ContentId property? Or are you using the file name?

Try switching to the ContentId property.

jstedfast commented 9 years ago

FWIW, not all mail clients support both, but I think most support the Content-Id method.

ghost commented 9 years ago

worked gr8, thanks.

Tom http://tntsoftworks.dyndns.org/

On Sun, Aug 16, 2015 at 5:01 PM, Jeffrey Stedfast notifications@github.com wrote:

FWIW, not all mail clients support both, but I think most support the Content-Id method.

— Reply to this email directly or view it on GitHub https://github.com/smiley22/S22.Imap/issues/90#issuecomment-131622054.

jstedfast commented 9 years ago

Awesome, glad that worked out for you :-)