This topic is locked

send an E-Mail if date record = date()

5/28/2011 8:17:53 AM
ASPRunnerPro General questions
M
mr. zx author

Hi
can any one help me to write this code :

i have field date if value in this field = date() then send email to 1234@123.com.
Regards,

L
Lena 5/30/2011

Hi,
please see sample code:



if FormatDateTime(values("FieldName"),2)=FormatDateTime(Date,2) then

'send email to 1234@123.com

end if



where FieldName is your actuale field name. Use this code in the After record added (After record updated) on the Add (Edit) page.
See how to send email here http://xlinesoft.com/asprunnerpro/docs/send_simple_email.htm