3 Replies Latest reply on Feb 4, 2016 5:04 AM by alecgregory

    BaseElements SMTP Function

    anup.nayak

      While using BE_SMTP_send function it works but when I add the html parameter then it throws error code 55. Is there any specific format to pass html content in this function?

        • 1. Re: BaseElements SMTP Function
          beverly

          Can you post your calculation that is using this function? Post your HTML?

           

          Thank you!

          beverly

          • 2. Re: BaseElements SMTP Function
            anup.nayak

            Here is the Calculation -

             

            BE_SMTP_Send ( "anup.nayak@mindfiresolutions.com" ; "anup@gearboxsolutions.com" ; "Today's Deliverable Brief Types" ; "test text";

            "<html>

            <head><style>

            table, th, td {

                border: 1px solid black;

                border-collapse: collapse;

            }

            </style>

            </head>

            <body>

            <table style='width:100%'>

              <tr>

                <td>" & deliverables::project_number_ct & "</td>

                <td>" & deliverables::project_name_ct & "</td>

                <td>" & deliverables::project_start_date_ct & "</td>

                <td>" & deliverables::type_name_ct & "</td>

                <td>" & deliverables::brief_type_name_ct & "</td>

              </tr>

            </table

            </body>

            </html>")

             

            Thanks

            Anup

            • 3. Re: BaseElements SMTP Function
              alecgregory

              From the documentation it looks like you are passing that html into the cc parameter.

               

              BE_SMTP_Send ( from ; to ; subject ; text { ; cc ; bcc ; replyTo ; html ; attachments } )

               

              Try this:

               

              BE_SMTP_Send (

                "anup.nayak@mindfiresolutions.com";

                "anup@gearboxsolutions.com";

                "Today's Deliverable Brief Types";

                "test text";

                ""; // cc

                ""; // bcc

                ""; // replyTo

                "<html>

                <head><style>

                table, th, td {

                    border: 1px solid black;

                    border-collapse: collapse;

                }

                </style>

                </head>

                <body>

                <table style='width:100%'>

                  <tr>

                    <td>" & deliverables::project_number_ct & "</td>

                    <td>" & deliverables::project_name_ct & "</td>

                    <td>" & deliverables::project_start_date_ct & "</td>

                    <td>" & deliverables::type_name_ct & "</td>

                    <td>" & deliverables::brief_type_name_ct & "</td>

                  </tr>

                </table

                </body>

                </html>";

                "" // attachments (should not be required)

              )