sending email using Xampp |
can someone help me with this
This is my code: PHP Code: public function send_get()
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', );
12-29-2017, 06:47 AM
(This post was last modified: 12-29-2017, 06:48 AM by jreklund. Edit Reason: Added syntax highlight )
@arugama: Gmail are picky on how you send your new lines and you may need to enable "Unsafe applications".
https://support.google.com/accounts/answ...0255?hl=en PHP Code: $config = [ @XtreemDeveloper: Your first example are wrong. It's port 587 and you need to set smtp_crypto to tls.
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 routinessl3_get_server_certificate:certificate verify failed 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()
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"
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 What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |