Click here to Skip to main content
15,902,198 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Add keyword and description info to database Pin
Matthew Hansel18-Nov-07 11:01
Matthew Hansel18-Nov-07 11:01 
GeneralRe: Add keyword and description info to database Pin
Not Active18-Nov-07 13:27
mentorNot Active18-Nov-07 13:27 
QuestionSending email in ASP.NET 2.0 Pin
nickabradley18-Nov-07 5:18
nickabradley18-Nov-07 5:18 
AnswerRe: Sending email in ASP.NET 2.0 Pin
Christian Graus18-Nov-07 10:40
protectorChristian Graus18-Nov-07 10:40 
GeneralRe: Sending email in ASP.NET 2.0 Pin
nickabradley18-Nov-07 10:43
nickabradley18-Nov-07 10:43 
GeneralRe: Sending email in ASP.NET 2.0 Pin
Michael Sync18-Nov-07 15:09
Michael Sync18-Nov-07 15:09 
GeneralRe: Sending email in ASP.NET 2.0 Pin
nickabradley18-Nov-07 15:23
nickabradley18-Nov-07 15:23 
GeneralRe: Sending email in ASP.NET 2.0 Pin
Michael Sync18-Nov-07 15:36
Michael Sync18-Nov-07 15:36 
No idea about OnSuccess event or OnFailure event.. Where do you get those events??

SmtpClient smtpClient = new SmtpClient("YourSMTPServer");<br />
MailMessage message = new MailMessage();<br />
<br />
try<br />
{<br />
MailAddress fromAddress = new MailAddress(txtEmail.Text, txtName.Text);<br />
smtpClient.Host = "localhost";<br />
smtpClient.Port = 25;<br />
message.From = fromAddress;<br />
message.To.Add("nickbradley@talligewi62.org");<br />
message.Subject = "Talligewi 62 Website Feedback";<br />
message.Bcc.Add(new MailAddress("winterbanquet@talligewi62.org"));<br />
message.IsBodyHtml = false;<br />
message.Body = txtMessage.Text;<br />
smtpClient.Send(message);<br />
<br />
Response.Redirect("http://www.talligewi62.org");<br />
}<br />
catch(Exception ex){<br />
}<br />


You can redirect after sending the mail

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

GeneralRe: Sending email in ASP.NET 2.0 Pin
nickabradley18-Nov-07 16:07
nickabradley18-Nov-07 16:07 
GeneralRe: Sending email in ASP.NET 2.0 Pin
Michael Sync18-Nov-07 16:27
Michael Sync18-Nov-07 16:27 
GeneralRe: Sending email in ASP.NET 2.0 Pin
nickabradley18-Nov-07 16:33
nickabradley18-Nov-07 16:33 
GeneralRe: Sending email in ASP.NET 2.0 Pin
Christian Graus18-Nov-07 17:59
protectorChristian Graus18-Nov-07 17:59 
GeneralRe: Sending email in ASP.NET 2.0 Pin
nickabradley19-Nov-07 15:48
nickabradley19-Nov-07 15:48 
GeneralRe: Sending email in ASP.NET 2.0 Pin
Michael Sync19-Nov-07 15:55
Michael Sync19-Nov-07 15:55 
GeneralRe: Sending email in ASP.NET 2.0 Pin
nickabradley19-Nov-07 16:12
nickabradley19-Nov-07 16:12 
QuestionProblem in sending e-mails [modified] Pin
qmzph18-Nov-07 5:13
qmzph18-Nov-07 5:13 
AnswerRe: Problem in sending e-mails Pin
DigiOz Multimedia18-Nov-07 5:56
DigiOz Multimedia18-Nov-07 5:56 
QuestionProblem uploading files Pin
Zoltan Aszalos18-Nov-07 4:30
Zoltan Aszalos18-Nov-07 4:30 
AnswerRe: Problem uploading files Pin
Hesham Amin18-Nov-07 12:21
Hesham Amin18-Nov-07 12:21 
GeneralRe: Problem uploading files Pin
Zoltan Aszalos18-Nov-07 20:34
Zoltan Aszalos18-Nov-07 20:34 
GeneralRe: Problem uploading files Pin
Hesham Amin21-Nov-07 10:44
Hesham Amin21-Nov-07 10:44 
QuestionSeparate Projects for BLL & DAL Pin
Montu7618-Nov-07 2:37
Montu7618-Nov-07 2:37 
AnswerRe: Separate Projects for BLL & DAL Pin
Colin Angus Mackay18-Nov-07 2:55
Colin Angus Mackay18-Nov-07 2:55 
AnswerRe: Separate Projects for BLL & DAL Pin
pmarfleet18-Nov-07 8:01
pmarfleet18-Nov-07 8:01 
Questionget list of user Pin
ptvce17-Nov-07 20:15
ptvce17-Nov-07 20:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.