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 -> ASP

 send email if store_orders_items.product_id.Value = "abc"

Print topic Send  topic

Author Message
JimbobGilb

Posts: 28
Posted: 11/10/2017, 5:23 AM

Good Day,

I am trying to add a condition to my onvalidate event but i am failing somewhere.

if store_orders_items.product_id.Value = "abc" then send email...

Where and what line should I put the argument for this.


'Send Email @36-67DACD2A
Dim sch, cdoConfig, cdoMessage
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "sendusing") = 2 'cdoSendUsingPort
.Item(sch & "smtpserver") = "mail.Test.com"
.Update
End With
Set cdoMessage = Server.CreateObject("CDO.Message")
On Error Resume Next
With cdoMessage
Set .Configuration = cdoConfig
.From = "Test@Tes.com"
.To = "Test@Test.com"
.Subject = "TEST"
.HtmlBody = store_orders_items.product_id.Value
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
On Error Goto 0
'End Send Email



Many Thanks in advance for any assistance,
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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