Please refer to the readme file. What does it do? Who needs it? Using Attachments: Sending mails with file attachments: filesystem, database or inline. Support: Where do I get help? PHP has a built-in mail function.
|Genre:||Health and Food|
|Published (Last):||16 April 2007|
|PDF File Size:||16.45 Mb|
|ePub File Size:||18.67 Mb|
|Price:||Free* [*Free Regsitration Required]|
Examples The following code example demonstrates attaching a file to an email message. ContentDisposition; disposition. GetCreationTime file ; disposition. GetLastWriteTime file ; disposition. ContentDisposition; Console. WriteLine "Content disposition" ; Console. WriteLine cd. ToString ; Console. FileName ; Console. Size ; Console. CreationDate ; Console. ModificationDate ; Console.
ReadDate ; Console. Inline ; Console. Count ; foreach DictionaryEntry d in cd. Key, d. All messages include a Body , which contains the content of the message. In addition to the body, you might want to send additional files. These are sent as attachments and are represented as Attachment instances. To add an attachment to a mail message, add it to the MailMessage. Attachments collection. Attachment content can be a String , Stream , or file name. You can specify the content in an attachment by using any of the Attachment constructors.
The Content-Type header specifies the media type and subtype and any associated parameters. Use ContentType to get the instance associated with an attachment. The Content-Disposition header specifies the presentation and file time stamps for an attachment. A Content-Disposition header is sent only if the attachment is a file. Use the ContentDisposition property to get the instance associated with an attachment.
Subscribe to RSS