Sending emails via ActionScript 3

HomeForumsDoes Flash?Sending emails via ActionScript 3

This topic has 2 voices, contains 3 replies, and was last updated by  Matan Uberstein 200 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
October 31, 2011 at 7:41 am #739 Quote

Tahir Ahmed
<p>Hi,</p>
<p>Orite I am not such a guru in Flash and usually it takes quite a lot of time for me to understand even the simplest of concepts. So please ignore my ignorance and stupidity. So I am hoping that someone here will help me understand this whole idea of POP3, IMAP, this-and-that etc terminologies and my confusion with them. Please go easy on me.</p>
<p>My question basically is that is there any way Flash (as plugin and as AIR) can send emails WITHOUT using any server side solution or dependancy. I know it sounds like a really stupid question; but hey, read the whole para I wrote above :D</p>
<p>AS3Mailer, by the looks of it, also uses PHP to actually send emails, right?.</p>
<p>EDIT: I found these but having trouble understanding them and how they work:</p>
<p>- AS3MailLib – http://code.google.com/p/as3maillib/<br />
- SMTP Mailer – http://www.bytearray.org/?p=27<br />
- ActionScript 3 Mail – http://code.google.com/p/airxmail/
</p>
October 31, 2011 at 8:09 am #874

Matan Uberstein

Hi Tahir,

Firstly, thanks for posting and there is no such thing as a stupid question. :) In-fact, I believe this is a very important question.

Yes, AS3Mailer uses the server to send the actual mail, but AS3Mailer is different from the ones you posted. It doesn’t need to authenticate with the server, because it’s only one way communication. AS3Mailer can only send an instruction to the server to send the mail, there is no verification that the mail sent etc. AS3Mailer was build for simple “send-to-friend” functionality from Flash, nothing more.

When it comes to the other, they all seem to have an implementation of IMAP/SMTP sockets etc. Each lib needs to go through a authentication with with mail server (login) to be able to access/send emails. So if you build a client with one of these libs, the client you write doesn’t actually send the mail. It also just sends an instruction to the server to send the mail, but in a secure way with much more functionality. As in, you can access previously sent mail (because you are logged into your account). When a socket connection is present two way communication is possible, e.g. the server can tell the client(s) when there are new emails (push mail), etc.

Think about Outlook, Outlook can’t send emails without a server, nor can your phone, tablet, etc. But, if they are all logged into the same account, they all stay in-sync with each other.

So sending emails without an server isn’t currently possible (to my knowledge), the closest you’ll get to a “stand-a-lone” email program would be if you bundle an server instance with the client. :D

I’m interested to know what your plans are with building an AIR email client. :)

Thanks again!

October 31, 2011 at 9:15 am #875

Tahir Ahmed

Hi Matan,

Thanks for the detailed answer. Much appreciated.

Your answer and a bit more digging from my end has cleared my confusions re AS3Mailer surely and may be; in my case, AS3Mailer would work just fine.

The question that I got from my boss was if we can send emails using browser Flash without going through any servers and thus without putting any load on them? (We seem to have some issues with the development servers at the moment) So if I propose to them that as long as we host the PHP backend that you’ve bundled with AS3Mailer to any other working server; it should all be fine.

P.S. How do I send attachments via AS3Mailer?

Thanks again.
- Tahir.

October 31, 2011 at 10:05 am #876

Matan Uberstein

Ok, great stuff. :)

Unfortunately AS3Mailer can’t do attachments just yet, I read up about it now and it doesn’t seem difficult to implement. So I’ll be adding it to the lib at some point. I just don’t have the time now, sorry man. You are welcome to for and implement, if you want :)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.