473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ATTACHING A FILE USING A URL

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

Nov 20 '07 #1
2 960
=?Utf-8?B?RFJEcmFnb24=?= <DR******@discussions.microsoft.comwrote in
news:DE**********************************@microsof t.com:
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?
--
Nov 20 '07 #2
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

"Spam Catcher" wrote:
=?Utf-8?B?RFJEcmFnb24=?= <DR******@discussions.microsoft.comwrote in
news:DE**********************************@microsof t.com:
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?
Nov 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ravi | last post by:
Q1.)In SQL Server 2000, is it always possible to use copies of the data and transaction log files of a database from one server to reattach to a new database on another server, or even to the same...
6
by: Yvan J. Gagnon | last post by:
I am currenly developing a web site using Macromedia fireworks, and am trying to figure out a way (through hand-coding) of attaching a javascript function (onClick="doit=false") to each of the...
2
by: john.lehmann | last post by:
Attacked is a piece of code which first hits the login page successfully and receives back login cookies. But then when I attempt to hit a page which is restricted to logged in users only, I fail....
4
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
0
by: wal | last post by:
How does one attach files to emails using libgmail? The following code http://pramode.net/articles/lfy/fuse/4.txt works fine when said files are simple text files, but it failes as soon as the...
0
by: ARC | last post by:
Hello all, I have a question that I hope someone can help with. I have an Access 97 App, and I allow the user 2 options for e-mailing: MSMapi and MS Outlook 2000/XP. I have a user who is having...
2
by: ARC | last post by:
(sorry for the re-post, but I thought I would put the winmail.dat where it's visible in the subject...thanks!) Hello all, I have a question that I hope someone can help with. I have an Access...
3
by: zaxxon25 | last post by:
I am having an issue with attaching 2 attachments one xip and other excel file with email and sending using perl sendmail. I tried to look on various forums and everywhere i get advice using MIME ::...
1
by: moltendorf | last post by:
I have a simple XMLHttpRequest that grabs a list of messages from my server (I posted a question for a different aspect of this earlier) I have decided to improve on it a little by adding in...
5
by: mukeshrasm | last post by:
Hi Is there any difference between uploading a file or attaching a file if yes then how can we attach a file
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.