SMTP Mail issue

[color=#242729][font=Arial,][size=2]I have used YiiMailmessage (http://www.yiiframework.com/extension/mail/) extension in my application and it smtp mail functionality was working fine. Now am move to AWS and mail server SES is using. The simples smtp mail is working but the extension is not working.[/size][/font][/color]

[color=#242729][font=Arial,][size=2]error shown as "Failed to authenticate on SMTP server with username "xxxxxxxxxxxx" using 2 possible authenticators"; [/size][/font][/color]

[color=#242729][font=Arial,][size=2]Note: the credentials are correct and I can even send through the code from http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-using-smtp-php.html[/size][/font][/color]