So I am using MUTT on my Ubuntu server where I want to email a particular file to the user once he enters his email address in a webpage (hosted on the server).
I am storing his response as a .json file in the server but now I want to send email to the email address provided by him.
As far as i know, MUTT has a command to send the email to a recipient
mutt -s "Mail Subject" [email protected] -a attachment.zip < mail_body.txt
What I want is, to get the username@domain from a file rather than hardcoding it.
Any leads on how to do this will be appreciated.
Thanks
Get recipient's email address from a json file in MUTT
135 Views Asked by harshithdwivedi At
1
There are 1 best solutions below
Related Questions in EMAIL
- how to send email from localhost using codeigniter?
- PowerShell EWS Save as for e-mails
- I want to develop an automated email application in asp.net with c#
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- Postfix - cannot connect to server to receive email
- PHPMailer send mail with array ( $_POST['email'] )
- Could Not Instantiate Mail Function - PHPMailer - With Attachments - Only Google Chrome
- encrypted email with entrust certificate is not opening with MS Outlook
- Disconnect Client connected to cgi application
- send a message using freemarker
- Using advanced ccs icons in email signatures
- How can I fetch emails on Android?
- Issue with email form and php script
- HTML Control Form with PHP - Errors
- javax.mail.getValidSentAddresses()
Related Questions in UBUNTU
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- EMACS-Live + Slime error at startup
- Vagrant - Ansible error installing Apache
- Openfire Smack Connection issue
- Error in Ruby on Rails on Ubuntu 14.04
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- C++ string and char* manipulation acting weird
- Data transfer between Ubuntu/Windows to network
- How to upgrade Node js version to 0.12.4 on Ubuntu
- How do I install Intellij on Ubuntu 15.04?
- Can't run django-admin startproject mysite (ubuntu, django.core.exceptions.ImproperlyConfigured)
- How to add apt key with --recv-keys instead of --recv?
- Express - Multiparty/Formidable unable to parse files greater than 100kb on Ubuntu. Callback of Parse is not called at all
- Unable start mongoose im in ubuntu. process crashes
- Tkinter application topmost, even over fullscreen
Related Questions in MUTT
- use formail to get last email of an email file
- How can I start an interactive HEREDOC from a script?
- How to configure Exim4 with Mutt?
- C program is interrupted during the execution of “system” function
- mutt destroys allignment of file alligned by column command unix
- mutt: reply email from console
- Mutt returns error from cmd line: Bad IDN in "from":
- Import local Apple Mail.app messages (.emlx) into mutt
- What's in your .muttrc?
- Change sender's address in mutt via console
- Mutt and Maildir format + procmail sorting
- Mutt Send Signature Hook
- Mutt alias for two fields
- beep remote tmux when job is done
- Is there a way to automatically e-mail after a long script is finished?
Related Questions in MSMTP
- PHP sendmail works but as a Cronjob fails: "sh: 1: /usr/sbin/sendmail: not found"
- smtp works on cli, but not in php script
- How to use msmtp with DKIM to send as other organisation
- What causes multiple Mails when using Cron with Bash Script
- using msmtp to send mail via php in docker container does NOT work in all cases
- Sending a mail with smtp on localhost in ubuntu?
- Can I select SSL/TLS version in msmtp?
- msmtp: GSSAPI authentication fails
- Docker PHP Apache Mail
- How to get debug stdout of command launched by mail();?
- Yum is not installing msmtp
- logging mail/spam from wordpress
- Sending e-mail from bash script
- Does msmtp client need sendmail and/or other services installed and running for it to work?
- Get recipient's email address from a json file in MUTT
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Turns out that I had to create an executable script for this job.
I stored the email to a variable by using
EMAIL=cat email.txtand then used this EMAIL variable as the recipient.