Amazon Simple Email Service PHP example

finally Amazon release an affordable bulk mail service. Amazon Simple Email Service (Amazon SES) (beta). this is very useful.

As far as pricing goes, Amazon will charge fees for the number of e-mails sent and data transfers. Pricing for SES is US$ 0.10 per thousand messages sent. A customer may also send 2,000 e-mail messages per day free of charge when these e-mails originate from Amazon EC2

here is the open source php class

http://sourceforge.net/projects/php-aws-ses/


Updates
===========

sample code

step 1
include and make a new instance of class

include_once('ses.php');
$con=new SimpleEmailService("your access key","your secretKey ");

step 2
if you are using ses first time you need to add a verified email adders to send mail from. following code will help you to add and verify email address

include_once('ses.php');
$con=new SimpleEmailService("your access key","your secretKey ");
$con->verifyEmailAddress('anilmathewm@mail.com');

once you run the code you will get a mail from amazon ses service to verify the email address by clicking a link.once you verify the code you can use the email address as sender email

step 3

if you want to check the verified email address then use the following code.

include_once('ses.php');
$con=new SimpleEmailService("your access key","your secretKey ");
$con->listVerifiedEmailAddresses();

step 4

how to send an email with Amazon Simple Email Service


include_once('ses.php');
$con=new SimpleEmailService("your access key","your secretKey ");
$con->listVerifiedEmailAddresses();

$m = new SimpleEmailServiceMessage();
$m->addTo('anilmathewm@mail.com');
$m->setFrom('anilmathewm@mail.com');
$m->setSubject('Hello, world!');
$m->setMessageFromString('This is the message body.');
$con->sendEmail($m);


NOTE:

most impotent


If you have not yet requested production access to Amazon SES, then you will only be able to send email to and from verified email addresses. For more information, go to the Developer Guide.

hire an actionscript developer from india

Are you looking for a falsh actionscript developer for hire. then i'm ready to work :) if any one need an actionscript + php developer please let me know i'm waiting for interesting and innovative new projects

Actionscript 3.0 PSDParser

Can you imagine PSD file can Parser with actionscript. if you think no it is possible with PSDParser. actionscript PSDParser is a great class it can read PDS files its cool. bellow is the sample code


function loadPSDFile( url:String ):void {
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener( Event.COMPLETE, onCompleteLoad );
loader.load( new URLRequest( url ) );
}
function onCompleteLoad( e:Event ):void {
var loader:URLLoader = e.target as URLLoader;
var parser:PSDParser = new PSDParser( loader.data );
var layers:Array = layerAndMask.layers;
var pixels:Array = layerAndMask.pixels;
var imageData:PSDImageData = parser.imageData;
var bd:BitmapData;

if ( layers.length > 0 ){
for ( var i:int = 0; i < layers.length; ++i ) {
var layer:LayerStructure = layers[i];
var pixel:LayerPixelData = pixels[i];
bd = pixel.getImage();
}
} else {
bd = imageData.getImage();
}
}

openCV actionscript 3.0

i always dream about to develop a face recognition app in flash. today i find out a lib that's very cool. OpenCV Actionscript port is good to play with only the face detection part working properly. i tried other opencv object detection samples but they fail to detect. anyway its a good start for me. i'm waiting for new versions of this great lib. bellow is the example i tested.

ActionScript 3 Preloader video tutorial

how to create a preloaded in actionscript 3.0

actionscript 3.0 button 3.0 tutorial

following tutorial help actionscript 3.0 beginners and actionscript 2.0 developers new to actionscript 3.0 to understand how actionscript 3.0 buttons works, how to attach a button to actionscript 3.0 events.

how to create a screen share application in flash

this is a simple example how to create a pure flash based screen share application with flash ide and actionscript 3.0

sample urls
Publisher: http://www.actionscript.co.in/publisher.html
Viewer : http://www.actionscript.co.in/viewer.html

Hope you guys enjoy screen share :)


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer