PHPMailer – Amazon SES Integration
Hello World,
This time we have come up with a very easy to use solution to integrate Amazon SES with everyone’s favorite PHPMailer library and you are free to use it anyway you want. [ Thanks to the power of GNU LGPL license ] The solution is a slightly modified version of PHPMailer with an Amazon SES backend.
Note that, this is a completely different implementation than Aaron Parecki’s one in GitHub. One of our clients wanted to have an Amazon SES backend with minimal extra dependency, least amount of required extra syntax and complete code compatibility with PHPMailer. So, we implemented part of Amazon SES APIin PHP without using the AWS SDK and modified PHPMailer-5.1 slightly to suit our need. Also, the error messages produced are a bit more verbose. This worked out to be quite useful as lot’s of things, especially address verification requirement can give a lot of pain to Amazon SES users.
Warning: You must have php5.0 or higher to use it.
Replacing your current phpmailer:
Just download the following package and extract and replace your current “phpmailer” folder with it:
Edit: This bugfix release fixes two bugs, one related to improper DKIM signing and other related to ignoring ‘cc’/’bcc’ headers. Thanks to Antonello and Manish for the bug reports.
Here’s an example to use the Amazon SES backend:
If you need commercial support integrating it with your project, contact us.
'Web Service > AWS' 카테고리의 다른 글
EC2로 git 서버 구축하기 (0) | 2013.03.04 |
---|---|
AWS PHP SDK 설치과정(S3 파일 업로드 등) (0) | 2012.11.05 |
postfix를 이용하여 메일을 다른 계정으로 포워딩하기 (0) | 2012.08.20 |
디스크 채우기 테스트(대용량 파일 생성) (0) | 2012.08.15 |
[mhddfs]여러 disk 하나로 mount 하기 (0) | 2012.08.14 |