473,325 Members | 2,308 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,325 software developers and data experts.

question regarding mail.MailMessage object

Hi there,

why is it that if i create a web application, i can access System.Web.Mail
object, but when i try to reference this in my VB.NET windows app, it doesnt
show the Mail object?

What is the solution if i want to send email through a .NET windows
application?

thanks,
Nov 20 '05 #1
4 941
Hi,

Add a reference to system.web to your app.

Ken
----------------
"Paul M" <mi******@hotmail.com> wrote in message
news:uY**************@TK2MSFTNGP10.phx.gbl...
Hi there,

why is it that if i create a web application, i can access System.Web.Mail
object, but when i try to reference this in my VB.NET windows app, it
doesnt
show the Mail object?

What is the solution if i want to send email through a .NET windows
application?

thanks,

Nov 20 '05 #2
Cor
Hi Paul,

What kind of email, send batch mail or opening the mail agent from the user?

Cor

why is it that if i create a web application, i can access System.Web.Mail
object, but when i try to reference this in my VB.NET windows app, it doesnt show the Mail object?

What is the solution if i want to send email through a .NET windows
application?

Nov 20 '05 #3
* "Paul M" <mi******@hotmail.com> scripsit:
why is it that if i create a web application, i can access System.Web.Mail
object, but when i try to reference this in my VB.NET windows app, it doesnt
show the Mail object?

What is the solution if i want to send email through a .NET windows
application?


Are you sure "System.Web.dll" is referenced?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
thanks everybody.

no, i didnt have system.web DLL referenced.

regards,
Paul.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ej**************@TK2MSFTNGP09.phx.gbl...
* "Paul M" <mi******@hotmail.com> scripsit:
why is it that if i create a web application, i can access System.Web.Mail object, but when i try to reference this in my VB.NET windows app, it doesnt show the Mail object?

What is the solution if i want to send email through a .NET windows
application?


Are you sure "System.Web.dll" is referenced?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5

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

Similar topics

20
by: Adrian | last post by:
What does this error mean? Could not access CDO Message Object. Many thanks.
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
7
by: MSG Servicos de Informatica | last post by:
Hi MSDN Team! I have a doubt about the "MailMessage" class in Framework .NET 1.1. My SMTP server works in a local network that no have access to the internet for security reasons. And in my...
1
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...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
7
by: Ray Booysen | last post by:
Hi all I'm sending email via ASP.NET in HTML mode. Each email has exactly one attachment and I do have full access to the SMTP server. However, if I send the email in HTML format, the...
3
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...
6
by: Anthony P. | last post by:
Hello Everyone, I'm attempting to create a new MailMessage object by following a tutorial and I can't seem to get it right according to VS 2008. I'm hoping someone here can help me find out what...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.