smtp package – error when email recipient has square bracket

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf smtp package – error when email recipient has square bracket

  • Creator
    Topic
  • #53003
    Peter Heggie
    Participant

      I’m using the smtp package in tcl to send an email. I need to send the email to a RightFax server. The address starts and ends with square brackets. I’ll ask if an alternate address can be created but I’m thinking so far that the square brackets means something special to RightFax.

      Does anyone have a suggestion on how to send an HTML email from Cloverleaf to an address surrounded by square brackets?

      I’m getting this error:

      error in -recipients: unexpected character at beginning (found [FAX:Name@xxxx])                    

         while executing                                                                                

      “error “error in $who: $aprops(error)””                                                            

         (procedure “smtp::sendmessage” line 260)                                                        

         invoked from within                                                                            

      “smtp::sendmessage “$msg”  -header

         -header
         -recipi

        ents “$recipients”  -servers localhost  -ports 25  …”                                            

        Peter

      Peter Heggie
      PeterHeggie@crouse.org

    Viewing 3 reply threads
    • Author
      Replies
      • #76220
        David Barr
        Participant

          Brackets aren’t allowed in the domain part of an e-mail address. They are only allowed in the local part of the address (before the @ sign) if that part of the address is in quotes. This doesn’t look like a valid e-mail address.

        • #76221
          Peter Heggie
          Participant

            I was sure hoping I had that wrong, but after moving the square brackets I’m still getting the error (although it does not show the domain suffix now):

            using this value: [FAX:Name]@xxxx

            getting this error:

            error in -recipients: unexpected character at beginning (found [FAX:Name])

               while executing                                                      

            “error “error in $who: $aprops(error)””                                  

               (procedure “smtp::sendmessage” line 260)

            Peter Heggie
            PeterHeggie@crouse.org

          • #76222
            Peter Heggie
            Participant

              I spoke too soon – I didn’t try putting the first part in quotes. That seems to work, at least I’m not getting errors. Let me check with the RightFac guy to see if it made it.

              Peter Heggie
              PeterHeggie@crouse.org

            • #76223
              Peter Heggie
              Participant

                that did the trick –  thank you !

                Peter Heggie
                PeterHeggie@crouse.org

            Viewing 3 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.