What is the procedure to send solutions of Eudyptula challenge? - linux-kernel

I am trying to send solution to Task1 of Eudyptula Challenge. I have linked thunderbird to my registered gmail account and while sending the mail, I set "Plain text" format and UTC encoding. But I am getting a mail from little penguin as follows:
"You sent me base64 attachments, which I can not understand at all :("
Can anyone please suggest what is needed to change?

In Thunderbird go to Edit->Preferences->Display->Font->Advanced and set Outgoing Mail to "Western (ISO-8859-1)".

Related

How to (re)send email from a file using mutt or mail?

I have set up exim4 to deliver a copy of all outgoing mails to a local maildir in case something goes wrong. Now something's gone wrong and I need to resend some of the mail from the local maildir.
The emails have their full headers (inc. Return-Path, To, From, Subject etc.) and body (MIME).
Is there a way to do this:
$ somemailcommand <theemail
and have it make a new attempt to deliver it?
I've tried mutt -H theemail which looked promising (although it starts an interactive UI) but the emails came through blank.
I've tried mail anemail#example.com <theemail but that just sent the headers in the body. I'm on Debian Linux.
You can use bounce function (default bound to b key) to resend message and keep original headers.
To do so:
a) bounce single message
just press b
b) bounce multiple messages
tag messages you want using t or T<PATTERN> (see patterns in mutt manual)
then ;b then You'll be asked to fill e-mail address
Bounce tagged messages to:
sendmail -t < messagefile
This command extract To: from email file, and send mail to it.

Send me SMS when I get an email on my server

I have postfix and dovecot running on a server. When a certain kind of email comes in for accounts on the domain, I'd like an SMS to go out. I already set this up for one user using Postfix's BCC mapping and the "SMS email addresses" provided by the tel co.
However, here in the post-Snowden world, with heightened awareness of how easy SMS apparently is to hack, and with potential issues with long emails being sent via SMS, we want the SMS to just say "you got an email" or something like that. We don't want to BCC the entire email message via the SMS system. That's what email is for; we just want the SMS to be an alert, like the way pagers were used in the old days. I suspect there should be a way to do this but it might take me days to learn enough about procmail or script piping and postfix gateways to figure it out.
I would be surprised if I was the first person in the world to want to send an SMS alert on email events?
So the BCC is apparently not a problem. The email-to-SMS is apparently not a problem. The problem is how to modify the body of the BCC'd email, or otherwise how to send a simple SMS alert (or simple email alert) upon certain email events (specifically, when email is received for certain recipients on the server via postfix).
Thanks!
You may use dovecot's sieve with enotify or vnd.dovecot.execute.
Simple enotify can deliver exactly what you have asked for. Dovecot specific vnd.dovecot.execute can be used to implement extra protections to avoid turning mail bombing into SMS bombing.
Example from RFC5435:
require ["enotify"];
if header :contains "from" "boss#example.org" {
notify :importance "1"
:message "This is probably very important"
"mailto:alm#example.com";
}

How to know mail send or not send in laravel and which recipient is not getting it?

Hi I am using the bellow function, can you please guide me how can I use Mail::failures(); in it
Mail::send('emails.caregiversetprimary', $templateArray, function($message)use($email)
{
$message->to($email, 'username')->subject('my subject');
});
Mail::failures(); < ====== this gives me black array as I have used wrong email
I am using laravel 4.1
tl;dr
You can know which recipients the email has been sent to but no which recipients have received it.
details
You need a better understanding of how mail servers work. From a Laravel point of view, there is no way (or at least not a simple one*) of knowing which recipients got the email. Its a matter of how mail protocol works. You may know which recipients the message has been sent to but no which recipients actually got it.
With Mail::failures() you get a list of recipients to which Laravel tried to send the email but it failed on actually sending it. But again, if it has been sent there is no straightforward way to known if the mail reached their inbox or no.
*If you happend to use Mailgun, Mandrill or any other 3rd party software then you are not dealing with a mail server 'per se' but with an API service. May be you could check the mail service provider documentation to research if they perform any kind of delivery tracking that you can programatically check.

What's the easiest way to send a message through Outlook with Ruby?

My work requires me to automate e-mail generation for certain tests. I've been looking around but havent been able to find a reasonable solution that can be implemented quickly. It needs to be in outlook and not some other mail server as we have some strange authentication rules in place, and we need the option of saving drafts instead of just sending the message.
Apparently win32ole can do this, but I can't find any reasonably simple examples.
Assuming that the Outlook credentials are stored and you are set to autologin to Outlook, WIN32OLE does the trick quite nicely:
require 'win32ole'
outlook = WIN32OLE.new('Outlook.Application')
message = outlook.CreateItem(0)
message.Subject = "Hey look a subject!"
message.Body = "Yes this is dog"
message.Recipients.Add 'dog#dog.com'
message.Recipients.Add 'cat#dog.com'
message.Attachments.Add('C:\Path\To\File.txt')
#Want to save as a draft?
message.Save
#Want to send instead?
message.Send
This is in fact quite well documented in "Automating Outlook with Ruby: Saving Mail Messages To Files", as is automating the rest of windows with Ruby.
You may have an authorization issue, which, if it appears, can be solved using "Advanced Security for Outlook".
If the Outlook account has web access (via outlook.com or office365.com) you can also use Mikel Lindsaar's Ruby email library. It works well for many different email providers that allow POP3, IMAP4, or SMTP connections.
I posted an entry with some sample code on sending and receiving Outlook email via Ruby that might help. Sorry, I can't comment on how to save drafts, though.

Sending email from website using mailto link

That might be silly question but I really need to know the answer. If I got the Outlook client installed on my machine and I click on the mailto link on the website the subject and body specified in the link is passed to the client. Is anything else attached to the message? Any headers or addition information about my website?
I am asking this question because I have such a link on my website and every time I test it the email fails spam checks with Postini.
I also get this message:
Your email has been encoded as 'Quoted-printable', and yet one of the lines of content is longer than the maximum 76 characters. No line within a quoted-printable body may exceed that size.
When I remove long links I am not getting this message but the email still fails the Postinig check.
Thanks for help,
Marcin
mailto: links are just interpreted by the browser as a signal to say "Open the default mail client to send an email to this person". Everything else is treated as a classic mail by Outlook.
Maybe it is something in your mail that Postini recognises as a potential spam phrase?

Resources