1 Reply Latest reply on Aug 31, 2015 11:22 PM by shwetam@metasyssoftware.com

    Send mail using Found Set and capturing status, MessageID...

    haseebiqbal

      Hi

      Can anyone send me some examples of Send Mail(SMTP Server) function using Found Set records to populate To, CC, BCC?

      Also is there any ways to capture status(Sent, failed,, MessageID) of Send Mail function?

       

      Thanks in advance.

      H I

        • 1. Re: Send mail using Found Set and capturing status, MessageID...
          shwetam@metasyssoftware.com

          Hi,

           

          In attached file which is a FileMaker starter solution, I have provideda button 'Send Bulk email' on Contact Details page.

          There is script attached to this button 'Send by Email Bulk'. In this script, I am sending the mail using email client, for a foundset and the To,Cc,Bcc are takes from the field values.

           

          To send the mail using 'SMTP', just uncomment the script step for SMTP, specify your SMTP server details.

          Comment the script step send mail by email client.

           

          Using Get(LastError) function you can check if mail sent successfully or not. If Get(LastError)=0, mail is sent successfully.

           

          -shweta