CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 send email

Print topic Send  topic

Author Message
markosana

Posts: 1
Posted: 03/18/2008, 10:57 AM

Hi, how to send more emails (with asp.net) when a user Update a record?
thanks
View profile  Send private message
Vincent

Posts: 31
Posted: 03/31/2008, 10:31 AM

I will use the "AfterUpdate" event for that. You can either use the send mail action or use some custom code as shown below as an example.

  
If ExecuteFlag And (Not ErrorFlag) Then   
   Dim userEmail, assignedUserEmail, Sujet, Commentaires As String  
  
	userEmail = FormNameFieldName.text  
	assignedUserEmail = "contactus@somewhere.com"  
	Sujet = FormNameFieldSubject.text  
	Commentaires = FormNameFieldComments.text  
  
	Dim newMessage As New System.Web.Mail.MailMessage()  
  
	newMessage.From = userEmail  
	newMessage.To = assignedUserEmail  
	newMessage.Bcc = "someoneelse@somewhere.com"  
	newMessage.Subject = Sujet  
	newMessage.BodyFormat = System.Web.Mail.MailFormat.Html  
	newMessage.Body = Commentaires   
  
	System.Web.Mail.SmtpMail.SmtpServer = "your.mail.server"  
	System.Web.Mail.SmtpMail.Send(newMessage)  
End If  

Hope this helps.

Vincent
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.