Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Create Email with File Attachment and Save as .emlCreate email with file attachment and save as .eml.
LOCAL loEmail LOCAL lnSuccess LOCAL lcContentType loEmail = CreateObject('Chilkat.Email2') loEmail.Subject = "This is a test" loEmail.Body = "This is a test" loEmail.From = "support@chilkatsoft.com" loEmail.AddTo("Matt","matt@chilkatsoft.com") lcContentType = loEmail.AddFileAttachment("il1120.pdf") IF (lcContentType = NULL ) THEN ? loEmail.LastErrorText QUIT ENDIF lnSuccess = loEmail.SaveEml("email.eml") IF (lnSuccess = 0) THEN ? loEmail.LastErrorText QUIT ENDIF =MESSAGEBOX("Saved EML!") |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser