Hi,
I have requirement like there is a link namely "send" .On click of send i need to send a mail with attachment where as the file is in a url.I have tried using smtp but the file iam going to attach is in a url, that i am unable to attach using smtp..Can anyone suggest me how to go??
Thanks in advance,
Lakshmi Ramya.
Lakshmi RamyaPosted Dec 5, 2008, 5:54 AM
Thanks for your reply...
But the file iam going to attach is on a site, it is not in the local system. if it is in the local path, i can give the path directly but i need to take the file from that site url and then i have to attach the file with out saving that file in local system.
i have an idea like we can use Memory stream and file stream to read the file and convert into binary and then attaching the file to the mail without saving in the local system. as iam sending mail through server. do u have any idea on this??
Regards,
Raj KumarPosted Dec 5, 2008, 5:48 AM
read this article ...
http://www.c-sharpcorner.com/UploadFile/ahsanshakir/sendmailwithattachment08022007001737AM/sendmailwithattachment.aspx