Add inline images To Mail C#
-
Hi, Can anyone tell me how to send images in the mail. Not as a attachment, I want to embed images in the mail. Thanks, Sushant Duggal.
-
Hi, Can anyone tell me how to send images in the mail. Not as a attachment, I want to embed images in the mail. Thanks, Sushant Duggal.
If you use Outlook automation to send the mails, just insert the attachement at a position in (not after) the text:
outlookItem.Attachments.Add(
fileName,
OlAttachmentType.olByValue,
newItem.Body.Length+1, //This would ad it AFTER the text. Replace with the position you like
fileNameWithoutPath);If you don't send the mails in an Outlook/Exchange environment, I suggest you forget it, because most email clients won't display the attachment inline unless you format a proper HTML email body with image tags referencing the attachments.
-
If you use Outlook automation to send the mails, just insert the attachement at a position in (not after) the text:
outlookItem.Attachments.Add(
fileName,
OlAttachmentType.olByValue,
newItem.Body.Length+1, //This would ad it AFTER the text. Replace with the position you like
fileNameWithoutPath);If you don't send the mails in an Outlook/Exchange environment, I suggest you forget it, because most email clients won't display the attachment inline unless you format a proper HTML email body with image tags referencing the attachments.
HI, Do you know how to get or from where to get an editor like the one provided in Microsoft Outlook? I'll be greatful for for help. Thanks, Sushant Duggal.