This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* https://documentation.mailgun.com/en/latest/user_manual.html#email-validation. | |
*/ | |
use Mailgun\Mailgun; | |
$mgClient = new Mailgun('YOUR_PUBLIC_API_KEY'); | |
$responce = $mgClient->get('address/validate', | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mg = Mailgun::create('YOUR_PRIVATE_API_KEY'); | |
$mg_domain = 'mail.company.com'; | |
$mg_response = $mg->messages()->send($mg_domain, | |
[ | |
'subject' => 'Subject here', | |
'from' => 'Company Support <[email protected]>', | |
'to' => 'John Doe <[email protected]>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /.idea | |
/.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /.idea | |
/.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a flat list of id (respecting tree display order). | |
* Assumes that $table is keeping tree structure using "id", "parent_id", "display_order" fields | |
* @param string $table name of the table keeping tree data | |
* @param integer $start_node_id the id of the start node | |
* @param boolean $include_start_node include (or not) the id of the start node in returning result | |
* @param string $f_id name of "id" field | |
* @param string $f_parent_id name of "parent_id" field |