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
#!/usr/bin/php | |
<?php | |
print "\nscript started\n"; | |
//banner | |
//Usage: | |
//php your_script.php <server> <host> <db> | |
$banner = "Usage:\n"; | |
$banner .= "php {$argv[0]} -s <server> -h <host> -d <db>\n"; | |
$banner .= "Example:\n"; | |
$banner .= "php your_script.php -s myserver.tabrez.me -h localhost -d mydb \n"; |
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
https://api.pepipost.com/api/web.send.rest? | |
api_key=yourapikey | |
&subject=rawurlencodeWeekly statement dated 1st Jan 2013") | |
&fromname=rawurlencode("Info Stats") | |
&[email protected] | |
&[email protected] | |
&X-APIHEADER="ACC123,SE2532" | |
&tags="AccountDeactivation, Verification" | |
&content=rawurlencode(" Email content here") | |
&[email protected],[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
{ | |
"api_key":"yourapikey", | |
"email_details":{ | |
"fromname":"sender name", | |
"subject":"test email subject", | |
"from":"[email protected]", | |
"replytoid": "[email protected]", | |
"content":"<p>Hi [%NAME%], This is a test email sent using Pepipost JSON/Email API</p>" | |
}, | |
"X-APIHEADER": ["ACC123","SE2532"], |
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
{"message":"SUCCESS","errorcode": "0" ,"errormessage":""} |
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
{"message":"ERROR","errorcode": "0" ,"errormessage":""} |
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
https://api.pepipost.com/api/mail.send.json? | |
&api_key=yourapikey | |
&to[][email protected] | |
&toname[]=Destination | |
&[email protected] | |
&ccname=CCDestination | |
&[email protected] | |
&bccname=BCCDestination | |
&subject=Example_Subject | |
&text=testingtextbody |
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
--- | |
swagger: "2.0" | |
info: | |
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." | |
version: "1.0.0" | |
title: "Swagger Petstore" | |
termsOfService: "http://swagger.io/terms/" | |
contact: | |
email: "[email protected]" | |
license: |
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 | |
/** | |
* Steps to install Mandrill SDK | |
* curl -s http://getcomposer.org/installer | php | |
* php composer.phar require mandrill/mandrill | |
* Edit | |
* vendor/mandrill/mandrill/src/Mandrill.php | |
* //public $root = 'https://mandrillapp.com/api/1.0'; | |
* public $root = 'https://api.pepipost.com/api/1.0'; | |
*/ |
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 | |
/** | |
Usage: | |
IpAuth::doAuth(array( | |
'xxx.xxx.xxx.* ', | |
'yyy.yyy.yyy.* ', | |
'aaa.bbb.ccc.0/19', | |
'a.b.c.d', | |
)); |
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 TABLE `invitees` ( | |
`email` varchar(255) NOT NULL, | |
`name` varchar(255) NOT NULL, | |
`sent` tinyint(1) NOT NULL DEFAULT '0', | |
`remarks` text NOT NULL, | |
`group` varchar(15) DEFAULT NULL, | |
`lastname` varchar(255) DEFAULT NULL, |
OlderNewer