Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Email script errors


mleiser

This topic is 1067 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I was wondering if the following is possible and, if yes, how to do it.

I have a parent/student database. I created a script where I can send an email with information from the parent record out to the parent. It works fine. I want to set off a script to choose certain records (like those that owe tuition) and send out an email to each of the ones in the found set at one time with what they owe. What I need is to know is which emails couldn't be sent and for what reason (if possible, otherwise just the email) and want the script to continue through till the end without stopping on errors. I tried it once and I got error messages but at one point it stopped sending altogether. If I can do that then I can look at the list of errors as well, I hope. Does this make any sense? Thanks

Link to comment
Share on other sites

I would imagine something like:

...
Perform Find [ ]
Go to Record/Request/Page [ First ]
Set Error Capture [ On ] 
Loop
   Send Mail [...]
   If [ Get (LastError) ]
      Set Variable [ $errors; List ( $errors ; YourTable::Email & Char (9) & Get ( LastError ) ) ]
   End If
   Go to Record/Request/Page [ Next; Exit after last ]
End Loop
...

then do something with the $errors variable (show it in a custom dialog or set a field with it)?

 

Link to comment
Share on other sites

This topic is 1067 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.