开发者

Can I send emails with Actionscript 3.0, or do I need to use PHP?

i wanted to know t开发者_StackOverflowhat using actionscript, is it possible to send email and create a front end in flashbuilder 4(flex), everywhere i see php being used for mails, is it possible?


best practice would be to create a server side service to handle sending the email and having the Flex frontend communicate with that service.

There is however a library for as3 called as3maillib that you might want to checkout. I personally would recommend keeping it server side.


Although the common practice is to send email using server side scripts, it is possible also in plain as3 using socket connections. There are even some libraries for this, like as3maillib and SMTP Mailer.

Edit: The SMTP Mailer page seems to be down at the time of writing, but you can see it through google cache...


Ideally if you are writing an AIR application, you go for some of the libraries mentioned in above answers and send mails directly form flex. For security reasons it is always a better idea to send mails form the server side component for web based flex applications. SMTP is not secure and there are many security holes for hackers if you directly send the content over to mail server from clients browser using Flex or any other method, more over flex might not allow you to do some of the cross server interactions (be prepared to face them)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜