Welcome Guest, Not a member yet? Register   Sign In
cannot send email
#1

[eluser]husni[/eluser]
i got these errors..
and i dont know how to configure little things in my coding..
can anyone help me?? i am using xampp..
this is my coding..
<?php

/**
* SENDS EMAIL WITH GMAIL
*/
class Email extends Controller
{
function __construct()
{
parent::Controller();
}

function index()
{ //echo "trying send email";

//$this->email->set_newline("\r\n");
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'smtp_pass' => 'nettutsTutorials',
'smtp_timeout' => '30',
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE

);

$this->load->library('email', $config);
$this->email->set_newline("\r\n");

$this->email->from('[email protected]', 'Jeffrey Way');
$this->email->to('[email protected]');
$this->email->subject('This is an email test');
$this->email->message('It is working. Great!');


//$path = $this->config->item('server_root');
//echo $path; die();
//$file = $path . '/ci_day3/attachments/yourInfo.txt';

//$this->email->attach($file);

if($this->email->send())
{
echo 'Your email was sent, fool.';
}

else
{
show_error($this->email->print_debugger());
}
}
}
?>

this is the error..

An Error Was Encountered

The following SMTP error was encountered: 102718672 Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
Unable to send data: AUTH LOGIN
Failed to send AUTH LOGIN command. Error:
Unable to send data: MAIL FROM:

from:

The following SMTP error was encountered:
Unable to send data: RCPT TO:

to:

The following SMTP error was encountered:
Unable to send data: DATA

data:

The following SMTP error was encountered:
Unable to send data: User-Agent: CodeIgniter Date: Mon, 25 Jan 2010 02:45:23 +0000 From: "Jeffrey Way" Return-Path: To: [email protected] Subject: =?iso-8859-1?Q?This_is_an_email_test?= Reply-To: "[email protected]" X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_ALT_4b5d05c31b760" This is a multi-part message in MIME format. Your email application may not support this format. --B_ALT_4b5d05c31b760 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit It is working. Great! --B_ALT_4b5d05c31b760 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable It is working. Great! --B_ALT_4b5d05c31b760--
Unable to send data: .

The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter
Date: Mon, 25 Jan 2010 02:45:23 +0000
From: "Jeffrey Way"
Return-Path:
To: [email protected]
Subject: =?iso-8859-1?Q?This_is_an_email_test?=
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0


Content-Type: multipart/alternative; boundary="B_ALT_4b5d05c31b760"

This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ALT_4b5d05c31b760
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

It is working. Great!


--B_ALT_4b5d05c31b760
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

It is working. Great!

--B_ALT_4b5d05c31b760--

anyone can help me??!!
#2

[eluser]karthik86[/eluser]
Did you enable port for ssl ??
maybe you should look at this link...
http://w3it.com/blog/?p=7
(OR)
Open /apache/bin/php.ini file

Find the line with ;extension=php_openssl.dll and uncomment it by removing the semi-colon from the start of the line.

Restart Apache.
#3

[eluser]sandeep nami[/eluser]
biggest post with smallest response
keep up the good work dude
#4

[eluser]husni[/eluser]
done..still got a lot of errors..
#5

[eluser]karthik86[/eluser]
[quote author="husni" date="1264429300"]done..still got a lot of errors..[/quote]

what's the error that u got now ?
can u post it ?
#6

[eluser]husni[/eluser]
i provided my coding here..
but i think there is something to do with the configuration in my pc..
but i dont know how..




Theme © iAndrew 2016 - Forum software by © MyBB