VBScript Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VBScript Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
PFX
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
Byte Array
RSS
Atom
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Bz2
Icon

 

 

 

 

 

 

 

Send HTML Email with Embedded GIF Image

Sends an HTML email with an embedded GIF file. This email will display correctly in email clients, including online clients such as Hotmail.com

set mm = CreateObject("ChilkatMail2.ChilkatMailMan2")
mm.UnlockComponent "test"

mm.SmtpHost = "smtp.comcast.net"

set email = CreateObject("ChilkatMail2.ChilkatEmail2")
email.Subject = "test HTML email with embedded graphic"
email.AddTo "Chilkat","admin@chilkatsoft.com"

cid = email.AddRelatedFile("dudeMail.gif")

email.SetHtmlBody "<html><body>This is a test<br><img src=""CID:" + cid + """><br>This is a test</body></html>"
email.From = "Chilkat <support@chilkatsoft.com>"
mm.SendEmail email

MsgBox mm.LastErrorText
mm.SaveLastError "error.txt"

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2003-2007 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser