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 https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/8093926/Sending+Emails+using+the+EmailMessage+class+Windows+only
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
Purpose: Gets and sets the Body of the email
Notes:



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
+ Consultingwerk.Utilities.Mail.EmailConfiguration Configuration
+ System.Net.Mail.MailMessage Message
+ System.Net.Mail.SmtpClient SmtpClient
+ CHARACTER Subject


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


Returns LONGCHAR
Top

PUBLIC Consultingwerk.Utilities.Mail.EmailConfiguration Configuration


Returns Consultingwerk.Utilities.Mail.EmailConfiguration
Top

PUBLIC System.Net.Mail.MailMessage Message


Returns System.Net.Mail.MailMessage
Top

PUBLIC System.Net.Mail.SmtpClient SmtpClient


Returns System.Net.Mail.SmtpClient
Top

PUBLIC CHARACTER Subject


Returns CHARACTER


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:17:07