e-mail in a visual basic .net application

  • Thread starter Thread starter Sohail Carim
  • Start date Start date
S

Sohail Carim

does anyone know how to go about implementin an e-mail
function directly from a vb . net application...
I am a university student and this topic is giving me grey
hair!
 
Hi Sohail, you need to check out the System.Web.Mail namespace, add a
refence to System.Web in your project, then you can send email (as long as
your running 2000/2003/XP and have IIS installed).

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi Tom,
your running 2000/2003/XP and have IIS installed).

I don't believe the SMTP service is tied to IIS is it? You can install
either or both, from my little experience of messing about on XP Pro anyway.

XP Home doesn't have it by the way Sohail, though I'm sure it can be
"bodgestalled".

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
I don't believe the SMTP service is tied to IIS is it? You can install
either or both, from my little experience of messing about on XP Pro
anyway.

Yes it is.
XP Home doesn't have it by the way Sohail, though I'm sure it can be
"bodgestalled".

Yes you can.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi there,
Yes it is.

Strange how I managed to have IIS installed but not the SMTP service then?
hmm... weird. Also you need the CDO message objects provided with either
Outlook or Windows Server I believe. I cant use the Mail namespace on XP
Pro until I install Outlook again with the CDO objects.
Yes you can.

Also since been *fixed" my Microsoft, I can't on my version of XP Home, one
of the service packs *may* have fixed it, either that or my OEM version is
screwed up!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Strange how I managed to have IIS installed but not the SMTP service then?
hmm... weird. Also you need the CDO message objects provided with either
Outlook or Windows Server I believe. I cant use the Mail namespace on XP
Pro until I install Outlook again with the CDO objects.

Well, you do have to select it when you are installing IIS, in the Details
section. The SMTP server isn't necessary, you don't need the SMTP server at
all. I haven't got Outlook installed, but installing the SMTP server gives
me the CDO objects.
Also since been *fixed" my Microsoft, I can't on my version of XP Home, one
of the service packs *may* have fixed it, either that or my OEM version is
screwed up!

It's just a feature.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi Tom,
Well, you do have to select it when you are installing IIS, in the Details
section. The SMTP server isn't necessary, you don't need the SMTP server at
all. I haven't got Outlook installed, but installing the SMTP server gives
me the CDO objects.

Aah, I see, so IIS is just a general name for it? I thought IIS was just a
posh name for Personal Web Server. I stand corrected.
It's just a feature.

What's a feature? IIS? Yeah, a disabled one for XP Home edition, I was just
saying that the article that Microsoft previously had on their site
explaining how to get IIS to work on XP Home doesn't work for me, I believe
this may have been *fixed* so that it doesn't work on a more permanent
basis.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Aah, I see, so IIS is just a general name for it? I thought IIS was just a
posh name for Personal Web Server. I stand corrected.

Internet Information Services, SMTP being a service of the internet,
providing information. Unless you get spam, then you get useless information
;-)
What's a feature? IIS? Yeah, a disabled one for XP Home edition, I was just
saying that the article that Microsoft previously had on their site
explaining how to get IIS to work on XP Home doesn't work for me, I believe
this may have been *fixed* so that it doesn't work on a more permanent
basis.

Actually, I was making a joke, the fact that IIS is disabled and you can't
get it to work is a *feature* of XP Home Edition.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi Tom,
Internet Information Services, SMTP being a service of the internet,
providing information. Unless you get spam, then you get useless information
;-)

LOL, Thanks for clearing that one up, the way you broke those words down,
pure genius ;-)
Actually, I was making a joke, the fact that IIS is disabled and you can't
get it to work is a *feature* of XP Home Edition.

LOL, sorry, I didn't realise you were being flippant :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
LOL, Thanks for clearing that one up, the way you broke those words down,
pure genius ;-)

ROFL, I'm flippant am I?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Hi Tom,
ROFL, I'm flippant am I?

LOL, "sarcamacastic" as I like to say ;-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi Nak,
"sarcamacastic"
Nice

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 
Back
Top