AnsweredAssumed Answered

Test on whether email could be sent

Question asked by user2147901 on Jan 20, 2019
Latest reply on Jan 20, 2019 by CamelCase_data

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.

Outcomes