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

Has anyone used System.Web.Mail ???

I've referenced System.Web.Dll in my project and running Imports
System.Web.Mail in AssemblyInfo.vb but MailMessage and SmtpMail are still
"undefined".
Nov 21 '05 #1
4 1022
Hi Roman,

Is this question a joke, this newsgroup is the last days full of
system.web.mail

When you did as you told than this should be possible.
\\\
Dim mymail As New MailMessage
///
I am curious why this does not go?

Cor

"rr****@800mcmahan.com"
I've referenced System.Web.Dll in my project and running Imports
System.Web.Mail in AssemblyInfo.vb but MailMessage and SmtpMail are still
"undefined".

Nov 21 '05 #2
rroman,
Did you try to use MailMessage & SmtpMail in AssemblyInfo.vb? Or are you
attempt to use them in a different .vb file?

You need to put the Imports statement in each .vb file as you are trying to
use MailMessage & SmtpMail objects.

Hope this helps
Jay

"rr****@800mcmahan.com" <rr*****************@discussions.microsoft.com>
wrote in message news:CA**********************************@microsof t.com...
I've referenced System.Web.Dll in my project and running Imports
System.Web.Mail in AssemblyInfo.vb but MailMessage and SmtpMail are still
"undefined".

Nov 21 '05 #3
I wish it were. I've been searching through the other system.web.mail post
and don't see anything like my problem. As I said before I have a reference
to the system.web.dll and I have Imports System.Web.Mail in AssemblyInfo.vb
but apprently that's not the correct place to put it because is not
recognizing MailMessage or SmtpMail, they are returning undefined and
undeclared. Look I'm new to this, forgive me if I'm asking a stupid question.

"Cor Ligthert" wrote:
Hi Roman,

Is this question a joke, this newsgroup is the last days full of
system.web.mail

When you did as you told than this should be possible.
\\\
Dim mymail As New MailMessage
///
I am curious why this does not go?

Cor

"rr****@800mcmahan.com"
I've referenced System.Web.Dll in my project and running Imports
System.Web.Mail in AssemblyInfo.vb but MailMessage and SmtpMail are still
"undefined".


Nov 21 '05 #4
Thank you soooooo much, I'm new to this and was putting the loads statement
in the wrong place. Works like a charm now. Forgive my ignorance.

"Jay B. Harlow [MVP - Outlook]" wrote:
rroman,
Did you try to use MailMessage & SmtpMail in AssemblyInfo.vb? Or are you
attempt to use them in a different .vb file?

You need to put the Imports statement in each .vb file as you are trying to
use MailMessage & SmtpMail objects.

Hope this helps
Jay

"rr****@800mcmahan.com" <rr*****************@discussions.microsoft.com>
wrote in message news:CA**********************************@microsof t.com...
I've referenced System.Web.Dll in my project and running Imports
System.Web.Mail in AssemblyInfo.vb but MailMessage and SmtpMail are still
"undefined".


Nov 21 '05 #5

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

Similar topics

3
by: aaj | last post by:
SQL SERVER 2000 Hi all This is my first attempt at writing a stored procedure. I have managed to get it working but its unlikely to be the best way of handling the problem. While writing it I...
6
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but...
4
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
10
by: Not Available | last post by:
On the host server: namespace JCart.Common public class JCartConfiguration : IConfigurationSectionHandler private static String dbConnectionString; public static String ConnectionString { get...
4
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
5
by: Will Pittenger | last post by:
The constants.windowLongIndices type is an enum. That is there so I can ensure the appropriate values are always used. Since I had to replace the GWL macros with new values, I decided to prevent...
6
by: Aaron Smith | last post by:
Has anyone used ComponentOne's Enterprise studio that comes in the VB.Net resource kit? I like some of the controls they have, but I've had a few wierd issues and I am wondering if that's a sign of...
1
by: Joe | last post by:
HI Has anyone been able to work with lotus notes automation classes??? Can you post sample code of how to use these classes. I have setup in VB but I am not able to port to C# This is what I...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
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
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
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
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...

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.