Hi, I am new to filemaker. I am trying to send email with attachment through SMTP server. But somehow the email could not be sent through TLS and SSL. It could only be sent through port 25. I would like to test when the email could not be sent. I have created a script with the following steps:
Send email
Set error capture(on)
set variable ($error ; Get(last error)
if $error <> 0
send email
end if
How could I test this script. Is set variable $error to something before if statement? Is there other ways to test?
I am using filemaker 17.
Start by changing the order of the first 3 script steps to:
Set error capture(on)
send email
set variable ($error ; Get(last error)
Right now, when you set $error, that's evaluating the result of the script step Set error capture(on), not of the script stop Send Email...