Author Topic: Sending emails doesn't work  (Read 8176 times)

Offline blove57

  • Jr. Member
  • **
  • Posts: 18
Sending emails doesn't work
« on: November 05, 2007, 01:31:33 AM »
I'm having troubles sending emails. It always fails with this in the log files:
SMTP Error: SMTP error: No From address has been provided in D:\roundcube\program\steps\mail\sendmail.inc on line 334

I don't know why it's giving me this error? I have logged in using my email address, password and host. Below is my config:
$rcmail_config['smtp_server'] = 'mail.mydomain.com';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';

To test if my SMTP settings are correct, in program/includes/rcube_smtp.inc I commented the code below just to see if my email would be sent:
 // exit if no from address is given
// if (!isset($from))
//  {
//  smtp_reset();
//  $response[] .= "No From address has been provided";
//  return FALSE;
//  }

After doing this my email was sent but from "Nobody ". Why is my from info being lost?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Sending emails doesn't work
« Reply #1 on: November 05, 2007, 01:39:20 AM »
If you go to settings then identities is there anything listed?

Offline blove57

  • Jr. Member
  • **
  • Posts: 18
Re: Sending emails doesn't work
« Reply #2 on: November 05, 2007, 01:48:12 AM »
Ah you are correct, this was the problem. As simple as this is, it's really hard to expect users to fill out the identities section. I think a good way for this to work is the first time a user signs in, they are prompted with a page to fill out their settings and preferences, which would include the crutial piece of having identity information.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Sending emails doesn't work
« Reply #3 on: November 05, 2007, 04:34:04 AM »
Yes well it auto makes it at the first loin but some time it dn't work right.