Welcome Guest, Not a member yet? Register   Sign In
Problems sending mail using SMTP
#1

[eluser]salbertson[/eluser]
I am trying to send mail using SMTP but keep getting a sendmail error in my error log. I am trying to send mail using an outside mail server.

Here is my email config:
Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'mailserver.domain.com';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'password';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['mailtype'] = "html";
Here is my email send code, the send function returns false:
Code:
// load email library
$this->load->library('email');

// construct email
$this->email->from('[email protected]', 'Support');
$this->email->to($_POST['email']);
$this->email->bcc('[email protected]');
$this->email->subject('Support');
$this->email->message("Anything");

if(!$this->email->send())
{
// error while sending email
show_error("An error occurred while sending your login email.");
exit;
}
Here is the error I get in Apache log:
Code:
sh: /usr/sbin/sendmail: No such file or directory
Any help would be greatly appreciated, thanks.


Messages In This Thread
Problems sending mail using SMTP - by El Forum - 12-06-2007, 11:41 AM
Problems sending mail using SMTP - by El Forum - 12-06-2007, 12:10 PM
Problems sending mail using SMTP - by El Forum - 01-05-2008, 03:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB