The SimpleInvoices forum has moved to Google Plus - this forum is now read-only
Zend Mail Protocol Exception: Connection refused
  • avidaicuavidaicu July 2011

    Hi, I am trying to send out invoice email to client when I get:
    Zend Mail Protocol Exception: Connection refused

    Could you please advise how I can fix this, any help much appreciated.

    thanks,
    Andrei

  • modirmodir July 2011

    What configuration settings do you have in the config file?

  • avidaicuavidaicu July 2011

    ; Simple Invoices configuration file
    ; - refer http://www.simpleinvoices.org/config for all options

    ; Production site configuration data
    [production]
    database.adapter = pdo_mysql
    database.utf8 = true
    database.params.host = localhost
    database.params.username = myusername
    database.params.password = mypassword
    database.params.dbname = simple_invoices
    database.params.port = 3306

    authentication.enabled = false
    authentication.http =

    export.spreadsheet = xls
    export.wordprocessor = doc
    export.pdf.screensize = 800
    export.pdf.papersize = A4
    export.pdf.leftmargin = 15
    export.pdf.rightmargin = 15
    export.pdf.topmargin = 15
    export.pdf.bottommargin = 15

    local.locale = en_GB
    local.precision = 2

    email.host = localhost
    email.smtp_auth = false
    email.username =
    email.password =
    email.smtpport = 25
    email.secure =
    email.ack = false

    encryption.default.key = this_is_the_encryption_key_change_it
    nonce.key = this_should_be_random_and_secret_so_change_it
    nonce.timelimit = 3600

    version.name = 2010.2 update 1 - stable

    debug.level = All
    debug.error_reporting = E_ERROR
    phpSettings.date.timezone = Europe/London
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    phpSettings.log_errors = 0
    phpSettings.error_log = tmp/log/php.log

    ; Explicity confirm delete of line items from invoices? (yes/no)
    confirm.deleteLineItem = no

    ; Staging site configuration data inherits from production and
    ; overrides values as necessary
    [staging : production]
    database.params.dbname = simple_invoices_staging
    database.params.username = devuser
    database.params.password = devsecret

    [dev : production]
    database.params.dbname = simple_invoices_dev
    debug.error_reporting = E_ALL
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1

  • modirmodir July 2011

    ok.. only this part is of importance:

    email.host = localhost
    email.smtp_auth = false
    email.username =
    email.password =
    email.smtpport = 25
    email.secure =
    email.ack = false

    Do you have a mail server running on your machine?

  • avidaicuavidaicu July 2011

    Yes.

  • modirmodir July 2011

    Here you have a list of what each parameter means:
    http://www.simpleinvoices.org/config#email_settings

    One or more of the parameters are not right at the moment. You have to either change something in SI or in your email server. Check in both logs if you see why the connection is refused.

  • scokescoke December 2011

    I had the same problem when I switched from Justhost to Host Gator a few days ago. Email just stopped working. After trying everything else I setup the config.ini to use SMTP with SSL (I didn't have to with Justhost). I got the settings from Webmail. Here's a sample:

    email.host = gator1845.hostgator.com
    email.smtp_auth = true
    email.username = [email protected]
    email.password = password
    email.smtpport = 465
    email.secure = ssl
    email.ack = false

    Hope this helps someone.

  • harshanaharshana February 2013

    Dear Scoke,

    Thanks for your help the email worked with your settings after modifying the "email.host = gator1845.hostgator.com" to "email.host = mydomainname.com" no need to use mydomainname.hostgator.com

    Thank you so much.

Categories

Tagged