Welcome Guest, Not a member yet? Register   Sign In
Gmail SMTP using SSL/TLS
#36

[eluser]Unknown[/eluser]
Perhaps this is the last time am trying using gmail, i have tried the same solution for nearly two weeks and there is no hope of getting it right.

Below is my code

Code:
$config = Array(
                'protocol' => "smtp",
                'smtp_host' => "ssl://smtp.googlemail.com",
                'smtp_port' => 465,
                'smtp_user' => "[email protected]",
                'smtp_pass' => "my-pass",
                'smtp_timeout' => "40",
                'mailtype'  => "text",
                'charset'   => "utf-8",
                'send_multipart'=> TRUE
            );
            $this->load->library('email');
            $this->email->initialize($config);
            $this->email->set_newline("\r\n");


            $this->email->from($this->session->userdata('email'), ucwords($name));
            $this->email->to('[email protected]');
            $this->email->cc($this->session->userdata('email'), ucwords($name));

            $this->email->subject($subject);
            $this->email->message($message);
            $this->email->attach($file_path);
              ...........

OUT PUT BELOW

Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.

From: "my-name" <[email protected]>
Return-Path: <[email protected]>
Cc: [email protected]
Reply-To: "my-name" <[email protected]>
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="B_ATC_53676ad1ce320"


=?utf-8?Q?Application_for_The_standard_Lorem_Ipsum_passage_used_since_th?=
=?utf-8?Q?e_1500s?=
This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ATC_53676ad1ce320
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Am using MAMP installed on mac os


Messages In This Thread
Gmail SMTP using SSL/TLS - by El Forum - 07-09-2008, 08:16 PM
Gmail SMTP using SSL/TLS - by El Forum - 07-10-2008, 09:08 AM
Gmail SMTP using SSL/TLS - by El Forum - 07-19-2008, 12:01 AM
Gmail SMTP using SSL/TLS - by El Forum - 07-21-2008, 10:12 PM
Gmail SMTP using SSL/TLS - by El Forum - 08-01-2008, 04:13 PM
Gmail SMTP using SSL/TLS - by El Forum - 09-01-2008, 11:50 PM
Gmail SMTP using SSL/TLS - by El Forum - 09-02-2008, 11:32 AM
Gmail SMTP using SSL/TLS - by El Forum - 01-15-2009, 05:25 AM
Gmail SMTP using SSL/TLS - by El Forum - 01-15-2009, 08:07 AM
Gmail SMTP using SSL/TLS - by El Forum - 02-24-2009, 08:06 PM
Gmail SMTP using SSL/TLS - by El Forum - 04-07-2009, 12:46 PM
Gmail SMTP using SSL/TLS - by El Forum - 05-23-2009, 07:44 AM
Gmail SMTP using SSL/TLS - by El Forum - 07-06-2009, 03:56 PM
Gmail SMTP using SSL/TLS - by El Forum - 07-06-2009, 06:35 PM
Gmail SMTP using SSL/TLS - by El Forum - 07-06-2009, 11:03 PM
Gmail SMTP using SSL/TLS - by El Forum - 07-07-2009, 08:06 AM
Gmail SMTP using SSL/TLS - by El Forum - 07-15-2009, 03:39 PM
Gmail SMTP using SSL/TLS - by El Forum - 07-29-2009, 03:26 AM
Gmail SMTP using SSL/TLS - by El Forum - 08-01-2009, 09:09 PM
Gmail SMTP using SSL/TLS - by El Forum - 08-02-2009, 10:11 PM
Gmail SMTP using SSL/TLS - by El Forum - 08-23-2009, 09:02 PM
Gmail SMTP using SSL/TLS - by El Forum - 09-22-2009, 10:38 AM
Gmail SMTP using SSL/TLS - by El Forum - 09-22-2009, 10:43 AM
Gmail SMTP using SSL/TLS - by El Forum - 01-27-2010, 12:41 AM
Gmail SMTP using SSL/TLS - by El Forum - 04-26-2010, 02:47 AM
Gmail SMTP using SSL/TLS - by El Forum - 04-26-2010, 02:54 AM
Gmail SMTP using SSL/TLS - by El Forum - 06-14-2010, 07:35 AM
Gmail SMTP using SSL/TLS - by El Forum - 09-15-2010, 02:48 PM
Gmail SMTP using SSL/TLS - by El Forum - 10-22-2010, 09:29 PM
Gmail SMTP using SSL/TLS - by El Forum - 03-19-2011, 05:03 AM
Gmail SMTP using SSL/TLS - by El Forum - 04-05-2011, 11:42 AM
Gmail SMTP using SSL/TLS - by El Forum - 05-02-2011, 10:43 PM
Gmail SMTP using SSL/TLS - by El Forum - 05-03-2011, 06:19 AM
Gmail SMTP using SSL/TLS - by El Forum - 09-15-2013, 05:06 AM
Gmail SMTP using SSL/TLS - by El Forum - 04-06-2014, 01:39 PM
Gmail SMTP using SSL/TLS - by El Forum - 05-05-2014, 03:59 AM
Gmail SMTP using SSL/TLS - by El Forum - 08-13-2014, 08:11 AM
Gmail SMTP using SSL/TLS - by El Forum - 08-13-2014, 08:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB