LibY!Mail  0.20
A .NET object oriented hierarchical encapsulation of the Yahoo! Mail web services.
YMailMessage Class Reference

Represents an e-mail message in the Yahoo! Mail account. More...

Inheritance diagram for YMailMessage:

Public Member Functions

NameValueCollection GetHeaders ()
 Gets the message raw headers from the server and populate MailMessage.Headers.
 
MessageRequest GetMessageRequest (BlockImageOption blockImages, Boolean restrictCSS, String imageReplaceUrl, Boolean expandCidReference, Boolean enableWarnings)
 Gets a MessageRequest object to send to Folder.GetMessageContent.
 
void Move (Folder destination)
 Move the message to another folder
 

Properties

DateTime Date [get]
 Gets the date this message was received at
 
Boolean DomainKey [get]
 Gets a value indicating if domain keys was used?
 
String DomainKeyName [get]
 Gets the name of the domain key
 
Boolean DomainKeySpecified [get]
 Gets a value indicating if DomainKey was specified?
 
Boolean HasBlockedImages [get]
 Gets a value indicating if the message has blocked images
 
Boolean HasBlockedImagesSpecified [get]
 Gets a value that indicates something
 
Uri MessageLink [get]
 Gets an HTML link to this message on the web interface of Yahoo! Mail
 

Detailed Description

Represents an e-mail message in the Yahoo! Mail account.

This class maps the Yahoo! Mail Web Services Message data type to the .NET MailMessage class, and adds properties and methods that Yahoo! adds.

The content of the message, including it's various properties, body and attachments, will be available only after calling the Folder.GetMessageContent method.

Member Function Documentation

NameValueCollection GetHeaders ( )

Gets the message raw headers from the server and populate MailMessage.Headers.

Exceptions
MessageErrorExceptionThere was an error retrieving headers for the message.

Calls the GetMessageRawHeader web service the first time it is accessed. If the MailMessage.Headers collection is already populated, the method does nothing.

MessageRequest GetMessageRequest ( BlockImageOption  blockImages,
Boolean  restrictCSS,
String  imageReplaceUrl,
Boolean  expandCidReference,
Boolean  enableWarnings 
)

Gets a MessageRequest object to send to Folder.GetMessageContent.

Parameters
blockImagesOne of BlockImageOptions members
restrictCSStrue to restrice CSS, false otherwise
imageReplaceUrlA URL to replace the URL of images.
expandCidReferencetrue to expand CID, false otherwise
enableWarningstrue to enable warnings on forms, links and password fields, false to disable them.
Returns
A new MessageRequest instance with the specified parameters.
void Move ( Folder  destination)

Move the message to another folder

Parameters
destinationThe destination folder
Exceptions
MessageErrorExceptionThere was an error moving the message.

Property Documentation

DateTime Date
get

Gets the date this message was received at

Boolean DomainKey
get

Gets a value indicating if domain keys was used?

String DomainKeyName
get

Gets the name of the domain key

Boolean DomainKeySpecified
get

Gets a value indicating if DomainKey was specified?

Boolean HasBlockedImages
get

Gets a value indicating if the message has blocked images

true if the message has images blocked from view, false otherwise.

Boolean HasBlockedImagesSpecified
get

Gets a value that indicates something

true, otherwise false.

Uri MessageLink
get

Gets an HTML link to this message on the web interface of Yahoo! Mail

A URI that displays the message in a web browser

You can use this link to direct a user to the message in Yahoo! Mail web interface.


The documentation for this class was generated from the following file: