473,404 Members | 2,170 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.

Email from a Windows Form

Hi,

I am in the process of developing an application wherein I want to add a
functionality: The moment the user presses submit, the application should
connect to an SMTP server and send out a preformed mail message to a
prespecified target email address. I know that raw SMTP commands such as
RCPT, MAILTO, etc. should be used - but am unaware of the exact syntax.

Any help would be appreciated.

Thanks,
Nitin

MS-MBA
Boston University
Nov 20 '05 #1
2 1688
Hello,

"Nitin Agarwal" <na******@bu.edu> schrieb:
I am in the process of developing an application wherein
I want to add a functionality: The moment the user
presses submit, the application should connect to an
SMTP server and send out a preformed mail message
to a prespecified target email address.


Have a look at the classes in the 'System.Web.Mail' namespace.

How-to: Send E-mail
http://msdn.microsoft.com/library/en...s_SendMail.asp

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Please check the following url
http://www.faqs.org/rfcs/rfc821.html
-----Original Message-----
Hi,

I am in the process of developing an application wherein I want to add afunctionality: The moment the user presses submit, the application shouldconnect to an SMTP server and send out a preformed mail message to aprespecified target email address. I know that raw SMTP commands such asRCPT, MAILTO, etc. should be used - but am unaware of the exact syntax.
Any help would be appreciated.

Thanks,
Nitin

MS-MBA
Boston University
.

Nov 20 '05 #3

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

Similar topics

15
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My...
4
by: JM Okuzono | last post by:
Does anyone know if it is possible to create a form on a Windows server (front page, cold fusion ect...) that will send you the outcome and automatically insert the users email address in the...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
1
by: james00_c | last post by:
Greetings- I need to pass multiple email addresses to a "sendto" hidden field in a form. I need to do that because "CC" and "BCC" are not an option. One address webmaster@xyz.com would be...
9
by: sifar | last post by:
Hi, I am right now learning PHP & want to know if there is a way to send web form data to an Excel sheet located on a network. My windows xp PC doesnot have a copy of Excel. Also i am not...
3
by: | last post by:
Hi all, Does anyone know how to send an email from a Windows form? On an ASP.NET form you can use the System.Web.Mail namespace and create a MailMessage object. I get an error message when I...
6
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
0
by: Sister Ray | last post by:
I'm trying to create a simple form that sends an email using my company's exchange server. I'm using the System.Net.Mail Namespace of the .net framework 2.0. I've googled everywhere and i think my...
2
by: AR123 | last post by:
Hi I have a created a form. I have a field called Type with options A or B. I want to have my form so that it you select option A the rest of the form will appear and the Email Recepient field will...
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
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
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.