ATTACHING A FILE USING A URL

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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?


--
 
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
 
Back
Top