Gmail Helper Class Library

GmailMessage Members

GmailMessage overview

Public Static (Shared) Properties

GmailServer The name of the gmail server, the default is "smtp.gmail.com"
GmailServerPort The port to use when sending the email, the default is 465

Public Static (Shared) Methods

SendFromGmail Sends an email through the specified gmail account
SendMailMessageFromGmail Send a System.Web.Mail.MailMessage through the specified gmail account

Public Instance Constructors

GmailMessage Constructor Constructor, creates the GmailMessage object

Public Instance Properties

Attachments (inherited from MailMessage) Specifies the collection of attachments that are transmitted with the message.
Bcc (inherited from MailMessage) Gets or sets a semicolon-delimited list of email addresses that receive a blind carbon copy (BCC) of the e-mail message.
Body (inherited from MailMessage) Gets or sets the body of the e-mail message.
BodyEncoding (inherited from MailMessage) Gets or sets the encoding type of the body of the e-mail message.
BodyFormat (inherited from MailMessage) Gets or sets the content type of the body of the e-mail message.
Cc (inherited from MailMessage) Gets or sets a semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message.
Fields (inherited from MailMessage) [To be supplied.]
From (inherited from MailMessage) Gets or sets the e-mail address of the sender.
GmailPassword The password of the gmail account that the message will be sent through
GmailUserName The username of the gmail account that the message will be sent through
Headers (inherited from MailMessage) Specifies the custom headers that are transmitted with the e-mail message.
Priority (inherited from MailMessage) Gets or sets the priority of the e-mail message.
Subject (inherited from MailMessage) Gets or sets the subject line of the e-mail message.
To (inherited from MailMessage) Gets or sets a semicolon-delimited list of recipient e-mail addresses.
UrlContentBase (inherited from MailMessage) Gets or sets the Content-Base HTTP header, the URL base of all relative URLs used within the HTML-encoded body of the e-mail message.
UrlContentLocation (inherited from MailMessage) Gets or sets the Content-Location HTTP header for the e-mail message.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
Send Sends the message. If no from address is given the message will be from GmailUserName@Gmail.com
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

GmailMessage Class | RC.Gmail Namespace