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

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

Recommended Posts

Posted (edited)

Hey guys,

I have a problem with my script. What i want that the script does is that if there is no internet connection, the script must not go further to set the field to "ja". i have made this script but its not working good.

Can someone help me? for a script when internet is available that the script need to stop but when there is internet to send email and set the field to "ja"

Here the screenshot

Edited by Guest
Posted

Try something like:

...

Set Error Capture [ On ]

Send Mail [ ... ]

If [ Get(LastError) ]

Show Custom Dialog [ "Send Mail failed." ]

Else

Set Field [ ... ; "ja" ]

Show Custom Dialog [ "Send Mail was successful." ]

End If

...

Posted

Thank you for you help.

I tryed what you say but it doenst work if i turn my connection off it does continue to set the field. :

Posted

I cannot test this myself, but if there is no error returned after the Send Mail[] step, then there's not much you can do. Perhaps one of the mail plugins can do better.

Posted

Before you go there - are you SURE there is no error returned? As I said, I cannot test this, but I would be very surprised if the step didn't provide some feedback in case of no connection.

Posted

Well thank you for your help i did make a backup of the script but it was using the old script so the new one had no effect my mistake its works now thank you very much for you help :

This topic is 5143 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.