How to show pdf documents inside the email body using C#

%3CLINGO-SUB%20id%3D%22lingo-sub-556392%22%20slang%3D%22en-US%22%3EHow%20to%20show%20pdf%20documents%20inside%20the%20email%20body%20using%20C%23%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-556392%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EI%20have%20a%20requirement%20to%20send%20an%20email%20programmatically%20with%20hmtl%20body%20content.%20Inside%20the%20Email%20body%20content%2C%20I%20have%20to%20show%20the%20pdf%20documents.%20like%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3EABCText%3C%2FTD%3E%3CTD%3EPDFDOC1%3C%2FTD%3E%3CTD%3EPDFDOC2%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhen%20a%20user%20clicks%20on%20the%20above%20document%20it%20should%20be%20open.%3C%2FP%3E%3CP%3EI%20have%20tried%20using%20Linkedresource%20but%20it%20is%20showing%20as%20an%20attachment%2C%20not%20in%20the%20email%20body%20content.%3C%2FP%3E%3CP%3ECan%20anyone%20suggest%20me%20the%20approach%20for%20above%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3EMahesh%20S%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-559109%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20show%20pdf%20documents%20inside%20the%20email%20body%20using%20C%23%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-559109%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F339710%22%20target%3D%22_blank%22%3E%40UmamaheswarSG2019%3C%2FA%3E%26nbsp%3B%3CSPAN%3EHello!%20You've%20posted%20your%20question%20in%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FCommunity-Discussion%2Fbd-p%2FCommunityQuestions%22%20target%3D%22_blank%22%3ECommunity%20Discussion%20space%3C%2FA%3E%3CSPAN%3E%2C%20which%20is%20intended%20for%20discussion%20around%20the%20Tech%20Community%20website%20itself%2C%20not%20product%20questions.%20I'm%20moving%20your%20question%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOutlook%2Fbd-p%2FOutlookGeneral%22%20target%3D%22_self%22%3EOutlook%20space%3C%2FA%3E%20-%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bplease%20post%20Outlook%20questions%20here%20in%20the%20future.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi All,

I have a requirement to send an email programmatically with hmtl body content. Inside the Email body content, I have to show the pdf documents. like below.

 

ABCTextPDFDOC1PDFDOC2

 

when a user clicks on the above document it should be open.

I have tried using Linkedresource but it is showing as an attachment, not in the email body content.

Can anyone suggest me the approach for above?

 

 

 

Thanks in advance,

Mahesh S

 

 

 

 

 

 

1 Reply

@UmamaheswarSG2019 Hello! You've posted your question in the Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Outlook space - please post Outlook questions here in the future.