I want to send email through perl, what kind of setup is required for it? [closed] - perl

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I've tried using these different modules given by Perl for sending email:
Email::MIME
Email::Sender
Email::Simple
I cannot figure out whats wrong. Is there any pre-setup required for these modules to work?

Email::Sender is as of 2009 the best sending module; it needs no pre-setup. You configure the transport, e.g. SMTP, and its options, e.g. hostname, at runtime. See the linked synopsis.

I use Net::SMTP because it's a standard Perl module. This means it's always available no matter which machine I'm on.
Net::SMTP is not quite as simple as specific Email modules, but it still doesn't require an advanced degree in rocket science either.
Here's an example where I'm using it. Look at lines numbers 767 to 817.

Related

Netcat Replacement [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
When creating a netcat-like program how do I get that file onto a server? It seemed like the reason for creating a netcat-like program was to be able to use it to run commands, get files and connect to ports.
So it seems like it's necessary to have it on the server in order to put it on the server?
I'm probably just really confused.
You'd use another program to load it initially. For example, you might ssh in.
It is also possible that you'd have physical access to the server and could install the first file transfer program manually, or as part of the intial OS install.
Not all interactions have to be done remotely. Otherwise, your intuition would be right -- we'd have a chicken and egg problem.

How can i send fax using perl script? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to send FAX using perl script.
How can I do it?
Is their any way send fax using perl script if any idea please tell me.
Thanks in advance
This older (6 yrs) thread on Perlmonks still seems like a good response to this question, in my opinion.
http://www.perlmonks.org/?node_id=782340
Basically, if you have a fax server that has some more or less straightforward method of communicating with it programmatically (like HylaFax) then you can use Perl to interact with it in a familiar way.
If that is not the case then your best answer is to seek out an external program and perhaps automate that, if possible. The "external program" is what you need in order to take care of the many fiddly issues involved with dialing the number, negotiating with the receiver, and so on.
One example of an external program to send faxes is OpenOffice
http://www.linuxjournal.com/content/faxing-openofficeorg
Finally, there is fax4j in Java which you could try and use with Inline::Java, which is kind of cheating in the sense that it is just barely a Perl solution.
http://sourceforge.net/projects/fax4j/
http://search.cpan.org/dist/Inline-Java/Java.pod
If any of this matches something that you can try out in your environment go ahead and then post back in more detail if you run into trouble implementing.

Very very very simple email option [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I am looking for a VERY simple method to allow for computer illiterate people to set up emailers and be able to send them on to others.
Basically, our client is a franchise chain of about 44 and mostly consisting of stay at home mom's. They would all like to keep in contact with one another via an email campaign of sorts but this needs to be super simple for them.
Here's what we know about them:
The would like to add photos but know nothing about image cropping/resizing or manipulation.
They would need it in the form of an .oft template so that they can just copy and paste.
These are the biggest hurdles. My suggestion to them would be this:
Set up an .oft template which they can open from Outlook and start editing.
Find an online tool where they can upload their images and it spits out the correct sizes for them
Does anyone have another idea of something similar please? As far as I am aware, only Outlook 2003 runs .oft templates still?
Many thanks!
Have you considered MailChimp ?
http://www.mailchimp.com/features

Encrypted email test data set [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm looking for a set of emails encrypted (and signed) by a variety of email clients in order to test a mail client. A downloadable mbox file along with test gpg keys would be ideal for this.
There seem to be a variety of ways that emails are encrypted (and signed), so getting all of them to work is difficult. And then you find another client that gets it wrong in a slightly different way, and you want to refactor your code but not break decryption of any emails you already support.
So does anyone know of such a dataset? Or failing that, a good list of the ways that different bits of software encrypt emails?
Various clients sign and encrypt mail usually in two ways.
PGP/MIME : http://www.ietf.org/rfc/rfc2015.txt and
S/MIME : http://www.ietf.org/rfc/rfc5751.txt
You should be able to generate a good set of these using tools like mutt to script creation of these messages. I know this is not exactly the 'answer' but should help.

How do I inject a message into Postfix's queue? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am working on an application that quarantines and routes email. Let's say in this application that I have an email message in a directory of my choosing and it has been scanned by our software and is considered "clean". How do I inject this message back into Postfix?
Maybe you simply use sendmail ?
I recognize that this is a rather old question. For the benefit of people stumbling across this question:
The qpsmtpd SMTP daemon has a Postfix Queue-Plugin to inject mails into Postfix. The plugin directly talks to the cleanup daemon of Postfix. It shall be rather easy to adapt/port that code (it's written in perl).
http://www.qpsmtpd.org/