Sage-ST ä

Objemail

Documentation

STRSendEmail SendEmail




  procedure SendEmail
             (const objectName           : array of char;
              const MailServerName       : array of char;
              const ReceiverEmailAddress : array of char;
              const CCEmailAddress       : array of char;
              const SenderName           : array of char;
              const SenderEmailAddress   : array of char;
              const SubjectLine          : array of char;
              const Message              : array of char;
              var   Success              : boolean); overload; stdcall;

  exports SendEmail (const objectName           : array of char;
                     const MailServerName       : array of char;
                     const ReceiverEmailAddress : array of char;
                     const CCEmailAddress       : array of char;
                     const SenderName           : array of char;
                     const SenderEmailAddress   : array of char;
                     const SubjectLine          : array of char;
                     const Message              : array of char;
                     var   Success              : boolean) name 'ObjEMail_SendEmail';

  //*
  //  SendEMail - Send an email. (Requires SageST_Objects.dll).
  //
  //
  //  This procedure will send an email to the specified address.
  //
  //  NOTE - If you define an SMTP object in Thor and want to call
  //  it from this package then you MUST have SageST_Objects.dll
  //  in the directory with the program .EXE file or in the system's
  //  search path.
  //
  //  Also note that the absolue minimum that you must pass is the
  //  MailServerName, ReceiverEmailAddress and SenderEmailAddress or
  //  the routine will fail.
  //
  //  CALLING SEQUENCE -
  //
  //    SendEmail (ObjectName, MailServerName, ReceiverEmailAddress,
  //               CCEmailAddress, SenderName, SenderEmailAddress,
  //               SubjectLine, Message, Success)
  //
  //  ENTRY -
  //
  //    ObjectName : array of char
  //      The name given the object when declared in Thor.
  //
  //    MailServerName : array of char
  //      The name of the SMTP server that will handle the message.
  //
  //    ReceiverEmailAddress : array of char
  //      The email address of the person who will receive this message.
  //
  //    CCEmailAddress : array of char
  //      Any email address that should be a CC to this message.
  //
  //    SenderName : array of char
  //      The name (not the email address) of the sender of the email.
  //
  //    SenderEmailAddress : array of char
  //      The email address of the sender of the email.
  //
  //    SubjectLine : array of char
  //      The subject line of the message.
  //
  //    Message : array of char
  //      The text of the message.
  //
  //  EXIT -
  //
  //    Success : boolean
  //      True - Message was successfully sent.
  //      False - Some problem prevented the message from being sent.
  //




  procedure SendEmail
             (const objectName           : string;
              const MailServerName       : string;
              const ReceiverEmailAddress : string;
              const CCEmailAddress       : string;
              const SenderName           : string;
              const SenderEmailAddress   : string;
              const SubjectLine          : string;
              const Message              : string;
              var   Success              : boolean); overload; stdcall;

  exports SendEmail (const objectName           : string;
                     const MailServerName       : string;
                     const ReceiverEmailAddress : string;
                     const CCEmailAddress       : string;
                     const SenderName           : string;
                     const SenderEmailAddress   : string;
                     const SubjectLine          : string;
                     const Message              : string;
                     var   Success              : boolean) name 'ObjEMail_STRSendEmail';

  //*
  //  STRSendEMail - See documentation of SendEMail.
  //




Send mail to   warren.merrill@inl.gov with questions or comments about this web site.
Copyright © 1989-2006 Battelle Energy Alliance