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
- Email Verification python eror
- Invalid format for email address in WordPress on Azure app service
- How to create an JSOUP element from byte array image (Load from Database)
- How can I look this email address
- Gsheet - Automatically send an email using a date & time in a Cell
- Install Postfix Mail Server
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- How to make my form send the submitted info to my email
- Cpanel filter encoding utf-8?
- Thunderbird Importing Emails imports 0 emails
- Python & Django web app - auto emails not sending
- Allowing any member of a dynamic group to send as from a shared mailbox
- How to fix "search in state AUTH" errror
- Rewriting CSS in MSO conditional comment doesn't work
- Sendgrid attachments in C#
Related Questions in UBUNTU
- Error: local variable 'bramka' referenced before assignment
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Can't connect to local postgresql server from my docker container
- How to install libfuse2 on Ubuntu 22.04
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Can anyoone help me with this problem while trying to install hadoop on ubuntu?
- Ubuntu wsl2 in windows, my /etc/fonts/fonts.conf keeps reloading
- psutil.sensors.temperatures() only delivers {}
- Issue with [proxy_fcgi:error] [pid 1539011] (70007)The timeout specified has expired
- Viber is not working on Ubuntu 22.04 Jammy
- why is ubuntu 18.4 still showing as a linux subsystem when i have uninstalled it?
- Why when I want to open a folder from Visual Studio Code does the screen go crazy?
- What is this error when trying to update Ubuntu?
- Angular on IONOS(?) throws an error with npm
- Tensorflow can't find TensoRT
Related Questions in MUTT
- Deleting E-Mails Programmatically with Lua in Neomutt
- How to reply with only selected text using Mutt?
- Sending mail using postfix in linux
- Mutt email - .muttrc syntax for message-hook with sed and tac
- How to use local variables in muttrc
- Difficulty configuring an Amazon SES email SMTP in Mutt?
- Why mutt doesn't send emails with systemd?
- mutt fails to send email
- how to save all messages in mutt
- How to write bash script to send email alerts with an attachment in CentOS 7?
- Nice formatting when sending gmail emails from mutt
- Toggling a group of settings in mutt/neomutt
- embed photo in email's body using mutt and html
- Making A GNU-Grep-Based Script MacOS Friendly
- Using mutt commnd with strace -f fails
Related Questions in MSMTP
- Send mail error send-mail: message from server : 504 5.5.2 <-c>: Recipient address rejected: need fully-qualified address
- MSMTP: 550 MIME message is missing 'From' header, even if address is defined in msmtp config properly
- How to run 'msmtp' mail command in PHP system()?
- using msmtp to send mail via php in docker container does NOT work in all cases
- msmtp 1.8.22 override from address when sending via php
- Sending emails via php on Android KSWEB Pro Webserver with MSMTP not working
- Does msmtp client need sendmail and/or other services installed and running for it to work?
- logging mail/spam from wordpress
- email subject and bcc for crontab via msmtp
- PHP sendmail works but as a Cronjob fails: "sh: 1: /usr/sbin/sendmail: not found"
- How to use msmtp with DKIM to send as other organisation
- smtp works on cli, but not in php script
- Gmail is blocking to send email via SMTP?
- What causes multiple Mails when using Cron with Bash Script
- Awk permission denied when run through msmtp
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 # Hahtags
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.