I am doing a small project.In that users can register for yoga programs.When the administrator set the new program with date ,place and timings then the registered users should get email automatically with all above details .
Please help me doing this.
I have done the registration part successfully.
sudharani
-3
Newbie Poster
Recommended Answers
Jump to PostHi,
Pretty big topic to post here but I'll try to explain it in brief:I'm guessing you want some event (a new yoga class being set up) to trigger the email part of the software. Thats simple enough, it can be user controlled or called when the new …
Jump to PostHi there
Pls. follow the link, this is a solved thread by me.
http://www.daniweb.com/forums/thread174460.html
Mark the thread as solved if it helps you!!!
Happy coding
Jump to PostHi,
try this codeprotected void btn_clk(object s,eventargs e) { sqlcommand cmd=new sqlcommand("select email from usertable",connectionstring) string email; sqldatareader dr=cmd.executereader(); while(dr.read()) { email=dr[0]; SmtpClient c = new SmtpClient(yourIPAddress); MailAddress addr = new MailAddress(fromaddress); MailAddress add = new MailAddress(email); MailMessage msg = new MailMessage(); msg.To.Add(add); msg.From = addr; …
All 12 Replies
hericles
289
Master Poster
Featured Poster
reach_yousuf
2
Junior Poster
sudharani
-3
Newbie Poster
sudharani
-3
Newbie Poster
praveenkumarm
0
Newbie Poster
kvprajapati
1,826
Posting Genius
Team Colleague
sudharani
-3
Newbie Poster
praveenkumarm
0
Newbie Poster
sudharani
-3
Newbie Poster
praveenkumarm
0
Newbie Poster
sudharani
-3
Newbie Poster
kvprajapati
commented:
Code tag please. See announcement link at top of each forum.
-3
sudharani
-3
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.