Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

  

  

  Chilkat ActiveX Components

  Chilkat .NET Components

  Chilkat C++ Libraries

  

  

  

  

 

FAQ

Email Component

Mail Component Frequently Asked Questions (FAQ)

DOWNLOAD DocumentationChange Log

The most common user errors are:
#1: The login and password are incorrect. Quite often this is because the username/password are reversed.
#2: Cannot connect to the POP3 or SMTP server. You'll want to make sure there are no firewalls blocking access to these ports. Quite often, companies will configure a firewall to block the email ports. There is nothing Chilkat Mail can do about that.
#3: Indexing begins at 0, not 1. This is important to know when you are using an index to retrieve an attachment from and email, or an email from a bundle.
#4: The ChilkatMailMan.MailHost property hasn't been set. This is the hostname of your POP3 server.
#5: The component is still locked. Don't forget to call UnlockComponent and pass the unlock code. This only needs to be called once at the beginning of an application.
I'm having trouble using Chilkat Mail on a Windows 95 system.
Make sure that the Windows Socket 2 update has been installed. Also, you need to be running version 2.12 or higher.
How do I use ChilkatMail with Excel 2000?
1. On the main Excel Window, click on Tools
2. Click on Macro
3. Click on Visual Basic
4. On the Visual Basic screen click View
5. Click Toolbox
6. Right click on the Toolbox Window that appears
7. Click on Additional Controls
8. Click on Chilkat Mailman 2.*.*
9. Your control is now in the Toolbox.
How do I get started using Chilkat Mail with Visual FoxPro?

Here is some sample code provided by one of our FoxPro users that should help:

omailman = CreateObject("ChilkatMail.ChilkatMailMan")
omailman.UnlockComponent("unlock_code")
oemail = CreateObject("ChilkatMail.ChilkatEmail")
oemail.AddTo("John Smith", "jsmith@chilkatsoft.com")
oemail.Subject = "Hello! This is a test e-mail with attachment"
oemail.Body = "This is an email."
oemail.From = "matt@chilkatsoft.com"
success = oemail.AddFileAttachment("c:\data.dat")
success = omailman.SendEmail(oemail)
RELEASE oemail
RELEASE omailman
  
I am having trouble using Outlook-related functions from ASP.

Before you try using Chilkat Mail Outlook-related functions from ASP, make sure you are able to get this ASP script working:

<%@ LANGUAGE="VBSCRIPT" %>

<HTML>
<HEAD>
<TITLE>Create the Outlook.Application object.</TITLE>
</HEAD>
<BODY>

If you can get this to work, then let us what you did...

<%
	set obj = Server.CreateObject("Outlook.Application")

	Set obj = Nothing

%>

<BR>DONE.<BR>

</BODY>
</HTML>


The Chilkat Mail component is creating the Outlook.Application component in the same way, but internal to the comonent. If you can get this to work in ASP, then the same solution will probably also work for Chilkat Mail. Please let us know what you did so we can add it to this FAQ to help other users. Currently, Chilkat does not have a recommendation for getting this to work in your environment, but as we learn more, this FAQ will be updated.

  
How can I send a fax using eFax?
Here are instructions from the eFax site: How to Send Faxes from email
I'm getting this error message: Runtime error '438': Object doesn't support this property or method
Here is a fragment of code that would cause this problem:
        Dim bundle As ChilkatEmailBundle
        Set bundle = ChilkatMailMan1.CopyMail
       
        Dim email As ChilkatEmail
        Set email = bundle.GetEmail(0)
        'The error occurs in the following statement:
        ChilkatMailMan1.DeleteEmail (email) 

The reason this happens is that DeleteEmail is a subroutine, and not a function. If you remove the parentheses, you won't get the error:

        ChilkatMailMan1.DeleteEmail email

Here is another fragment of code that would cause the '438' error:

        Dim email As ChilkatEmail
        Set email = New ChilkatEmail
        
        email.AddMultipleTo "fausey@chilkatsoft.com"
        email.From = "fausey@chilkatsoft.com"
        email.Subject = "test"
        email.Body = "test"
        ' The error occurs in the SendEmail statement below:
        ChilkatMailMan1.SendEmail (email)

The reason this happens is that SendEmail is a function, and not a subroutine. It returns a Long value indicating the success. Change the code to this, and you won't get the error:

        Dim success As Long
        success = ChilkatMailMan1.SendEmail (email)
 


Privacy Statement. Copyright 2000-2008 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, and Windows 95/98/NT4.