By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,777 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

e-mail in a visual basic .net application

P: n/a
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!
Nov 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
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
"Sohail Carim" <sh***@webmail.co.za> wrote in message
news:06****************************@phx.gbl...
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!

Nov 20 '05 #2

P: n/a
* "Sohail Carim" <sh***@webmail.co.za> scripsit:
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!


<http://msdn.microsoft.com/library/en-us/dnvssamp/html/vbcs_SendMail.asp>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

P: n/a
Nak
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #4

P: n/a
> 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
"Nak" <a@a.com> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl... 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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #5

P: n/a
Nak
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #6

P: n/a
> 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
"Nak" <a@a.com> wrote in message
news:OY*************@TK2MSFTNGP10.phx.gbl... 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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #7

P: n/a
Nak
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #8

P: n/a
> 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
"Nak" <a@a.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl... 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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #9

P: n/a
Nak
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #10

P: n/a
> 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
"Nak" <a@a.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl... 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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #11

P: n/a
Nak
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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #12

P: n/a
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
"Nak" <a@a.com> wrote in message
news:#C*************@tk2msftngp13.phx.gbl... 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
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.