CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP

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

Print topic Send  topic

Author Message

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 = ""
Set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "sendusing") = 2 'cdoSendUsingPort
.Item(sch & "smtpserver") = ""
End With
Set cdoMessage = Server.CreateObject("CDO.Message")
On Error Resume Next
With cdoMessage
Set .Configuration = cdoConfig
.From = ""
.To = ""
.Subject = "TEST"
.HtmlBody = store_orders_items.product_id.Value
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

Web Database

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

Home   |    Search   |    Members   |    Register   |    Login

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