Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
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("Chilkat.MailMan2")
mm.UnlockComponent "test"
mm.SmtpHost = "smtp.comcast.net"
set email = CreateObject("Chilkat.Email2")
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"
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.