How can i send email with Voting buttons via shell script? - linux

I have an existing email chaser system based on linux where we send emails to a large list of individual asking to reply on email with their confirmation and they can reply with options like a1,a2,a3,a4 or a5 which is working ok but teh percentage of response we are receiving is less so to make it more easy for them we would like to add clickable features like Voting buttons, can someone help me in this please?
I know how to do it in vbscript but not sure if linux can do it and I cant find any solution in forums yet, we have limitations which prevent us using any third party tools so we have to use Linux inbuild modules.
If voting is not possible then at-least can generate some clickable links when they click it will generate a corresponding response in subject line which we can grab late by some other process.
thanks in advance.

not sure about voting, but you could simply send html email with clickable links etc as below:
cat <<EOF | sendmail -t
To: someone#mail.com
Subject: A subject
From: A sender
MIME-Version: 1.0
Content-Type: text/html
<html>
<body>
GOOGLE
</body>
</html>
EOF

Related

HTML_IMAGE_ONLY_20 message when testing email

I am sending an email to new users asking them to verify.
This is my email
But when I am testing the email in mail-tester.com, I get this HTML_IMAGE_ONLY_20 message. But I do not have any image sith text in or am I misunderstading the error?
I assume that’s a SpamAssassin rule. It is a rule that says that your message is composed primarily of image and not text. In your example you have a logo and not much text, so I’d assume it’s that. You could look up the source code for the SA rule and see what it’s actually looking for.

PHPMailer HTML e-mail gets quoted

I'm sending HTML mails through PHPMailer to my Gmail account (Inbox app), but I cannot build a body which wouldn't get quoted
(you get new e-mail and all there is is "..." which you click and rest of the mail shows, it's for hiding previous conversation if you Reply).
I have tried including tags, but as soon as I add <br> or <p>, it all gets quoted.
Best I could make work was
$message = "<html><body><p>Lalalala</p> trololo </body></html>"
which resulted in Lalalaa "...", if I add paragraph around trololo, all I get is "..."
Anybody came accross this?
After very deterministic experience (one mails sent 2x got quoted differently each time), the thing that helped was wrapping the entire mail in <span> tags.

Mail markup: google tester- ok, my server- bad

I have the problem with google mail markup
https://developers.google.com/gmail/markup/overview#gmail_actions
I tried Json-Ld and Microdata. But i have nothing. When i try to send me mail from google tester https://script.google.com/ - everything is ok and i get the letter with quick button. But when i send the same letter from my server- i get letter without quick button. At my server i tryed to change mail's charset, encoding, i tryed to use php function mail and PHPmailer script (yii)- the result is the same.
What should i see the next
Thank everybody for answers. lol
But i found that i should add me to wite list at google here
https://developers.google.com/gmail/markup/registering-with-google
Writers from google didn't mention about it at first part of instruction

Postfix - all attachment extraction at the server side

How can I extract all the attachments coming to the postfix email server? in order to save it to another (efficient) file server. I don't want to log in for every user and extract the attachments for the individual users but extract all the attachments (as file objects or file stream) as it comes to the postfix server and save it. While extracting, the routine should know which user an attachment belong but it should not go by user way. I specially want to avoid the login session/cycle.
As the second option - if I can get a push notification about a users attachment as it arrives. I am sure there are ways to do that - please let me know best ways to do it. And then extract attachment(s) for the user whose email with attachment(s) has just arrived. Still, I don't want log-in/out cycle to extract. It has to be done such a way that no individual password would be necessary.
Guessing lot of solutions would come in in python, thats great though. It would be also helpful if I get some NodeJS solution to do this.
Please help, and don't mix your solution with these two options - one at a time solution please - either one :)
Have a thorough google for postfix, procmail and uudeview - That combo will allow you to save attachments on a file server.
As a starting point have a look here:
https://kuther.net/howtos/howto-receive-mail-and-save-attachment-fetchmail-procmail-and-metamail
...and here...
http://www.mugginsoft.com/content/postfix-automatically-decode-zipped-attachments
HTH
Regards
Frank

Email link opens email client with a Questionnaire in the Body

I have a question I can't seem to find an answer to. It may also be that I cannot figure out how to concisely word it to look for it most effectively.
Here is what I want to happen.
When someone clicks my "Email me" link (mailto: (I am using a .js to hide the real email address from the screen to filter spam) it opens up their email client, as usual, but the email already has a subject line AND the Body of the email already has text in it (A Questionnaire for them to fill out.)
Any help in the right direction will be much appreciated!
Cheers!
the mailto supports subject and body as params
mailto:you#yourdomain.com?subject=Your Subject&body=Message for the body

Resources