Author Topic: Unable to send mail  (Read 7792 times)

Offline drexcia

  • Newbie
  • *
  • Posts: 1
Unable to send mail
« on: August 14, 2006, 09:56:40 PM »
Hi All,

I've just installed Beta 2 and I'm unable to send email. I can receive ok but when I go to send, the screen stays on sending message and then  it just goes away. I don't receive a message saying "Unable to send message" like others have.

The following error appears in the log:

Code: [Select]
PHP Parse error: syntax error, unexpected $end in /home/duplicat/public_html/wmail/program/lib/Net/Socket.php on line 198
I've had a bit of a look around and I can't see anything relating to this.

Any ideas?

Thanks, Ben

Offline basileus

  • Newbie
  • *
  • Posts: 2
Re: Unable to send mail (Same)
« Reply #1 on: August 18, 2006, 12:13:27 PM »

Hello,
I have exactly the same problem (I receve my mail,but I'am unable to send mail), I think that comes from smtp configuration : my provider (1&1) request a “server requires an authentification”. But I do not know how activates this option in Roundcube.
That's my configuration please tell me what to do (sorry for my English I realy do the best than I can) :

Code: [Select]
<?php
$rcmail_config 
= array();
$rcmail_config['debug_level'] = 1;
$rcmail_config['enable_caching'] = TRUE;
$rcmail_config['message_cache_lifetime'] = '10d';
$rcmail_config['auto_create_user'] = TRUE;
$rcmail_config['default_host'] = 'imap.1and1.fr';
$rcmail_config['default_port'] = 143;
$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = '';
$rcmail_config['virtuser_file'] = '';
$rcmail_config['virtuser_query'] = '';
$rcmail_config['smtp_server'] = 'auth.smtp.1and1.fr';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = '';
$rcmail_config['smtp_log'] = TRUE;
$rcmail_config['list_cols'] = array('subject''from''date''size');
$rcmail_config['skin_path'] = 'skins/default/';
$rcmail_config['temp_dir'] = 'temp/';
$rcmail_config['log_dir'] = 'logs/';
$rcmail_config['session_lifetime'] = 10;
$rcmail_config['ip_check'] = TRUE;
$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
$rcmail_config['locale_string'] = 'fr';
$rcmail_config['date_short'] = 'D H:i';
$rcmail_config['date_long'] = 'd.m.Y H:i';
$rcmail_config['useragent'] = 'RoundCube Webmail/0.1b';
$rcmail_config['product_name'] = 'RoundCube Webmail';
$rcmail_config['imap_root'] = '';
$rcmail_config['drafts_mbox'] = 'Drafts';
$rcmail_config['junk_mbox'] = 'Junk';
$rcmail_config['sent_mbox'] = 'Sent';
$rcmail_config['trash_mbox'] = 'Trash';
$rcmail_config['default_imap_folders'] = array('INBOX''Drafts''Sent''Junk''Trash');
$rcmail_config['protect_default_folders'] = TRUE;
$rcmail_config['skip_deleted'] = FALSE;
$rcmail_config['read_when_deleted'] = TRUE;
$rcmail_config['flag_for_deletion'] = TRUE;
$rcmail_config['enable_spellcheck'] = TRUE;
$rcmail_config['generic_message_footer'] = '';
$rcmail_config['mail_header_delimiter'] = NULL;
$rcmail_config['include_host_config'] = FALSE;
$rcmail_config['pagesize'] = 40;
$rcmail_config['timezone'] = 1;
$rcmail_config['dst_active'] = TRUE;
$rcmail_config['prefer_html'] = TRUE;
$rcmail_config['prettydate'] = TRUE;
$rcmail_config['message_sort_col'] = 'date';
$rcmail_config['message_sort_order'] = 'DESC';
$rcmail_config['javascript_config'] = array('read_when_deleted''flag_for_deletion');
?>

 

Offline basileus

  • Newbie
  • *
  • Posts: 2
Re: Unable to send mail
« Reply #2 on: August 18, 2006, 12:16:57 PM »
Oh!!! sorry I forgot my log file :
Quote
[07-Aug-2006 19:44:57 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
 in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
[07-Aug-2006 19:52:08 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
 in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
[07-Aug-2006 19:57:29 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
 in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253
[07-Aug-2006 19:58:38 +0200] SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection refused
 in /homepages/31/d143490843/htdocs/wsb3914640201/courriel/program/steps/mail/sendmail.inc on line 253

Offline nka

  • Newbie
  • *
  • Posts: 2
Re: Unable to send mail
« Reply #3 on: August 18, 2006, 03:44:51 PM »
I got the same probleme but with notting in maillog and errors...

I'm just getting "Sending message..." and notting happen....

I'm using it with cpanel...

Offline fsnhosting

  • Newbie
  • *
  • Posts: 3
Re: Unable to send mail
« Reply #4 on: August 23, 2006, 08:57:25 AM »
I have the same issue with 2 different installations. I have tried using mail() and setting up SMTP on both, and have no resolution.

I am using the cPanel patched version.

I've checked logs, and there's nothing there, and I get no error messages. It simply just hangs at "sending message".

Offline nka

  • Newbie
  • *
  • Posts: 2
Re: Unable to send mail
« Reply #5 on: August 23, 2006, 10:28:51 AM »
edit the /usr/local/cpanel/base/roundcube/program/steps/mail/compose.inc

change the form ./ to "index.php"

it's around 745 I think. (or 655)

Offline fsnhosting

  • Newbie
  • *
  • Posts: 3
Re: Unable to send mail
« Reply #6 on: August 23, 2006, 02:52:53 PM »
Quote from: nka
edit the /usr/local/cpanel/base/roundcube/program/steps/mail/compose.inc

change the form ./ to "index.php"

it's around 745 I think. (or 655)

so would that be this:

Code: [Select]
$form_start = empty($attrib['form']) ? '<form name=&quot;form&quot; action=&quot;./index.php&quot; method=&quot;post&quot;>' : '';
to this:

Code: [Select]
$form_start = empty($attrib['form']) ? '' : '';
?

jclarke

  • Guest
Re: Unable to send mail
« Reply #7 on: August 23, 2006, 04:54:51 PM »
Quote from: fsnhosting
I have the same issue with 2 different installations. I have tried using mail() and setting up SMTP on both, and have no resolution.

I am using the cPanel patched version.

I've checked logs, and there's nothing there, and I get no error messages. It simply just hangs at "sending message".

I'm having the same issue, I can't find any kind of error message either, it just says sending message and never sends it. I have this running under cPanel as well.

Offline wdaniels

  • Newbie
  • *
  • Posts: 2
Re: Unable to send mail
« Reply #8 on: August 23, 2006, 05:04:53 PM »
Also having this exact same problem after following the guide for installing with cpanel. The suggested change above to /usr/local/cpanel/base/roundcube/program/steps/mail/compose.inc
 made no difference.

Offline DontAsk

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #9 on: August 23, 2006, 06:54:24 PM »
Exact file to edit is at

Quote
/usr/local/cpanel/base/roundcube/skins/default/templates/compose.html at about line 31 (you can also search for post) and change the action to be

index.php

instead of

./
Vinayak Sharma
Vinsar.Net Cyber Udyog
Web Hosting & Web Development with a difference.

Offline wdaniels

  • Newbie
  • *
  • Posts: 2
Re: Unable to send mail
« Reply #10 on: August 24, 2006, 02:36:47 AM »
Yes, that one fixed it. Thanks! :)

Offline rje96

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #11 on: August 24, 2006, 04:42:30 AM »
Hi

I have the same problem. When i want to send a message, then it says "Nachricht wird gesendet" and nothing happen's.

The funny thing is, that the mail was going out... but the page doesn't change...

I've already tried the solution with ./ -> index.php... Nothing happens...

Greetings rje96

Offline DontAsk

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #12 on: August 24, 2006, 04:48:48 AM »
have you corrected the right file.
Vinayak Sharma
Vinsar.Net Cyber Udyog
Web Hosting & Web Development with a difference.

Offline rje96

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #13 on: August 24, 2006, 04:50:32 AM »
I have corrected the compose-File in skins/default/templates...

I'm running RC on a Confixx-Installation in /srv/www/htdocs/confixx/html...

Greetings rje96

Offline DontAsk

  • Newbie
  • *
  • Posts: 4
Re: Unable to send mail
« Reply #14 on: August 24, 2006, 04:56:08 AM »
Oh I am sorry I had not noticed that your installation is standalone.

The correction I was refereing to was related to cPanel install as per http://www.hostgeekz.com/guides/cPanel/64/Install_RoundCube_on_cPanel.htm
Vinayak Sharma
Vinsar.Net Cyber Udyog
Web Hosting & Web Development with a difference.