473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending email from a VB Dot Net Application

I am writing a windows application in VB Dot Net. One of the requirement is that it should be able to send email in certain situations. I could not find any library to be used for this purpose.

Any ideas or suggestions will be much appreciated.

Nov 20 '05 #1
5 1785
check out the System.Web.Mail namespace
"Majid Qazi" <ma**@dynatechsolution.com> wrote in message news:uD**************@TK2MSFTNGP09.phx.gbl...
I am writing a windows application in VB Dot Net. One of the requirement is that it should be able to send email in certain situations. I could not find any library to be used for this purpose.

Any ideas or suggestions will be much appreciated.

Nov 20 '05 #2
* "Majid Qazi" <ma**@dynatechsolution.com> scripsit:
I am writing a windows application in VB Dot Net. One of the requirement is that it should be able to send email in certain
situations. I could not find any library to be used for this purpose.


Reference "System.Web.dll" and import the namespace 'System.Web.Mail'.
You will find classes for sending mail there. Sample:

<URL:http://dotnet.mvps.org/dotnet/samples/net/downloads/SendMail.zip>

FAQs on 'System.Web.Mail':

<URL:http://www.systemwebmail.net/>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
"Majid Qazi" <ma**@dynatechsolution.com> wrote in message
news:uD**************@TK2MSFTNGP09.phx.gbl...
I am writing a windows application in VB Dot Net.
One of the requirement is that it should be able to send email in
certain situations.
I could not find any library to be used for this purpose.


Did you try

System.Web.Mail ?

Just because it has "Web" in the Namespace doesn't mean you /can't/
use it in a Windows Forms application.

HTH,
Phill W.
Nov 20 '05 #4
Thanks a lot. It works.


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c6************@ID-208219.news.uni-berlin.de...
* "Majid Qazi" <ma**@dynatechsolution.com> scripsit:
I am writing a windows application in VB Dot Net. One of the requirement is that it should be able to send email in certain situations. I could not find any library to be used for this purpose.


Reference "System.Web.dll" and import the namespace 'System.Web.Mail'.
You will find classes for sending mail there. Sample:

<URL:http://dotnet.mvps.org/dotnet/samples/net/downloads/SendMail.zip>

FAQs on 'System.Web.Mail':

<URL:http://www.systemwebmail.net/>

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

Nov 20 '05 #5
"Majid Qazi" <ma**@dynatechsolution.com> schrieb
I am writing a windows application in VB Dot Net. One of the
requirement is that it should be able to send email in certain
situations. I could not find any library to be used for this purpose.
Any ideas or suggestions will be much appreciated.

http://groups.google.com/groups?scor...+OR+sending%29

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

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

Similar topics

4
3554
by: David | last post by:
I'm wondering if python is capable of fairly precise timing and also sending data out the parallel port. For example ; making a 7.5 KHz square wave come out of one of the data pins on the...
13
3180
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
3
6806
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
6
2711
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
1
8153
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...
9
4878
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
1
1838
by: xin.yadong | last post by:
Hi: I have a shared function for sending Email using SMTP. It works fine in a ASP.NET web application. But when I use it in a VB.Net Windows application, it always gave me an error: "Could not...
4
1720
by: InnoCreate | last post by:
Hi Everyone, I've added an error handler to some code and as part for the routine it logs to the application log and then sends the administrator an email. For some reason this email isn't...
7
8541
by: Paridevi | last post by:
Hai , i want to send email in .Net Using OutLook Express,My Project is Web Application using vb.Net 2003 with SQL Server 2000.I have searched a lot in Google, but ican't get any...
31
12603
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
7223
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...
1
6899
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
7390
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
5475
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,...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.