connection parameters with smtp server (server, port, login)

  • Q: When I try to send an email the following error message is displayed: "Couldn't connect to server, Error: No connection could be made because the target machine actively refused it". What is the problem and how can I fix it?
  • A: The common reasons of this error message and solutions are:

Outgoing mail server not specified. To send messages with command line email utility it is necessary to specify outgoing mail server (SMTP) address. If you do not know what is the address of SMTP server, either try to look in settings of another mail application or contact your network administrator or Internet Service Provider. SMTP server can be specified by using -SMTP or -SERVER parameter.

C:\>febootimail *email_params* -SMTP smtp.server.com 

SMTP server port is other than default 25. If SMTP server port is other than 25, it must be specified additionally. Use -PORT command to specify the port used by your outgoing mail server.

C:\>febootimail *email_params* -SMTP smtp.server.com -PORT 26 

Username and password is not specified while using secure mail server that requires authentication. If your SMTP mail server requires authentication, username and password should be specified in order to send command line emails.

C:\>febootimail *email_params* -SMTP esmtp.server.com -AUTH LOGIN -USERNAME ******** -PASSWORD ******** 

Note, that in the above mentioned examples you have to substitute *email_params* with a valid febooti Command line email commands.

This febooti Command line email article may be referenced as (KB ID: 513).

Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email. The solution will be provided shortly by e-mail and eventually added to FAQ.