how do You send the mail? Via smtp? Does it have an attachement?
Are there any ports locked on the server? Firewall?
testing the built-in notification for schedul-reporting isn't quite the same as sending emails via scripts.
Do You have 'dialog on'? Dialogs are not supported on serverscripts since there is no human watching for.. Only 'smpt mails' are supported
Further on, a server-script logs in - it's a new session.., startscript, etc. are running. Layouts for operations must be specified...
There is no making found set, so how about adding "Show All Records" in second line?
But I'm doubtful if your script succeeded when run on "run it now" on admin console but not scheduled time...
Line 10 does not create a found set.
This script should perform a find or something to produce a found set.
Also, you have covered the calculations of two if steps. If either evaluate differently in a server session, it is possible that no email is ever sent.
Thanks for the response phil..
Is there any easy way to solve this script issue?
Over what records is this script supposed to loop?
All records in the table?
What expressions are in those If steps? You should be able to tell me that without exposing sensitive data.
You'd need to make script log youself, that save something like
count of found set on 2nd line
value of If steps
Get(LastError) after sending mail
You can write them into global field then export field contents for shorthand. not compatible on server...
1. Personnel Records Date of Birth
3. Here is the actual script below:
Go to Layout 
Go to Record/Request/Page [First]
If [Birth Month = Current Date Month]
If [Birth Day = Current Date Day]
Send Mail [ SMTP; No Dialog; To: Recipient1; CC: Recipient2; Message: "Happy Birthday"]
Set Variable 
Exit Loop If [get(RecordNumber) = Get (FoundCount)]
Go to Record/Request/Page [Next; Exit after last]
Why do you still not show the actual calculations in the If steps?
Try adding Show All Records as your second line and see if that makes any difference.