send an email with content that can not be edited - android

I make an application that allows users to send an email. when i use the usual procedure to send an email with intents the user is redirected to gmail app, and he can edit the mail. I would like to prevent the user from modifying the content of the email. would anyone know how to do it please?

This is too long for a comment, so I am posting the answer. The short answer is that if you rely on the user's phone as the email client, then there is no guaranteed way to prevent the user from editing the email message, because the Gmail app is out of your control. So, what you should instead do here is to use a server side webapp to send the message instead. As an example, I have used an email service (e.g. HawkHost) on the server side behind an Android app to send the message. With this setup, you can completely control what message gets sent from the user or on behalf of the user.

Related

Android send shopping card order e-mail with attachments without using intent

I've developed an Android app with a self developed shopping cart. At the end of the purchase process I want to send an automatic email to the store owner in order to proceed with order.
Till now I used an email intent in order to force the user to send an email by themselves but the store owner got too many complaints from the users. So now I'm searching for another solution in order to do it in the background.
I've searched around but didn't find a proper solution. The email should contain a bit of text information along with 1-n attachments from users phone.
Do you have any suggestions?
Proper solution would be to send it through web service. But if you want to do it through email in background of your app you must provide possibillity to sign in to email address and send it, it would be like creating another email client.
Think about creating web service to which you will send these orders it is way better solution than sending emails from background of your app.

Tracking if email was sent in another app

I am developing an app where the user can share via email (GMail app) or sms. Both methods will launch an external app that will do the work.
Since I am implementing tracking analytics that will be triggered when the email/SMS is sent, my question is how to send back or detect the status of sent email from GMail to my app. I know that it may sound like a stupid question, but I was wondering if this is possible.
how to send back or detect the status of sent email from gmail to my app
There is no requirement for the user to send the email, let alone for any email app (Gmail or otherwise) to let you know if the email was sent.
If the email is being processed automatically on some server, the server could use GCM or similar techniques to send a message to the device and your app indicating that the email was received.

Send email automatically and append string before sending

I have an Android app which has an ability to genereta some reports and gives user an option to email those reports. After chooser opens and user picks Gmail to send an email, gmail app opens and user can see a message. It would be ideal if user would not be able to see a message becouse I would like to append a little commercial below a message and would not like to allow user to delete that small commercisl. For example:
Email body:
"Some generated report.
This report was generated by XYZ APP. Download app and create your own reports!"
The part which says which app generated report should be hidden somehow so user can't see it and that small advertisement is send together with the real message.
How can I accomplish that? Thank you!
How can I accomplish that?
Send the email yourself (JavaMail, via your Web server, etc.). If the user is sending the email, via the user's own email client and the user's own email account, the user has the right to see the message and edit it as desired.

obtain a callbacks of sending mail

I am developing an application that needs to send inside an ordinary email.
The mail must be sent with the account set up on your smartphone. Through Intent.ACTION_SEND sending the mail goes smoothly.
Is there a way to know if the email was sent and if the sending has been successful?
The mail must be sent with the account set up on your smartphone
You assume the existence of such an account, and this is not a valid assumption. Bear in mind that just because they may have a Google account (e.g., for use with the Play Store), they may not be using Gmail, and there is nothing forcing users to use their Android device for any other email.
Is there a way to know if the email was sent and if the sending has been successful?
No.
ACTION_SEND does not send email. ACTION_SEND lets the user share content of a specified MIME type. Whether the user chooses to send via email, who they send the email to, whether they change the content, whether they send the email at all, and so forth is up to the user, and your app is not informed of any of this.

Send email from app

I have developed an app where the user can enter an email address in the settings and on some specific event an email is sent to this address (as a notification).
The problem is: what is the best way to send an email from an app?
The best way would be to send an email from the google account of the app user but that isn't possible, right?
What I'm doing now is to do a HTTP post and send an email through php. This works great but since the app is used by many people the mail sending always gets disabled due to mass mail sending... What can I do?
Do I really need to host my own server?
Thanks for your answers.
I find sending emails to user without his interaction something similar to SPAM. I always choose the easiest and IMO honest alternative: just populate an android.content.Intent.ACTION_SEND intent with calculated data and let user decide wether send the email or not always.

Categories

Resources