473,500 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending Email using System.Web.Mail namespace

I'm trying to attach a file into an email message and send through
System.Web.Mail,but apparently I have to write the attachment in the File
system first and then attach it.I'd like to use the stream in memory
insetad.Because I'm getting the file from a webservice and I'd like to send
it right away from the memory.Any idea?

Thanks
Nov 19 '05 #1
2 1119
Hi,

unfortunately you'd need to write the file first as you said. Unless you
develop completely custom mail sending system (isn't worth of it,
considering what you are now doing and how easily it can be accomplished)

--
Teemu Keiski
ASP.NET MVP, Finland
"Ray5531" <Ra****@microsft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm trying to attach a file into an email message and send through
System.Web.Mail,but apparently I have to write the attachment in the File
system first and then attach it.I'd like to use the stream in memory
insetad.Because I'm getting the file from a webservice and I'd like to
send it right away from the memory.Any idea?

Thanks

Nov 19 '05 #2
J-R
Thanks a lot
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Hi,

unfortunately you'd need to write the file first as you said. Unless you
develop completely custom mail sending system (isn't worth of it,
considering what you are now doing and how easily it can be accomplished)

--
Teemu Keiski
ASP.NET MVP, Finland
"Ray5531" <Ra****@microsft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm trying to attach a file into an email message and send through
System.Web.Mail,but apparently I have to write the attachment in the File
system first and then attach it.I'd like to use the stream in memory
insetad.Because I'm getting the file from a webservice and I'd like to
send it right away from the memory.Any idea?

Thanks


Nov 19 '05 #3

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

Similar topics

2
1281
by: Ron Harter | last post by:
I am developing a C# windows application that will allow a user to send an e-mail to an SMS server when events happen in the system. I was going to use System.Web.Mail namespace and use the...
13
3180
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
17
2871
by: Bonj | last post by:
Right guys. (I would like a solution to this in VB6 as this is what our needy app is written in, but any solutions that involve .NET would be much appreciated likewise as I could instantiate...
2
9204
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
6
2392
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
6
2711
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
1
8153
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
1
2709
by: Nick | last post by:
I am working on a website for a client and one of their requirements was to have a mailing list. I decided to XSLT to transform "templates" to HTML so that editing was very easy and less time...
1
2860
by: fabrizio.viggiani | last post by:
I need to send a mail message to an SMTP server. The .net framework provides System.Net.Mail namespace to send an email: - Build a System.Net.Mail.MailMessage and send it using SmtpClient The...
3
2385
by: raj200809 | last post by:
when i m sending mail i received error from symantec Antivirus" Your email message was unable to be sent because your mail server rejected the message 550-5.7.1 the ip you’re using to send mail is...
0
7145
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,...
1
6913
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5498
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,...
1
4928
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4618
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3114
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1434
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
681
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
318
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.