AspEmail Sample Code Index

Note: The AspEmail Setup attempted to create a virtual directory /AspEmail on top of the <path>\Samples directory of the installation. Make sure it was created successfully. Re-create it if necessary using File Explorer (right-click on the \Samples directory, select Properties -> Web Sharing -> Share this folder -> type "AspEmail" under "Alias:", check the "Execute" box, click OK.

# Source Files Description Special Properties/Methods Used
1 Simple.asp
Simple.aspx .NET Version
A simple mail-sending form. Mail.Send
2 HtmlFormat.asp
HtmlFormat.aspx .NET Version
Show how to send messages in the HTML format. Mail.IsHTML
3 Attachments.asp
Attachments.aspx .NET Version
Demonstrate how to send messages with file attachments. Mail.AddAttachment
4 AttachBlobs.asp
AttachBlobs.aspx .NET Version
Demonstrate how to attach files directly from a database blob field. Mail.AddAttachmentMem
5 UploadAttachment.asp
UploadAttachment.aspx .NET Version UploadAttachmentMem.asp
UploadAttachmentMem.aspx .NET Version
Demonstrate the usage of the AspUpload component for uploading file attachments to the server. AspUpload component
Mail.AddAttachment
Mail.AddAttachmentMem
6 EmbeddedImages.asp
EmbeddedImages.aspx .NET Version
A premium feature: sending messages with embedded images and backgrounds. Mail.AddEmbeddedImage
Mail.AppendBodyFromFile
7 Database.asp
Database.aspx .NET Version
Demonstrate how to BCC a message to multiple recipients whose names and email addresses are stored in a database. Mail.AddBcc
8 Unicode.asp
Unicode.aspx .NET Version
A premium feature: support for non-US ASCII alphabets. Mail.EncodeHeader
Mail.CharSet
Mail.ContentTransferEncoding