Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: best way to transfor package Mail::Internet to Email::MIME and send mail

by sflitman (Hermit)
on Sep 12, 2010 at 22:18 UTC ( #859918=note: print w/replies, xml ) Need Help??


in reply to best way to transfor package Mail::Internet to Email::MIME and send mail

First, your question is not clear. Please rephrase it with respect to the code you are showing. I am guessing you mean that you want to make your own package which encapsulates (packages, hides) the mechanics of sending email, but what you have shown is just extracting various headers.

Second, your code would benefit from starting with:

#!/usr/bin/perl (or equivalent for your platform) use strict; use warnings;

HTH,
SSF

  • Comment on Re: best way to transfor package Mail::Internet to Email::MIME and send mail
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859918]
help
Chatterbox?
[atcroft]: PriNet: %hash = ();? or foreach my $k ( keys %hash ) { delete $hash{$k}; }?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2017-06-28 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (619 votes). Check out past polls.