Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SMTP error when running script from server

Featured Replies

The environment is Windows Server 2012, with FileMaker Server 13 v1x64.

I've got a script that sends out an e-mail to multiple recipients.  When I run the script through FileMaker Pro 13, it sends the e-mails with no issues.  However, when I schedule the script to run, it fails.  I had the schedule send me an e-mail after the task was done and got this:

2015-06-05 12:07:02.358 -0400 Information 644   *******      Schedule "Create Scheduled Tasks" completed; last scripting error (1506).

Looks like 1506 is an SMTP error, but I have no idea why it's failing when it's ran from the server but not from my local desktop.  Any help is appreciated.

Are the Filemaker Pro computer and the Filemaker Server computer on the same Local Area Network?  Or is Filemaker Server hosted remotely somewhere?

 

  • Author

Are the Filemaker Pro computer and the Filemaker Server computer on the same Local Area Network?  Or is Filemaker Server hosted remotely somewhere?

 

​Yes, they are on the same internal network.

What SMTP host are you using, is it an internal one or an ISP-provided one?

I have experienced the same when the mail server gets busy or the network is slow. Unfortunately 1506 isn't much help, but for me it's always been response time from the mail server.

My company offers an SMTP Smarthost service for Windows-based servers.

  • Author

What SMTP host are you using, is it an internal one or an ISP-provided one?

​It is an internal Exchange server.

  • Author

I've done further testing by opening telnet on the FM server and testing a raw socket connection to the exchange server successfully.  I've also installed the client on the FM server itself and ran the script successfully.  It appears to be an issue with running this script on the server schedule.

Edited by Bigun

  • Author

Upgraded to FM Server 13.0v9 x64, same error.

  • Author

I got it to work, here is what I did.

  1. I uploaded a test database with nothing in it but a script to send a simple e-mail, and ran the script in the scheduler successfully.
  2. I then modified the current script to send a test e-mail, ran it in the scheduler successfully.
  3. I then modified the current script again and loaded some custom dialogs displaying the variables used to make sure they were sane. - they were.
  4. I then loaded all the settings back to what they were and reran the script through the scheduler.... successfully.

I have no flipping idea what happened, but it is working now.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.