3 Replies Latest reply on Jun 15, 2012 7:01 AM by DaveThompson

    Send Mail via SMTP fails when Carriage Return is used in message body on OS X



      Send Mail via SMTP fails when Carriage Return is used in message body on OS X


      FileMaker Pro



      Operating system version

      OS X 10.4,10.5,10.6

      Description of the issue

      When using the Send Mail using SMTP on a Mac OS X machine (tested on 10.4, 10.5, 10.6) using version 9.x,10.x,11.x the script fails with error code 1506 when a pilcrow "¶" is included in the message. 

      I've tried copying and pasting a carriage return from a global field,using the Char() function,using a variable set to the ¶ value.  I can not for the life of me get message to send with a carriage return. I've tried ports 25 and 587 and both have the same result. As soon as the ¶ is gone it sends.

      Steps to reproduce the problem

      Use the Send Mail script using SMTP with the following configuration

      Name "FM_email"
      Email Address: "FM_email@myserver.com"
      Reply To Address: "FM_email@myserver.com"
      Server "mail.myserver.com"

      Port: 587
      Connection encyption: none
      Authentication: Plain password

      Username: "FM_email@myserver.com"
      Password: mypassword

      Use the following for the Message contents

      To: youraddress@yourserver.com
      CC: youraddress@yourserver.com
      Subject: Test Subject
      Message: Test Pilcrow ¶
      Test second line ¶
      Test third line

      Expected result


      Email shows up in respective inboxes and everyone gets the message

      Actual result

      Error (1506):

      Email(s) could not be sent successfully.

      Exact text of any error message(s) that appear

      Email(s) could not be sent successfully.

      Configuration information

      No firewalls are used.
      No SSL is used.
      No encryption.


      Writing applescripts to send mail from the command line.  That is not a good solution for wide deployment considering the variety of OS/user privileges for 90+ Filemaker users.