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

send email problem

hi, ive read all the past posts about sending emails in VS 2003 and 2005 but
i have a slight problem. i try to import "System.Web.Mail" but it cannot find
that class in VS 2003 nor VB Express 2005. Am i missing somethign here? i
have the system.web.dll and the system.web class but i dont have the Mail
subclass
--
-iwdu15
Feb 24 '06 #1
7 938
"iwdu15" <jmmgoalsteratyahoodotcom> schrieb:
hi, ive read all the past posts about sending emails in VS 2003 and 2005
but
i have a slight problem. i try to import "System.Web.Mail" but it cannot
find
that class in VS 2003 nor VB Express 2005. Am i missing somethign here? i
have the system.web.dll and the system.web class but i dont have the Mail
subclass


'System.Web.Mail' is a namespace, not a class. This namespace contains
further classes.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 24 '06 #2
Is this an ASP.NET page or Windows Forms?

"iwdu15" <jmmgoalsteratyahoodotcom> wrote in message
news:8D**********************************@microsof t.com...
hi, ive read all the past posts about sending emails in VS 2003 and 2005
but
i have a slight problem. i try to import "System.Web.Mail" but it cannot
find
that class in VS 2003 nor VB Express 2005. Am i missing somethign here? i
have the system.web.dll and the system.web class but i dont have the Mail
subclass
--
-iwdu15

Feb 24 '06 #3
my bad, thanks for the clarification on terms, its a windows form....im um
using VS 2003 and it doesnt seem to be there at all
--
-iwdu15
Feb 24 '06 #4
> hi, ive read all the past posts about sending emails in VS 2003 and 2005 but
i have a slight problem. i try to import "System.Web.Mail" but it cannot find
that class in VS 2003 nor VB Express 2005.


Add a reference to System.Web.
Use System.Web.Mail.SmtpMail.Send.

Feb 24 '06 #5
that works, thanks a lot
--
-iwdu15
Feb 24 '06 #6
"AMercer" <AM*****@discussions.microsoft.com> schrieb:
hi, ive read all the past posts about sending emails in VS 2003 and 2005
but
i have a slight problem. i try to import "System.Web.Mail" but it cannot
find
that class in VS 2003 nor VB Express 2005.


Add a reference to System.Web.
Use System.Web.Mail.SmtpMail.Send.


In .NET 2.0 I suggest to use 'System.Net.Mail' instead of 'System.Web.Mail'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 24 '06 #7
"Shawn" <sh**********@ccci.org> schrieb:
Is this an ASP.NET page or Windows Forms?


This should not make a difference, "System.Web.dll" can be referenced in
both Windows Forms projects and Web Forms projects.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 24 '06 #8

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

Similar topics

6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
4
by: barry | last post by:
Hi I a developing on a Windows 2003 Server environment with MS Exchange 2003 installed, using the following code i am able to send e-mail message to Administrator@myserver.com but not to any...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
4
by: riteshjain82 | last post by:
Hi, Please go through this: I am having a file (default.asp) on which i am taking many details from a user before mailing it to someone. I have also provided the user with a facility of...
3
by: YMPN | last post by:
Hi Everyone, I'm deen from Riyadh. Please do help me with some problem i have. I have this formview control setup to recieved inputs from user (textbox, dropdownlist, others). After...
9
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
16
by: =?Utf-8?B?Q2hlZg==?= | last post by:
I can use outlook2003 to send email,but I cann't use this code below to send email. Please help me to test this code and instruct me how to solve this problem in detail. software...
7
by: cj | last post by:
Has anyone figured out a way with VB2005 to send a numeric message to a pager using a common 56kb modem?
5
by: Mike | last post by:
I have a page with a textbox that a user can enter in mutliple email addresses such as: user1@yahoo.com;user2@yahoo.com;user3@gmail.com; and so on, I then have a foreach loop to get all of the...
16
by: Ed Bitzer | last post by:
Trying to send groups of email with program using System.Net.Mail. I do not clear MailMessage but repeatedly loop changing only the Bcc entries. Works fine if all addresses are valid. As a simple...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.