Namespace: Consultingwerk.Utilities.Mail
Class 
EmailMessage Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:EmailMessage
Purpose:Allows sending of Emails via SMTP
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun May 27 00:59:00 CEST 2012
Notes:See http://confluence.consultingwerkcloud.com/wiki/pages/viewpage.action?pageId=5702068
for instructions
See K-Base: LONGCHAR unicode containing Russian characters
in email body comes out garbled when using .NET SmtpClient to send email.
http://knowledgebase.progress.com/articles/Article/LONGCHAR-unicode-content-in-email-body-comes-out-garbled-when-using-NET-SmtpClient-to-send-email?popup=true



Top Method Summary
Options Name Purpose
+ Send () Sends the email message
+ Send (character) Sends the email message

Top Constructor Summary
Options Name Purpose
+ EmailMessage (EmailConfiguration) Constructor for the EmailMessage class
+ EmailMessage (ISmtpConfiguration) Constructor for the EmailMessage class

Top Property Summary
Options Name Purpose
+ LONGCHAR Body Gets and sets the Body of the email
+ Consultingwerk.Utilities.Mail.EmailConfiguration Configuration Returns the instance of the Email Configuration object used by this email message instance
+ System.Net.Mail.MailMessage Message Returns the instance of the MailMessage object used by this email message instance
+ System.Net.Mail.SmtpClient SmtpClient Returns the instance of the SmtpClient class
+ CHARACTER Subject Gets and sets the Subject of the email


Method Detail
Top

PUBLIC Send ()

Purpose: Sends the email message
Notes:

Top

PUBLIC Send (character)

Purpose: Sends the email message
Notes:

Parameters:
pcReceipient CHARACTER
The receipient for the email message


Constructor Detail
Top

PUBLIC EmailMessage (EmailConfiguration)

Purpose: Constructor for the EmailMessage class
Notes:

Parameters:
poConfiguration Consultingwerk.Utilities.Mail.EmailConfiguration
The Email configuration used to send the message
Top

PUBLIC EmailMessage (ISmtpConfiguration)

Purpose: Constructor for the EmailMessage class
Notes: Alternative to use the SmtpConfiguration of the System. These
settings can be set in the .applicationsettings or .webconfig file.

Parameters:
poSmtpConfiguration Consultingwerk.Framework.ISmtpConfiguration
The Email configuration used to send the message


Property Detail
Top

PUBLIC LONGCHAR Body

Purpose: Gets and sets the Body of the email
Notes:

Returns LONGCHAR
Top

PUBLIC Consultingwerk.Utilities.Mail.EmailConfiguration Configuration

Purpose: Returns the instance of the Email Configuration object used
by this email message instance
Notes:

Returns Consultingwerk.Utilities.Mail.EmailConfiguration
Top

PUBLIC System.Net.Mail.MailMessage Message

Purpose: Returns the instance of the MailMessage object used by this email
message instance
Notes:

Returns System.Net.Mail.MailMessage
Top

PUBLIC System.Net.Mail.SmtpClient SmtpClient

Purpose: Returns the instance of the SmtpClient class
Notes:

Returns System.Net.Mail.SmtpClient
Top

PUBLIC CHARACTER Subject

Purpose: Gets and sets the Subject of the email
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:47:05