MailUtilsCreateMailAttachment Method |
Package up a string as a text file mail attachment.
This method can be used, for example, to provide an iCalendar attachment when using the
iCal class to create the text content for the iCalendar text file with a ".ics" extension.
Namespace:
NetQuarry.Services
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static Attachment CreateMailAttachment(
string content,
string filename
)
Public Shared Function CreateMailAttachment (
content As String,
filename As String
) As Attachment
Parameters
- content
- Type: SystemString
The content of the file attachment. - filename
- Type: SystemString
The filename to use.
Return Value
Type:
AttachmentThe string as a text file attachment.
See Also