ASP Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

ASP Examples

ASP String
ASP Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar
ASP Upload
XML
XMP
Zip Compression

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

ASP Script to Send HTML Email

Download Chilkat Email ActiveX

Download Chilkat MHT ActiveX

More ASP POP3 Examples

More ASP SMTP Examples

More ASP Email Examples

ASP script showing how to load a Web page and send it as HTML email.

<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>Mail HTML with Embedded Image Example</TITLE>
</HEAD>
<BODY>

<%
	' Create a mailman
	set mht = Server.CreateObject("Chilkat.Mht")
	set mailman = Server.CreateObject("Chilkat.MailMan2")

	' Unlock the component - any string automatically begins a 30-day trial.
	mailman.UnlockComponent "30-day trial"
	mht.UnlockComponent "30-day trial"
	
	' Tell the mailman where the SMTP server is located
	mailman.SmtpHost = "smtp.chilkatsoft.com"

	' Create an Email message
	set email = mht.GetEmail("http://www.bonairefishing.com/")

	if (email is Nothing) then
	        Response.Write mht.LastErrorHtml
	else
	        ' Enter the recipient's information
	        email.AddTo "John Smith", "jsmith@chilkatsoft.com"

	        ' Enter the sender's information
	        email.FromName = "Joe Smith"
	        email.FromAddress = "joe.smith@somedomain.com"

	        ' Enter the email subject
	        email.Subject = "Bonaire Fishing"

	        ' Send Email from ASP
	        if mailman.SendEmail(email) then
		    Response.write "Message sent successfully!"
	        else
		    Response.write mailman.LastErrorHtml
	        end if

	end if



	' Standard ASP cleanup of objects
	Set email = Nothing
	Set mailman = Nothing

%>



</BODY>
</HTML>


Relevant keywords: ASP Tutorial, ASP Script, ASP Application, ASP Software, ASP Code, ASP Programming, ASP Component, Free ASP Script, ASP Email, ASP Help, ASP Example, ASP Source Code, ASP Developer, ASP Mail, ASP XML, ASP Sample

 

© 2000-2013 Chilkat Software, Inc. All Rights Reserved.