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
{ | |
"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
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
#!/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"; |
NewerOlder