Jump to content

Recommended Posts

Posted

I am attempting to send an email in Filemaker with the following:

 

- Outgoing SMTP Server: smtp.mail.yahoo.com.au

- Port: 465

- Connection encryption: SSL

- Authentication: Plain Password

- User name: my email address

- Password: app password generated in Yahoo.

When I run the script I get an error - Unknown Error:20639 and when I click OK my Custom Dialog appears  stating The test email was sent.

My script is as follows:
Set Error Capture On
Send Mail

If Get LastError not = 0

Show Custom Dialog Email Failed

Else

Show Custom Dialog The test email was sent.

Obviously Filemaker is not recognising the error, to show the 2nd Custom Dialog.

 

Any help would be appreciated.

 

Posted
22 minutes ago, milky said:

Obviously Filemaker is not recognising the error, to show the 2nd Custom Dialog.

It's hard to tell what is really happening because what you are showing us here:

23 minutes ago, milky said:

If Get LastError not = 0

is not valid code, neither as script nor as a calculation.

Please post the exact script step, either as a screenshot or - even better - by printing out your script to PDF and copy/paste from there.


My guess (!) is that if your script went like:

Set Error Capture [ On ]
Send Mail [ ... ]
If [ Get ( LastError ) ]
   Show Custom Dialog [ "Email Failed." ]
Else
   Show Custom Dialog [ "The test email was sent." ]
End If

it would work as you expect.

 

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.