Set the attachment data, content-type and file
name from an existing file.
Use this method to quickly an easily build a
MailAttachment object from a file. The
Data property is set to a byte
array containg the file data, the
Type
property is calculated from the file name, and the
Name property is set to the file
name. Note that all these properties can be modified after calling the
Load method.