![]() |
sending email using Xampp - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: sending email using Xampp (/showthread.php?tid=69638) |
sending email using Xampp - arugama - 12-28-2017 can someone help me with this This is my code: PHP Code: public function send_get() RE: sending email using Xampp - XtreemDeveloper - 12-28-2017 Use another SMTP If you not using ssl in smtp host than you can use 567 smtp port $config = array( 'protocol' => 'smtp', 'smtp_host' => 'smtp.gmail.com', 'smtp_port' => 567, 'smtp_user' => '[email protected]', 'smtp_pass' => 'correo', ); If you are using ssl in smtp host than you can use 465 smtp port $config = array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.gmail.com', 'smtp_port' => 465, 'smtp_user' => '[email protected]', 'smtp_pass' => 'correo', ); RE: sending email using Xampp - jreklund - 12-29-2017 @arugama: Gmail are picky on how you send your new lines and you may need to enable "Unsafe applications". https://support.google.com/accounts/answer/6010255?hl=en PHP Code: $config = [ @XtreemDeveloper: Your first example are wrong. It's port 587 and you need to set smtp_crypto to tls. RE: sending email using Xampp - arugama - 12-29-2017 i made the change, and this happen A PHP Error was encountered Severity: Warning Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines ![]() Filename: libraries/Email.php Line Number: 2063 Backtrace: File: C:\xampp\htdocs\rest\application\controllers\Email.php Line: 69 Function: send File: C:\xampp\htdocs\rest\application\libraries\REST_Controller.php Line: 742 Function: call_user_func_array File: C:\xampp\htdocs\rest\index.php Line: 315 Function: require_once the new configuration PHP Code: public function send_get() RE: sending email using Xampp - jreklund - 12-29-2017 https://curl.haxx.se/docs/caextract.html Download cacert.pem and place it somewhere on your computer. Open your php.ini file and add the following: Code: openssl.cafile = "C:\path\to\your\file\cacert.pem" RE: sending email using Xampp - arugama - 12-29-2017 awesome, work like a charm RE: sending email using Xampp - InsiteFX - 12-29-2017 You can also use your own internet providers smtp server, I'm on Comcast and I use their's. It's a good idea to setup your smtp in the php.ini file under the php directory. If your on a Windows system you can use this Email Tool. Test Mail Server Tool On Ubuntu you can install and use this Tool. swaks – SMTP test tool |