Dear Martin,

Could you help merging the schedule send code with full code. I tried making few changes in script as per above suggestion but could to achieve schedule working, all emails were sent immediately.

What i am trying to achieve.
The script should schedule mails based on date and time mentioned in a column , In case its blank send emails immediately. any suggestions?