Abishek Muthian

RSSEmailMastodonWheelchairBlueskyNewsletterTwitterGitHubDribbbleLinkedInFacebookInstagramYouTubePinterestReddit icon

Send and receive WhatsApp messages through email

Posted at — Jan 12, 2021 by Abishek Muthian

Send and Receive WhatsApp messages through email featured image

warning: Sending and receiving messages from WhatsApp through email would bypass the end-to-end encryption and may leak data to the email providers (Check update). If your reason for reading this is for better data security, then this is may not the right approach.

This approach can help those who are looking to isolate WhatsApp to reduce hardware finger-printing, asymmetric association, receive non-sensitive messages.

Requirements

  1. Android instance

    • Android x86 with ARM emulation on bare metal [Recommended] or VM.

    (or)

    • Physical android device.

    (or)

    • Android container e.g. Anbox [Not recommended, might work in future with support for notifications and background apps].
  2. Tasker android app.

  3. Auto Notification android app.

  4. MailTask android app.

  5. K-9 Mail.

Setup Mail

I set my mail account using IMAP & SMTP in K-9 Mail and in Mail Task.

Enable permissions for Tasker

Tasker requires permissions to read notifications, exception in doze mode and Write Secure Settings Permission. Tasker will inform as and when these permissions are needed when setting up the app.

Since I used blissOS, I set 'Write Secure Settings Permissions' through the console [Alt+F1].

Tasker profiles

I set up two tasker profiles for this automation, 'WhatsApp to Email' and 'Email to WhatsApp'. Tasker profiles for Send and Receive WhatsApp messages from email

WhatsApp to Email

Tasker profile receiving WhatsApp notification

  1. Select 'Notification' event.
  2. Select WhatsApp as Owner Application.

Selecting WhatsApp as owner application for notification in WhatsApp

  1. Select 'Send email' Action of Mail Task.

Select 'Send email' Action

  1. a. Configure 'Send email' task.

Configure 'Send email' task

  1. b. Configure MailTask.

Configure MailTask

Email to WhatsApp

Tasker profile receiving email notification

  1. Select 'Autonotification Intercept' event.

Select 'Autonotification Intercept' event

  1. a. Configure Autonotification by selecting K-9 Mail from apps.

Configure Autonotification by selecting K-9 Mail from apps

  1. Select 'Contact Via App' task.

Select 'Contact Via App' task

  1. a. Configure 'Contact Via App' task.

Configure 'Contact Via App' task

Demo

Send and receive WhatsApp messages through email, why app streaming could be a thing!
Watch the video on YouTube by clicking on the image.

Discussion

Discuss this with me on Twitter.

Update:

Encryption (update)

Using K-9 Mail's PGP encryption we can achive end-to-end encryption if both our email IDs used for whatsapp communication uses K-9 Mail configured with PGP.

Note: I'm not using this method in the above demonstration.

Update Log

March 2021: Added note on encryption.

Newsletter

I strive to write low frequency, High quality content on Health, Product Development, Programming, Software Engineering, DIY, Security, Philosophy and other interests. If you would like to receive them in your email inbox then please consider subscribing to my Newsletter.