-3

I've tried using these different modules given by Perl for sending email:

I cannot figure out whats wrong. Is there any pre-setup required for these modules to work?

Craig Treptow
  • 834
  • 7
  • 19
Vidur Oberoi
  • 75
  • 1
  • 3
  • 12
  • unable to understand why this question was downVoted, all i wanted was a solution to my problem, what is wrong about my question ?? – Vidur Oberoi Jul 12 '13 at 13:59
  • 2
    I suspect the down vote came from you not including any output of the errors you've received when trying the different solutions. – Craig Treptow Jul 12 '13 at 14:20
  • It's downvoted because you made no effort to explain what you had tried or what problems you were having. – Dave Cross Jul 13 '13 at 14:11

2 Answers2

3

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.

daxim
  • 39,270
  • 4
  • 65
  • 132
0

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.

David W.
  • 105,218
  • 39
  • 216
  • 337