Hello,
I have to send mail with attachment without browse file is alread exist in a folder. Please tell me how can i send. if you have any code please share with me.
Regards.. sumit garg
Know the answer? Post it. Somebody with the same question will find it here.
Ravi PatelRank #439 · 5.7K reputationPosted Mar 5, 2017, 11:27 PM EST
sumit garg82 reputationPosted Mar 5, 2017, 11:38 PM EST
Attachment at = new Attachment(System.Web.HttpContext.Current.Server.MapPath(filename));
message.Attachments.Add(at);
sumit garg82 reputationPosted Mar 6, 2017, 12:17 AM EST
Keertti Raj Thangavelu BabuRank #3,979 · 374 reputationPosted Mar 6, 2017, 12:50 AM EST
Chetan RanpariyaRank #1,852 · 801 reputationPosted Mar 6, 2017, 1:17 AM EST
Gnanavel SekarRank #333 · 7.5K reputationPosted Mar 6, 2017, 1:55 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Mar 5, 2017, 11:56 PM EST
Ravi PatelRank #439 · 5.7K reputationPosted Mar 6, 2017, 12:28 AM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 6, 2017, 1:20 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts