Roundcube Community Forum


"Failed to send message" ERROR help

Started by andresme, July 21, 2006, 11:19:11 AM

Previous topic - Next topic


Thanks everyone for the tips you have provided... They were VERY helpful. :)

Any reasons why I get an "Failed to send message" error when sending email?

I can log in and play around just fine... I can recieve, view... but I can't send message

I'm using safari 2.0.4 - any known issues there?

Thanks again for the help!!




I'm afraid that's all it says at the top of my screen. When I click send.. A pop up semi transparent window comes up saying sending message and then it turns redish and says.... ! failed to send message wth "!" in the yellow triangle....

on the address bar...

I doubt that helps...

But it's weird. I can do everything else... except send.

I downloaded and installed - roundcubemail-0.1beta



Okay, open up: logs/error.log and see what it says....


Geez.. I'm sorry Brett. You are talking to complete idiot over here. How do you look that up?


FTP into your account, open the folder where RC is installed to. There should be a directory called "logs" with a few files in there. Get them, one should say "error" or "errors" or something. Open it and see what the errors are.


Okay... Here's the ones concerning the "Failed to send message"

[22-Jul-2006 13:08:15 -0600] SMTP Error: SMTP error: Connection failed
 in /home/sapoverd/public_html/mail/program/steps/mail/ on line 230


Sounds like the connection to the SMTP server failed. Double check your main config file.


Okay. This is what I have. This is how my webhost thought I should do it. I believe they don't support or have SMTP so we set it up like this. Do you think I need more of this filled in?

$rcmail_config['default_host'] = 'localhost'

// use this host for sending mails.
// to use SSL connection, set ssl://
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = '';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

I've also tried it with:
$rcmail_config['smtp_server'] = '';


There's your answer.... if the server doesn't support SMTP, then you can't send mail with Roundcube. I guess theoretically RC could use the mail() function in PHP if smtp_server was left blank. But that's just a small addition for later.

Also, if you use any other SMTP server, you need to set the user and pass for the server. What account will items be sent from? Currently you have it set up to send from no-one. You should at least put "%u" and '%p" respectively so that at least something is sent.

So in short: If your server/host doesn't support or have SMTP capability, you can't send mail form RC.

I'd suggest either finding another host (I can offer you space for $0.25 per day) or use your personal SMTP server from your ISP :(


As a side note, I had a similar, but not exact problem. I changed this line

$rcmail_config['smtp_server'] = 'myhost';

to this:

$rcmail_config['smtp_server'] = '';

and it worked.