Solved

html email from an app

Posted on 2015-02-23
4
65 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 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