ANSMTP Developers Center > Frequently Asked
Questions
Compose Email
Why is there a
footer in email body?
This footer is a limitation in trial version. It is useful to detect if your
license code is correct. If your license code is correct, this footer will
disappear.
For more detail, please refer to RegisterKey property
How can I send html
email?
You need to specify BodyFormat property to 1,
and assign your html code to BodyText property.
Example:
oSmtp.BodyFormat = 1 'html email body
oSmtp.BodyText = "<html>..<body>Hello, this is a test...."
How can I send an
email which includes both html and text body?
Please refer to AltBody property, there is example code for that.
How can I add file
attachments to current email?
You can use AddAttachment, AddAttachmentEx and AddAttachments method.
AddAttachment: Add file attachment with current file name.
AddAttachmentEx: Add file attachment with customized file name
instead of original file name.
AddAttachments: Add all files in specified folder to current email.
Why asian language
becomes ??? in email body
Firstly, you should install East Asian Languages on your machine. Secondly,
you should set this asian language as default language for non-UNICODE program.
If you don't want to set this asian language as your default language,
you should use CodePage property to specify current codepage of
current email.
We suggest you use 65001 as your codepage and "utf-8" as your charset,
and all languages would be supported very well.
How to install asian languages on my machine?
Control Panel->Regional and Languages Options->Languages
How to set default language for non-UNICODE program?
Control Panel->Regional and Languages Options->Advanced.
How can I send html
email with embedded pictures?
Firstly, you should create a html file on your disk, then use ImportMailEx to
import this html to current email. This method would add all pictures in this
html automatically as embedded attachment.
Example:
oSmtp.ImportMailEx( "c:\test.htm" )
How can I hidden
some recipient's name/address in an email?
You can achieve that by adding blind copy recipient.
Example:
oSmtp.AddRecipient( "Support Team", "Support@adminsystem.net", 2 ) '2 indicates bcc.
How can I request
for a receipt from recipient?
You can use AddHeader method to add a customized header. Once Outlook
detect this header, a dialog box will appear asking for sending back a receipt.
Example:
oSmtp.AddHeader( "Disposition-Notification-To", "reply@email.com" )
Why does my email
message body show as jumbled characters?
ANSMTP use base64 as default encoding arithmetic for current email,
but it does not work perfectly in all the time. Some email clients
do not support base64 decoding, and you need to specify another encoding
arithmetic for current email.
Please refer to TransferEncoding property
Send Email
Why there is "Error
with sending recipient"?
This is a common question in sending email. This error indicates the current
SMTP server rejected to forward email to specified recpient's email address.
How to resolve this issue?
1 .Enables your SMTP server to relay email from anonymous user.
We DON'T recommend using this method, since your SMTP server could
be used by other people to send bulk emails.
2. Enables your SMTP server to relay email from authorized users. You need
to specify UserName and Password for ESMTP authentication.
Note: please make sure your SMTP server is enabled with "AUTH LOGIN" authentication.
3. Enables your SMTP server to relay email from authorized IP address. But this
requires that your machine has a fixed ip address.
4. Send email by DNS lookup. Click here to learn more details.
5. Send email by pickup path of IIS SMTP Service. Click here to learn more details.
Why there is "Error
with sending sender"?
This error indicates the sender email address is not valid. You should
assign a valid email address to FromAddr property.
Why there is "Error
with DNS lookup"?
This error indicates the current recipient email address is invalid so
that ANSMTP can't retrieve the local SMTP server of this email address.
How can I get a free
SMTP server to send email?
We suggest you use IIS SMTP Service to send email. Click here for more detail.
How can I send email
without SMTP server?
You can send email via DNS lookup, this features doesn't require a smtp server.
Click here for more detail.
How can I send mass
emails with high performance?
MassSender object is your right choice. It can send email in a smart threading-pool
with high performance. Please visit developer center to learn more details.
How can I send bulk
emails in ASP/ASP.NET with mail queuing?
There are several ways to enable your asp/asp.net applictaion to send email
with mail queuing. Please visit developer center to learn more details.
How can I handle
bounced email/delivery failure?
If you send email via dns lookup, ansmtp gives the result directly by
GetLastError method(synchronous mode) or OnError event(asynchronous mode).
If you send email via specified smtp server, then delivery failure report should be
sent to the email address specified in FromAddr property by your smtp server. In
this case, you can use anpop to check this pop3 account to get the detail.
S/MIME
Why I can't create
CAPICOM objects?
You should add a reference for CAPICOM in your project.
How can I get a
certificate to sign email?
You can apply for a Digital ID from independent certification authorities,
e.g. VeriSign Inc
Why Internet
Explorer is unable to import my certificate?
This error message can occur if you are attempting to import a 1024-bit key
(high grade) or greater digital certificate, and you are not running the 128-bit
version of Internet Explorer.
To resolve this behavior, upgrade to the 128-bit version of Internet Explorer.
To obtain the 128-bit Internet Explorer Upgrade, please visit the following
Microsoft Web site:
http://www.microsoft.com/ie/download/?/ie/download/128bit.htm
More detail, please refer to Microsoft Knowledge Base Article - 182054
Why
CAPICOM.Certificate load method fails with unknown error?
please refer to previous issue
"Why Internet Explorer is unable to import my certificate on Windows95/98/NT?"
Installation/Deployment
How to
install/upgrade ANSMTP?
Download ANSMTP installer and run it on your machine.
For ANSMTP 6.4 or later
Note for upgrade: during installation stage if there is a message "aosmtp.dll can't
be overwritten", you should check if any other application is using ANSMTP. If you
are using ANSMTP in ASP/ASP.NET application, you should shutdown IIS application
first or reboot your machine, otherwise aosmtp.dll is protected by IIS and
upgrade will be failed.
For ANSMTP 6.3 or earlier
Note for upgrade: during installation stage if there is a message "ansmtp.dll can't
be overwritten", you should check if any other application is using ANSMTP. If you
are using ANSMTP in ASP/ASP.NET application, you should shutdown IIS application
first or reboot your machine, otherwise ansmtp.dll is protected by IIS and
upgrade will be failed.
Any extra ocx, dll
does ANSMTP depend on?
ANSMTP is built on VC++/ATL, it doesn't depend on any extra ocx/dll
but winsock2.0 upgrade package if your application is running on windows95.
You can download winsock2.0
here: winsock2.0 update package for Windows 95
SSL/TLS Plus for ANSMTP/ANPOP:
Windows95: IE 5.0 or later is a MUST.
NT4.0: SP4 or later is a MUST.
How to
distribute/deploy ANSMTP? Can I integrate it into my installer?
For ANSMTP 6.4 or later
If you want to distribute/deploy without ANSMTP installer.
1. copy aosmtp.dll to destination machine. (run-time file of ANSMTP)
2. run "Regsvr32 [path]\aosmtp.dll" under dos prompt.(register ANSMTP as com object)
3. If you used SSL/TLS Plus for ANSMTP/ANPOP, you also need to copy ansslplus.dll
to the same directory of aosmtp.dll.
4. If you want to send signed and encrypted email, then you need to copy
capicom.dll to the same directory of aosmtp.dll and
run "Regsvr32 [path]\capicom.dll under dos prompt.
For ANSMTP 6.3 or earlier
If you want to distribute/deploy without ANSMTP installer.
1. copy ansmtp.dll to destination machine. (run-time file of ANSMTP)
2. run "Regsvr32 [path]\ansmtp.dll" under dos prompt.(register ANSMTP as com object)
3. If you used SSL/TLS Plus for ANSMTP/ANPOP, you also need to copy ansslplus.dll
to the same directory of ansmtp.dll.
4. If you want to send signed and encrypted email, then you need to copy
capicom.dll to the same directory of ansmtp.dll and
run "Regsvr32 [path]\capicom.dll under dos prompt.
You can also use your installer to do the above operations.
Note: You can only distribute ANSMTP to multiple machines with Professional
or Enterprise License.
Miscellaneous
Can ANSMTP retrieve
and parse email?
No, you can't use ANSMTP to retrieve and parse email, instead we provide another
product ANPOP which can retrieve and parse email.
Does ANSMTP support
SSL/TLS connection?
Yes, ANSMTP supports SSL/TLS connection, but an extra SSL/TLS Plus license is
required in this case, more detail, please refer to SSL_registerkey property.
Free Email Support
Not enough? Please contact our technical support team.
Support@EmailArchitect.NET
VIP@EmailArchitect.NET(Registered
User)
Remarks
We usually reply emails in 24hours. The reason for getting no response is
likely that your smtp server bounced our reply. In this case, please try to use
another email address to contact us. Your Hotmail or Yahoo email account is
recommended.