Solved

html email from an app

Posted on 2015-02-23
4
64 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

738 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