Ejemplo n.º 1
0
        /// <summary>
        /// Performs Find and Replace on the e-mail template file used in constructor, then sends the e-mail.
        /// </summary>
        /// <param name="sender">The e-mail address of the sender</param>
        /// <param name="senderName">The name of the sender</param>
        /// <param name="recipient">The e-mail of the recipient</param>
        /// <param name="ccList">List of recipients to get copied</param>
        /// <param name="bccList">List of recipients to get blind copied</param>
        /// <param name="subject">The subject of the msg</param>
        /// <param name="bodyFormat">MailFormat value for message body format.</param>
        /// <param name="attachments">Attachments to send with the email.</param>
        /// <returns>"SUCCESS", or an error message.</returns>
        public string PrepareAndSendMail(string sender, string senderName, string recipient, string ccList, string bccList, string subject, Halide.H3Email.MailFormat bodyFormat, ArrayList attachments)
        {
            _sender = sender;
            _senderName = senderName;
            _recipient = recipient;
            _ccList = ccList;
            _bccList = bccList;
            _subject = subject;
            _bodyFormat = bodyFormat;

            FindAndReplace();

            _sendStatus = H3Email.Send(sender, senderName, recipient, ccList, bccList, subject, _preparedContents, bodyFormat, attachments, null, MailUseSsl);

            return _sendStatus;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Instantiate the class with an open H3Reader object.
        /// </summary>
        /// <example>
        /// <code>
        /// using Argentini.Halide;
        /// ...
        /// H3Reader reader = new H3Reader("SELECT TOP 1 * FROM Data WHERE ID=5;", "SqlServer01");
        /// reader.Read()
        /// H3DataRow dataRow = new H3DataRow(reader);
        /// reader.Close();
        /// </code>
        /// </example>
        /// <param name="reader">Halide.H3Reader object, opened and read().</param>
        public H3DataRow(Halide.H3Reader reader)
        {
            DataPresent = false;

            if (reader.HasRows)
            {
                DataPresent = true;
                ConnectionStringName = reader.connectionStringName;
                Column = new DatabaseRow(reader);
            }

            else
            {
                Column = new DatabaseRow();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Performs Find and Replace on the e-mail template file used in constructor, then sends the e-mail.
 /// </summary>
 /// <param name="sender">The e-mail address of the sender</param>
 /// <param name="senderName">The name of the sender</param>
 /// <param name="recipient">The e-mail of the recipient</param>
 /// <param name="ccList">List of recipients to get copied</param>
 /// <param name="bccList">List of recipients to get blind copied</param>
 /// <param name="subject">The subject of the msg</param>
 /// <param name="bodyFormat">MailFormat value for message body format.</param>
 /// <returns>"SUCCESS", or an error message.</returns>
 public string PrepareAndSendMail(string sender, string senderName, string recipient, string ccList, string bccList, string subject, Halide.H3Email.MailFormat bodyFormat)
 {
     return PrepareAndSendMail(sender, senderName, recipient, ccList, bccList, subject, bodyFormat, null);
 }