Persits Software, Inc. Knowledge Base Articles

Connection refused error

Problem Description

When trying to send an email message with AspEmail, the following error is generated:

Persits.MailSender.4 (0x800A0004)
Connection refused.


In most cases, this error means that the specified Host is found, but it is not running SMTP services, or SMTP is running on a non-default port.

Make sure an SMTP server, such as Microsoft SMTP Services or Microsoft Exchange Server, is up and runing on the Host, and that SMTP runs on the default port (25). If SMTP is given a non-default port number, you must specify it via the Mail.Port property.

This error is also known to be caused by antivirus/antiworm software such as McAfee blocking the SMTP port.