I’d like to send images from a computer (OSX) to a phone (android) and send mail (using the gmail API) with the image attached.
Sending image from a computer to a phone with OF is pretty straightforward.
Sending a mail with the gmail api in java is also straightforward.
Is there a way to send a mail with OF on an android platform ?
I want the user to enter his email and press enter. The mail with text and image attached must be automatically prepared based on the last image received.
And I am not sure it worth to spend your time even in Java side, as the phone user can send any picture simply by tapping on it and selecting the option “share via email”.
The picture is sent to an OF app running on the phone. I need this as I haven’t find a way to send an image from OF (running on my computer) to a java app running on the phone.
The share functions must be implemented in the OF app.
and
I don’t want “share functions” but a mail already prepared with specific text contents (“here is the picture taken from blablabla at the event blablabla …”)
@Rancs
I guess ofxNetwork can send the image to the phone. I’ve used this addon many times from computer to computer, but not from computer to android phone.
Unfortunatly it’s big time now. I’ll give it a try in february.
Hey all, I’m happy to help you get ofxSMTP working if you run into problems. It has two modes – one for very simple emails – and one for attaching any MIME-type attachments that you like. One of the examples shows you how to send an image. It also works with secure smtp and has specific configuration files tested with gmail (which is why I originally wrote it). Sometime soon, I’ll refactor it a bit and add doxygen docs, but for the moment it should be working pretty well.
I was inspired by a code of Theo Watson in this post
Actually, every time I send an image i get an error in the LogCat of Eclipse saying that it can’t create the client, but I got the image on the android !!
@bakercp : actually it takes time to send a big image (which was my purpose at the start) from the computer to the tablet. So, I have change my mind. I’ll post the mail from my computer, directly in the OF app, and use the tablet only as a tool for the user with a smallest image as a reference. I’ll try your addon
Actually when you’re using a gmail smtp server there is an issue.
I f you enter a recipient email address that is not a real email address the thread hang on and wait.
There is no problem with the smtp server of ovh, though.
To check if an email address got a chance to be a real one you can use
If some is reading this mail kindly give some sort of suggestion how should I fix this issue . Every four to five days my Gmail Account get blocked showing an temporary error and still I am confused to how to figure it out. If anybody know this solution kindly reply me in this thread.