Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,
how to call a method in to the email attachment code instead of file path

C#
mail.Attachments.Add(new Attachment("file path"));


i have pdf() method in that i have the code for creating pdf and i want to send that pdf as attachment through mail.So im calling that pdf() method inside the attachment.
Is there any way to call like this???????? if not plz give some suggestion what to do??????
Posted
Updated 29-Apr-12 19:43pm
v2

This question was just answered on following link:
How to send generated pdf file as attachment in email[^]
Hope you get some help from it. Refer it once.
 
Share this answer
 
v2
Have a look at this...
Email-sending-in-aspnet.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900