-1

I would like to send an email with attachment directly from my app without opening an email client on user's device. How do I do it?

Yury Fedorov
  • 14,508
  • 6
  • 50
  • 66

1 Answers1

0

You may do this using Gmail authentication, for example.

You need to have an account from which the emails will be sent. In other words, an SMTP server that you have access to and a permission to use.

To send an email with attachments, see this question. You will need to modify the code that you got in Gmail authentication, and add multipart data to the message.

Community
  • 1
  • 1
Yury Fedorov
  • 14,508
  • 6
  • 50
  • 66