Desktop/homepage shortcut to send pre-built email in one click


Question

I'm trying to set up a way to send a pre-defined gmail email to a pre-defined recipient with a single tap from the home screen. Essentially, I'm going to use emails to trigger macro events on another device, and as I will be regularly sending these emails, (sometimes multiple times per day), I do not want to have to continuously recreate them manually. I want something like Compose Email Shortcut, only I would like the recipient, subject and body to all be filled in already and for the email to be sent as soon as the shortcut is pressed. Email Yourself is the closest thing I could find to this, but that app is rather expensive for what should be a pretty basic function, and it still requires the user to press send after the shortcut is pressed.



Any help/advice appreciated...


Answer

Automation is the preferred option. Many apps are available. I prefer using MacroDroid , since it is free (upto 5 macros and you need only one macro for your need)
and easy to learn.




  • Give the app all permissions it asks for and from Settings →Email settings, enter your Gmail account details.


  • Create a macro as shown below (use + to add triggers /actions). In the send mail action fill in details of recipient and the text of mail. In pop up action enter text that you want to be displayed when you create a widget (explained in next step). Save the macro with any name.




enter image description here



(click to enlarge)




  • From the widgets drawer of your launcher drag and drop MacroDroid Shortcut widget on top your screen. On the menu that opens up, assign it to the macro you saved.



Tap the shortcut to send the mail. I've tested and it works fine.



enter image description here



(click to enlarge)



You may edit the icon of widget to a custom one and add more bells and whistles by way of adding a sound action, scheduling to send mail at fixed times /days, or whatever you want ( endless possibilities)
later


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes