CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error send email. localhost works and in remote server doesn´t work!!
Pages: [1]

Author Topic: Error send email. localhost works and in remote server doesn´t work!!  (Read 2183 times)

jjdoms

  • Guest
Error send email. localhost works and in remote server doesn´t work!!
March 19, 2008, 03:54:47 am
hello,

I have civicrm 1.9 and Joomla. I have installed it in my local host using wamp server and it works correctly: the installation is correct, I can send email to contacts, etc. I have a domain in 1and1 and I can´t install it as I did in my local host because in the middle of the installation process, an ERROR 500 message appeared (i have changed this values: memory_limit = 128M, max_execution_time = 600). I have solved this problem coping my local database and files to my host in 1and1. I have modified civicrm.settings.php for the new database and new localization in the server and it works correctly!! But the problem is when I try to send emails: Joomla can send emails from the contact component but civicrm gives me the next error:

     Sorry. A non-recoverable error has occurred.

    Array

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> 111
    [message] => Connection refused
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="Connection refused" code=111 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Array

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] =>
    [message] => not connected
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="not connected" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)



I have the same configuration that works in my localhost. I have activated the debug option in the packages/net/smtp.php and it only shows "DEBUG: QUIT". I have read the forum but I couldn’t find anything.

Is there any file with local configuration? Is my 1and1 server very restrictive?

Thanks!!
[/code]
« Last Edit: March 19, 2008, 04:03:58 am by jjdoms »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error send email. localhost works and in remote server doesn´t work!!
March 19, 2008, 04:25:24 am
Error message suggests there is definitely authentication problem with remote server. Make sure you have entered correct credentials.

kurund
Found this reply helpful? Support CiviCRM

jjdoms

  • Guest
Re: Error send email. localhost works and in remote server doesn´t work!!
March 19, 2008, 05:00:56 am
hello,

yes, I have configurated correctly the option "SMTP Configuration" and the password in the file civicrm.settings.php. This configuration works correctly in my localhost but doesn´t work in the remote server 1and1.

Thaks for your reply

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error send email. localhost works and in remote server doesn´t work!!
March 24, 2008, 10:24:57 am
You should probably ask your host to check the mail server log and see what's happening.
Protect your investment in CiviCRM by  becoming a Member!

jjdoms

  • Guest
Re: Error send email. localhost works and in remote server doesn´t work!!
March 25, 2008, 07:02:32 am
Hello,

I have written to my host supplier asking by smtp log. I have installed Joomla 1.5 and civicrm 2.1 for the compatibility of diferents idioms (it works correctly, I haven´t got any strange character) from server, I don´t copy the local installation to the remote server, like that I am sure that all configuration is correctly (there are not dependeces to local PATH). But the same error continue.

jjdoms

  • Guest
Re: Error send email. localhost works and in remote server doesn´t work!!
March 27, 2008, 02:33:41 am
Hello,

my host supplier has replied that the SMTP function is not available and that I have to develop the source in order to send php mails.

Does anyone know how can I do this?

Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error send email. localhost works and in remote server doesn´t work!!
March 27, 2008, 08:49:44 am
You should ask your host if the PHP sendmail() function is supported. If so, check this topic for instructions on changing CiviCRM to use it instead of SMTP:
http://forum.civicrm.org/index.php/topic,1799.msg7854.html#msg7854
Protect your investment in CiviCRM by  becoming a Member!

jjdoms

  • Guest
Re: Error send email. localhost works and in remote server doesn´t work!!
March 28, 2008, 04:56:41 am
ok, thank you very much for you reply. I´m going to try it now.
I can configure Joomla SMTP for Contacts module and it work correctly but civicrm not work.

jjdoms

  • Guest
Re: Error send email. localhost works and in remote server doesn´t work!!
March 28, 2008, 05:08:10 am
Yes!!!! it work correctly!!!!!! incredible!! thankyou very much Greenberg for you reply. I have changed this code in file CRM/Core/config.php:

from

      elf::$_mail =& Mail::factory( 'smtp', $params );

to

      elf::$_mail =& Mail::factory( 'sendmail', $params );


thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error send email. localhost works and in remote server doesn´t work!!

This forum was archived on 2017-11-26.