{"id":21937852,"url":"https://github.com/defro/codeigniter-mobiledetect","last_synced_at":"2025-03-22T14:25:43.466Z","repository":{"id":148974547,"uuid":"82497117","full_name":"defro/codeigniter-mobiledetect","owner":"defro","description":"CodeIgniter package dealing with MobileDetect","archived":false,"fork":false,"pushed_at":"2017-02-19T23:34:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T13:49:29.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-19T23:26:29.000Z","updated_at":"2017-02-19T23:38:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"da418075-4030-47fa-afa5-747739239b74","html_url":"https://github.com/defro/codeigniter-mobiledetect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defro%2Fcodeigniter-mobiledetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defro%2Fcodeigniter-mobiledetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defro%2Fcodeigniter-mobiledetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defro%2Fcodeigniter-mobiledetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defro","download_url":"https://codeload.github.com/defro/codeigniter-mobiledetect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244968606,"owners_count":20540155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T01:26:08.575Z","updated_at":"2025-03-22T14:25:43.460Z","avatar_url":"https://github.com/defro.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"A CodeIgniter compatible email-library powered by PHPMailer\n===========================================================\n\nVersion: 1.2.19  \nAuthor: Ivan Tcholakov \u003civantcholakov@gmail.com\u003e, 2012-2017.  \nLicense: The MIT License (MIT), http://opensource.org/licenses/MIT\n\nThis library is intended to be compatible with CI 2.x and CI 3.x.\n\nTested on CodeIgniter 3.1.3 (January 9th, 2017) and PHPMailer Version 5.2.22 (January 5th, 2017).\n\nInstallation\n------------\n\nDownload this package and uncompress it within `application/` directory of your CodeIgniter site.\n\nPHPMailer Links\n---------------\n\nhttp://phpmailer.worxware.com/  \nhttps://github.com/PHPMailer/PHPMailer\n\nSetting It Up (An Example)\n--------------------------\n\n* Edit the file `application/config/email.php` which contains the default settings for the email engine. For a Gmail account, the setting might be something like this:\n\n```php\n\u003c?php defined('BASEPATH') OR exit('No direct script access allowed.');\n\n$config['useragent']        = 'PHPMailer';              // Mail engine switcher: 'CodeIgniter' or 'PHPMailer'\n$config['protocol']         = 'smtp';                   // 'mail', 'sendmail', or 'smtp'\n$config['mailpath']         = '/usr/sbin/sendmail';\n$config['smtp_host']        = 'smtp.gmail.com';\n$config['smtp_user']        = 'yourusername@gmail.com';\n$config['smtp_pass']        = 'yourpassword';\n$config['smtp_port']        = 587;\n$config['smtp_timeout']     = 30;                       // (in seconds)\n$config['smtp_crypto']      = 'tls';                    // '' or 'tls' or 'ssl'\n$config['smtp_debug']       = 0;                        // PHPMailer's SMTP debug info level: 0 = off, 1 = commands, 2 = commands and data, 3 = as 2 plus connection status, 4 = low level data output.\n$config['smtp_auto_tls']    = false;                    // Whether to enable TLS encryption automatically if a server supports it, even if `smtp_crypto` is not set to 'tls'.\n$config['smtp_conn_options'] = array();                 // SMTP connection options, an array passed to the function stream_context_create() when connecting via SMTP.\n$config['wordwrap']         = true;\n$config['wrapchars']        = 76;\n$config['mailtype']         = 'html';                   // 'text' or 'html'\n$config['charset']          = null;                     // 'UTF-8', 'ISO-8859-15', ...; NULL (preferable) means config_item('charset'), i.e. the character set of the site.\n$config['validate']         = true;\n$config['priority']         = 3;                        // 1, 2, 3, 4, 5; on PHPMailer useragent NULL is a possible option, it means that X-priority header is not set at all, see https://github.com/PHPMailer/PHPMailer/issues/449\n$config['crlf']             = \"\\n\";                     // \"\\r\\n\" or \"\\n\" or \"\\r\"\n$config['newline']          = \"\\n\";                     // \"\\r\\n\" or \"\\n\" or \"\\r\"\n$config['bcc_batch_mode']   = false;\n$config['bcc_batch_size']   = 200;\n$config['encoding']         = '8bit';                   // The body encoding. For CodeIgniter: '8bit' or '7bit'. For PHPMailer: '8bit', '7bit', 'binary', 'base64', or 'quoted-printable'.\n\n// DKIM Signing\n$config['dkim_domain']      = '';                       // DKIM signing domain name, for exmple 'example.com'.\n$config['dkim_private']     = '';                       // DKIM private key, set as a file path.\n$config['dkim_private_string'] = '';                    // DKIM private key, set directly from a string.\n$config['dkim_selector']    = '';                       // DKIM selector.\n$config['dkim_passphrase']  = '';                       // DKIM passphrase, used if your key is encrypted.\n$config['dkim_identity']    = '';                       // DKIM Identity, usually the email address used as the source of the email.\n```\n\n* Notes:\n\nPHP openssl module should be enabled if encrypted SMTP access is required;  \nSet $config['useragent'] as 'PHPMailer' if the original 'CodeIgniter' engine fails for some reason.\n\n* Within a controller paste the following code for testing purposes:\n\n```php\n$this-\u003eload-\u003elibrary('email');\n\n$subject = 'This is a test';\n$message = '\u003cp\u003eThis message has been sent for testing purposes.\u003c/p\u003e';\n\n// Get full html:\n$body = '\u003c!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"\u003e\n\u003chtml xmlns=\"http://www.w3.org/1999/xhtml\"\u003e\n\u003chead\u003e\n    \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=' . strtolower(config_item('charset')) . '\" /\u003e\n    \u003ctitle\u003e' . html_escape($subject) . '\u003c/title\u003e\n    \u003cstyle type=\"text/css\"\u003e\n        body {\n            font-family: Arial, Verdana, Helvetica, sans-serif;\n            font-size: 16px;\n        }\n    \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n' . $message . '\n\u003c/body\u003e\n\u003c/html\u003e';\n// Also, for getting full html you may use the following internal method:\n//$body = $this-\u003eemail-\u003efull_html($subject, $message);\n\n$result = $this-\u003eemail\n        -\u003efrom('yourusername@gmail.com')\n        -\u003ereply_to('yoursecondemail@somedomain.com')    // Optional, an account where a human being reads.\n        -\u003eto('therecipient@otherdomain.com')\n        -\u003esubject($subject)\n        -\u003emessage($body)\n        -\u003esend();\n\nvar_dump($result);\necho '\u003cbr /\u003e';\necho $this-\u003eemail-\u003eprint_debugger();\n\nexit;\n```\n\nLoad the corresponding page, executte this code. Check whether an email has been sent. Read the error message, if any, and make corrections in your settings.\n\nNote, that most of the SMTP servers require \"from\" address of the message to be the same as the address within $config['smtp_user'] setting.\n\nAt the end remove this test.\n\nThe API of this library is the same as the original Email API. Read the CodeIgniter's manual about [Email Class](https://www.codeigniter.com/user_guide/libraries/email.html).\n\nReadings\n--------\n\n* http://bisakomputer.com/membuat-pengiriman-email-terjadwal-dengan-framework-codeigniter/ - \"Membuat Pengiriman Email Terjadwal dengan Framework CodeIgniter\" by Arif Rachman, in Indonesian language.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefro%2Fcodeigniter-mobiledetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefro%2Fcodeigniter-mobiledetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefro%2Fcodeigniter-mobiledetect/lists"}