Roundcube Community Forum

Release Support => Older Versions => 0.1 Beta 1 => Topic started by: andresme on July 21, 2006, 11:19:11 AM

Title: "Failed to send message" ERROR help
Post by: andresme on July 21, 2006, 11:19:11 AM
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!!
Title: Re: "Failed to send message" ERROR help
Post by: bpat1434 on July 22, 2006, 02:11:12 PM
Error logs? What do they tell you?
Title: Re: "Failed to send message" ERROR help
Post by: andresme on July 22, 2006, 03:07:20 PM
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...
http://sapoverdedesign.com/mail/?_auth=f7ff33955ef30bd9a2d6d9f6facc82bd61df541a&_task=mail&_action=compose&_reply_uid=165&_mbox=INBOX

I doubt that helps...

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

I downloaded and installed - roundcubemail-0.1beta

Thanks!!
Title: Re: "Failed to send message" ERROR help
Post by: bpat1434 on July 22, 2006, 03:29:57 PM
Okay, open up: logs/error.log and see what it says....
Title: Re: "Failed to send message" ERROR help
Post by: andresme on July 22, 2006, 03:41:11 PM
Geez.. I'm sorry Brett. You are talking to complete idiot over here. How do you look that up?
Title: Re: "Failed to send message" ERROR help
Post by: bpat1434 on July 22, 2006, 04:07:28 PM
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.
Title: Re: "Failed to send message" ERROR help
Post by: andresme on July 22, 2006, 04:44:48 PM
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/sendmail.inc on line 230
Title: Re: "Failed to send message" ERROR help
Post by: bpat1434 on July 22, 2006, 05:17:49 PM
Sounds like the connection to the SMTP server failed. Double check your main config file.
Title: Re: "Failed to send message" ERROR help
Post by: andresme on July 22, 2006, 08:42:43 PM
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://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'imap.sapoverdedesign.com';

// 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'] = 'mail.sapoverdedesign.com';

Title: Re: "Failed to send message" ERROR help
Post by: bpat1434 on July 22, 2006, 09:25:14 PM
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 :(
Title: Re: "Failed to send message" ERROR help
Post by: Scine on October 08, 2007, 01:06:14 PM
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.