473,804 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

email control

hi there,

I am a student and developing a new application using C#. I need
advice on developing a control which flashs out emails to users as per
settings during setup stage; I mean when they setup the task. I am not
sure how I can achieve that. Please guide me to right path.
Thanks in advance.
Johan
Nov 16 '05 #1
3 1488


Well, I'm not exactly sure what you're looking for, but sending email from
..Net can be done throught System.Web.Mail .SmtpMail object, and it fairly
straight forward.

-James

"Munish" wrote:
hi there,

I am a student and developing a new application using C#. I need
advice on developing a control which flashs out emails to users as per
settings during setup stage; I mean when they setup the task. I am not
sure how I can achieve that. Please guide me to right path.
Thanks in advance.
Johan

Nov 16 '05 #2
Hi james,

Thanks for reply. Basically I want to develop a component or control
which sends the emails to user at its' own i.e. without the intervention
of user. For example, user set a date in system to send email to a@b.com
and control should send the email on that date to specified email
address.

I hope it clear bit more about my problem.

Cheers


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Hello Munish,

I'm not going to answer every question. You are a student. However, I will
help you to look at the problem, and ask some questions that you should be
prepared to answer.

First off, you didn't say if your assignment was to create a windows form
application or a web form application. However, it is far easier to
develop this kind of application in a windows form, so I'm assuming that you
have not been asked to do the really hard stuff just yet.

Think about it logically:
you can't send an e-mail without at least two bits of information: the
destination address and some text for the e-mail message (header or body).
So make sure you get some basic information before going further. (a pop-up
window is good for that... what call will put up a message for the user to
see and allow them to click an OK button?)

Once you have the e-mail information, you need the date. Users type into a
text box or a date picker control. If you use a text box, make sure it is
really a date. (Is there a call that you can use to convert that string to
a date type?)

Now, logically, there's three possibilities: either the date has already
occured, it refers to today, or it refers to a date in the future.
If it has already happened, you can either send it anyway or put up a
message telling the user that C# cannot travel through time.
If it is now, you can ask the user if they want to send it right away, or
you could just send it.
If it is in the future...

Well, at home, if you have an envelope that you want to mail tomorrow
morning (the future), what do you do with it? Do you carry it around all
day? Do you sit quietly in a chair waiting for tomorrow to come? Probably
not. You probably place it somewhere that you will look at tomorrow, and
continue with your day. In the morning, when the time comes, you pick it
back up.

Same thing in a program. Place the message in a list that hangs around.
Then, do other things.

So how do you remember to pick it back up?

At home, you know it is the right time to pick up your envelope when you
look at the clock and it says (for example) 7:00 am. You probably look at
the clock 10 times a day.

So, how often should your program look at the clock? And how will you get
your program to check the clock every hour?
Do you know of a call that will return the current date and time?
Do you know of a method for having a bit of code execute every XX seconds?

If you can answer these questions, you are well on your way to solving this
problem.

--- Nick

"munish arora" <jo*********@ya hoo.com> wrote in message
news:u3******** *****@TK2MSFTNG P15.phx.gbl...
Hi james,

Thanks for reply. Basically I want to develop a component or control
which sends the emails to user at its' own i.e. without the intervention
of user. For example, user set a date in system to send email to a@b.com
and control should send the email on that date to specified email
address.

I hope it clear bit more about my problem.

Cheers


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4

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

Similar topics

13
9132
by: ~ Le Naja ~ | last post by:
Hello evrybody, First, I hope you will understand my English because I come from Belgium ! :-) Here is what I want to know if you have the kindess to help me ! :-) I use the code above to mail with outlook express ... x = Shell("C:\Program Files\Outlook Express\msimn.exe /mailurl:mailto:destinationAdress@name.be?subject=Hello&Body=mytext") But I don't find the way to put te adress of the sender, because if I don't put the adress of the...
88
12585
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.
7
2154
by: Martin | last post by:
Hi, I have a standard aspx page (form) that contains a few user controls. Upon form submission the page is validated. If validation passses then a text based email is sent. This is all working fine, however what I would like to do is sent the entire contents of the posted back page as a HTML email. Is this possible and if so could somebody point me in the right direction to achieving this.
2
1672
by: Loui Mercieca | last post by:
Can anybody point me out on how to be able to drag and drop email messages to a user web control?
3
2863
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 additionally pictures of the product are stored in an images subfolder and the database holds the file name of the relevant picture. The user can then click a button to display the picture in a pop-up window and also another button to email the potential...
3
4517
by: YMPN | last post by:
Hi Everyone, I'm deen from Riyadh. Please do help me with some problem i have. I have this formview control setup to recieved inputs from user (textbox, dropdownlist, others). After inserting, I want to send the data via email, the problem is how do I do that?
4
4263
by: Tony M | last post by:
VS 2005 - XP media - VB .net - winforms - .net 2.0 Just trying to send an email, here is the code and the error message that I get. I can't figure out how to fix it?
0
1456
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the second step of CreateUserWizard control alongwith Create User button & Previous button. Actually, i have added some more textboxes on the default control for taking user's personal information. The problem is that when i call the below mentioned code all textboxes for user's personal information...
5
1180
by: David C | last post by:
Does anyone know how to email a web control filled with data to someone? I would like to email any web control (GridView, Calendar, etc.) to someone. Thanks. David
0
10588
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7623
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
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 we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.