Solved

html email from an app

Posted on 2015-02-23
4
62 Views
Last Modified: 2015-03-05
Hello I am getting an app built and I want the user to be able to send an email from it with html formatting. Do I need to setup a separate mail server or will the app be able to use the users default mail settings
0
Comment
Question by:Ozwazza
  • 2
4 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40627399
Is this a mobile app or a web app?

Users don't typically send email from an app using their settings.  Instead, you send the mail through a server you control and it becomes a matter of setting the MIME type on the email correctly (text/html).
0
 

Author Comment

by:Ozwazza
ID: 40627430
It's a mobile app
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 40627432
Is the email something like a sharing function (which would use the local device mail application) or some other form?
0
 
LVL 37

Accepted Solution

by:
bbao earned 500 total points
ID: 40627493
it depends.

the most simple solution is to call the default mail program via the traditional convention like "mailto:username@domainname.com", but this way has no control on the content of email subject and message body.

the second approach is to send email by the app itself. obviously this way you need to know the user's credential to access his/her email box over SMTP protocol, and your app talks to the target email server and sends the message in HTML format using the commands defined in SMTP as well as SSL/TLS and StartTLS specifications. the developer needs to be familar with SMTP programming if you go to this approach.

it is also a bit annoying for the users as they need to provide their email credential, including email address, password, SMTP server name and supported procotols if necessary, individually to your app though they might have already given the sensitive info to the email client on the mobile device.

the third approach is vendor or device dependent as the app needs to directly call the email program over APIs to send rich-content emails in HTML format. it sounds great and simple but it requires open APIs provided by the email program (in most cases, the built-in email program on the device). it depends on the vendor to open the APIs for the OS, mail client and even programming languages.

does it make sense?
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question