Yes, but how did it email the image? That is the trick!It then emailed the image to the address you typed in from whatever address they had setup in the app.
The way HaHaHa worked it would ask what address you want it sent to. You typed in the address. It then emailed the image to the address you typed in from whatever address they had setup in the app.
I think the easiest way would be to have a server side script (PHP, CGI, etc.) that you call from your app. Then you can send a mail, write a file, insert data into a DB or what you like...
This leads me to believe that it was done on a server side. Like it sent an HTTP request to a server with parameters on what to include in the email.
But if it magically knew what the FROM address was based on our email client, then there is a chance it was done all from within the phone.