Phonegap and email or zip to server - android

I could use some help. I’m trying to create a phonegap app for iOS and Android. In this app you should be able to
type your user credentials (name, company, email and telephone number) and save it. This part in working for me.
Create a case where you type some text and take a number of pictures – hereafter you should press send and the text with the pictures will be sent to a predefined email address. – This part isn’t working for me
Is it possible to do that with Phonegap? And if yes then how do I do that?  If no, will it then be possible to zip the text and the pictures and then sent it to a server of some kind (ftp, dropbox ect?)
Best regards
Jacob

Yes, It is possible. You can send image's data (binary data) and text to server. At server end you can create images by using the image data and send the email as per your requirement.
You can also compress images by reducing image quality with the help of phonegap api as well and it will be helpful to minimize your request in size.
If you are using Ajax to send request to server then you should use cross domain option true.

Related

Post an image along with text in django restframework with flutter

I am creating a b2b e-commerce mobile application. I am using flutter as frontend and django for backend. I am stuck while sending a post request to django server with flutter. The case is I have two types of user. They are seller and buyer. The seller has to post product in the app. Model field for product are title, description, price and image. I created post method in django rest framework and it worked while checking through postman. But I am having hard time sending image through flutter. I used image picker to get the image. I searched for many things but could not figure out what to do. I found articles and videos posting only image at a time but i want to send image along with other text field. How can i do so??
Help me find a solution.
It is better that you upload your selected image with multipart and separate api, but if you want send image with other info , you must, first decrease quality of image until request time was decreased(don't receive timeout api), and also use base64 for this.
Key word for searching for more info, upload image with base64

Transfer big string to another device

In my app I want to send data in string to another device.
What i have now: sending data via QR-code with help of installed messengers (user can pick any like skype).
But it has a limit - nearly 4000 chars.
To clarify: I want to make a system, that can send some info on any distance in some way and receive and parse it next.
Any ideas?
I think you should create a .txt file with that text and you can share it with any messenger.
I think setting up the server is the best solution according to me. Moreover, you can use Firebase database or firebase storage to store your images or stirng. This will allow you to fetch any type to data from anywhere in the world

How to send image in email body Android

I am working on an android application which sends email (texts and images) to gmail, yahoo and other mail services. The version i am using is android 2.2 and it is compatible with 2.2 and above. I want to send images in the mail compose body section. I have tried doing so but whenever I sent mail either the images won't come or a small box is displayed in the mail body. I have searched many websites but did not get enough help. Please help me out with this. I don't want to send the images as an attachment. I want to send both text and images in the mail compose body itself. Looking forward to a quick and positive response from you guyz as soon as possible
The solution I would use if i don't want to send the images as attachments, is to upload the images to some location on a webserver, then put the images in the email body as image html controls with src pointing to the images urls on the web server.

sending large amount of information via android email client

I am writing an application that on error sends some information to support using android internal mail client.
I have noted that the message is trimmed to 9000 characters (including spaces).
how can I send larger amount of information?
I am thinking about exporting the information to a fie on SD card and then send it as attachment can anyone tell me how to do this?
thanks,
A
You need to save it to storage and then attach it. There's an example here:
How to send/open email attachments from android app?

How to send an email with an attachment via AIR for Android?

I am making an Android app with Flash CS5. I am trying to send information from the app to the user with an E-Mail message. The information is all text, however, just plain text isn't enough. I'd much prefer using HTML formatting or some other way to better show it to the user.
Is there a way to send an attachment or at least include HTML formatting inside the body of an e-mail sent from AIR?
Right now I can send an E-Mails just fine with navigateToURL(newURLRequest("mailto:ThisIsAFakeName#gmail.com));"
I can also include a subject and body for the E-mail. However that is all plain text, and not exactly what I'm looking for.
Thank you in advance for any help!
SMTPMailer should work. as far as i know it's the most common way for AS3 developers to send email attachments with Flash.

Categories

Resources