ATTACHING A FILE USING A URL

G

Guest

Hi,

I have an issue where I have to call a function that will return the url of
a file that I need to attach on an email before sending it. I know
System.Web.Mail does not support URL attachments. If anyone has any ideas of
how this could be accomplished, I would appreciate the help. It seems I
would have to get a local copy of the file that the url points to. I have
seen 3'rd party email objects that would accomplish this, but I would prefer
to not have to resort to them. I am using VB.NET 2003.

Thanks,

David
 
G

Guest

If anyone has any ideas of
how this could be accomplished, I would appreciate the help. It seems
I would have to get a local copy of the file that the url points to.
I have seen 3'rd party email objects that would accomplish this, but
I would prefer to not have to resort to them. I am using VB.NET 2003.

Use WebClient or WebRequest to download the file from the server. Once
you've downloaded the file locally, it's very easy to attach the file to
your mail object.

What mail component are you you using?


--
 
G

Guest

Hi Spam Carcher,

Thanks for the help, I was able to use Web Client to download the file.

I am using System.Web.Mail to send the emails out of an internal application.

DRDragon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top