Welcome Guest, Not a member yet? Register   Sign In
Mail sending problem
#1

[eluser]ummarbhutta[/eluser]
Hi I am having problem in sending email.. I have hosted my website on hostmonster.com and the following function is sending email to user.. but it doesn't get delivered.. and no error message is displayed...
Code:
function SendEmail($email)
    {
        $config['useragent'] = 'Test mail server';
        $config['mailtype'] = 'html';
        $config['validate'] = TRUE;

        $this->email->initialize($config);
        $this->email->from('[email protected]', 'web Registration');
        $this->email->to($email);

        $this->email->subject('Email confirmation required');

        $message = "Email body";

        $this->email->message($message);

        $this->email->send();

    }

Why it is so? Please help me as soon as possible?
#2

[eluser]andreagam[/eluser]
Did you set your mailpath correctly?
Code:
$config['mailpath'] = '/usr/sbin/sendmail -t -i';
Use your server specs. Maybe it just can't find sendmail...
#3

[eluser]ummarbhutta[/eluser]
Thanks let me try it...
#4

[eluser]ummarbhutta[/eluser]
I have tested it but it is not working yet!! :-S




Theme © iAndrew 2016 - Forum software by © MyBB