Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.322.676 Times

Mail::Sender::Easy 0.0.5

Company: Daniel Muey
Date Added: July 03, 2013  |  Visits: 598

Mail::Sender::Easy

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



Mail::Sender is a great module. I have great respect for Jenda as you can tell from the list archives :)<br /><br />Mail::Sender's one problem is its a bit cumbersome to use, with so many options and things to open, close, the whole thing, parts, multiparts etc etc., and several ways to check for successs. Its hard to remember what needs done at what point with what data to do what you want and then which way you check what data based on what was done to see if it worked or not.<br /><br />This module's aim is to make all of that ``Easy'', Simple, User Friendly, etc etc (see "DISCUSSION OF THE NAMESPACE" below)<br /><br />It does so by providing a single function (and method) to send mail based on an (IMHO) easier to work with hashref and returns true or false on success or failer and sets $@ to any errors.<br /><br />The EXAMPLE section shows an ``email or die'' that will send an email using SMTP Auth on port 26 with text and html parts, the html part has a smiley gif embedded inline and a PDF attached and a high priority flag and read and delivery receipt requests. It will take you seconds to customize it to send that to yourself (and its ``Easy'' to understand what its going on without having to understand the intracacies of SMTP and MIME messages. Now try it with plain the Mail::Sender manpage. See? Much much ``Easy''ier to do, understand, troubelshoot, maintain, etc etc :)<br /><br />Also adds more detailed info to the X-Mailer header to track usage.<br />Function: email()<br /><br /> email(%email) or die "Email error: $@";<br /><br /> if(email(%email)) {<br /> log_sent_emails(%email);<br /> print "Your email has been sent!n";<br /> }<br /> else {<br /> log_failed_email($@, %email);<br /> print "Sorry, I could not send your email!n";<br /> }<br /><br />Method: $sender->easy()<br /><br />Same hashref as email() but called with a Mail::Sender object you created previously:<br /><br />my $sender = Mail::Sender->new();<br /><br />$sender->easy(%email) or die "Email error: $@";<br />%email<br /><br />The keys to this hash are the keys described in Mail::Sender's docs in the "Parameters" Section with the addition of 3 new ones:<br />_text<br /><br />The value is the text/plain part of the message, its the only required one.<br />_html<br /><br />The value is the text/html part of the message, it is not required.<br />_text_info<br /><br />Value is a hashref of additonal args to Mail::Sender->Part() for text in text and html emails, Mail::Sender->Body() in text with attachement. ctype, disposition, msg are ignored since they are set by other means.<br /><br />The perfect place to set 'encoding' and 'charset'<br />_html_info<br /><br />Value is a hashref of additonal args to Mail::Sender->Part() for html. ctype, disposition, msg are ignored since they are set by other means.<br /><br />The perfect place to set 'encoding' and 'charset'<br />_attachments<br /><br />Encoding of attachments is always Base64. The value of this key is a hash reference.<br /><br />In that hashref each key is a filename, not the entire path, just the filename, to be attached. The value is another hashref described below. (Don't panic, its not as complex as it sounds at this point, see the EXAMPLE to see what I mean.)<br />_attachments => { 'file.name' => { this hash is described here }, }<br /><br />You *must* specify the "file" key or the "msg" key, the "msg" key takes precedence.<br /><br />The keys are:<br /><br />file<br /><br /> Path to the file to attach.<br /><br /> 'file' => '/home/foo/docs/fiddle.txt',<br /><br /> Makes the attachment via Mail::Sender::Attach()<br />msg<br /><br /> Contents of the file (instead of using a path)<br /><br /> 'msg' => $fiddle_txt_content,<br /><br /> Makes the attachment via Mail::Sender::Part()<br />ctype<br /><br /> Content type of the attachement<br /><br /> 'ctype' => 'image/png',<br /><br /> Mail::Sender will guess if not specified but its a good idea to specify it.<br /><br /> Defaults to text/plain<br />description<br /><br /> Short textual description or title of this file:<br /><br /> 'description' => 'Fiddle Info',<br /><br /> Defaults to the filename you used for this hashref's key (IE "file.name" from the "this hash described here" header).<br />_disptype<br /><br /> Short textual description of the type of file:<br /><br /> '_disptype' => 'Text Document',<br /><br /> Defaults to the filename you used for this hashref's key (IE "file.name" from the "this hash described here" header).<br />_inline<br /><br /> The value is used as its "cid" and makes it attached inline<br /><br /> '_inline' => 'fiddlepic1',<br /><br /> in the html section:<br /><br /> <img src="cid:fiddlepic1" /><br /><br /> If not specified its not "inline", its just attached :)<br /><br />The _disptype and _inline are used to build the actual "dispositon" part which is described in Mial::Sender's docs if you want to know the nitty gritty.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Attached Attachment Defaults Description Email Filename Hashref Mailsender Makes Quotemail Quotfilenamequot Quotthis Section Short Textual Understand
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


MAIL::SENDER::EASY RELATED
Mail Clients  -  Power User Bundle 4.0.4050.29126
Are you thinking about getting Attachment Save, Add Email Address, or Hide Fax Numbers add-ins? If so, then the Power User Bundle may be what you need. It includes three of the more popular add-ins for a single low price! The Power User Bundle...
 
Modules  -  Post Author Box 1.2
Post Author Box allows you to append or prepend an informational box on any post or page without having to modify your theme. It has no opinions about what information is displayed or how it's presented. Configure the box with any of the following...
20.48 KB  
E-Mail Tools  -  Open OST File Free 1.0
Please consider the open ost file service for email recovery needs, it makes sense if something goes wrong with the Microsoft Exchange Server of your company and the access to ost files, used by Microsoft Outlook, becomes impossible for any...
1.86 MB  
Email  -  Qmail-Scanner for Email System Utilities 2.01
Qmail-Scanner is an add-on that enables a Qmail email server to scan gatewayed email for certain characteristics (i.e. a content scanner).It is typically used for its anti-virus and anti-spam protection functions, in which case it is used in...
225.28 KB  
Programming  -  Net::SDP 0.07
Net::SDP is an SDP (Session Description Protocol) parser and generator. Net::SDP is object oriented and a single instance of Net::SDP represents a single SDP session description. There are methods to easily get, set and create each of the fields...
20.48 KB  
Mail Clients  -  Vodamail Email Verifier Free Edition 9.61
This FREE software checks for existence of an email address. It verifies / validates email addresses in a list, removes invalid entries and clean the list. Performs three levels of verification - syntax level,domain level and server level with a...
2.98 MB  
File Cataloguers  -  Attache 1.0.1
attache is an AppleScript (droplet) that simplifies the creation of an attachment list for an eMail in Apple Mail.To create an eMail with an attachment list in Apple Mail, just drop a bunch of files onto attache's icon. It will then ask you to...
139 KB  
Education  -  Secret Message 1.0
Secret Message was developed for children to send "secret messages" within "plain messages" to their friends via email. The Sender types a "plain message" and a "secret message" and saves a file which is used as an attachment to an email to a...
3.3 MB  
Modules  -  Mobile Media Blog 5.x-1.x-dev 1.0
It integrates with Mailhandler and saves the submitted text as node and attaches all files sent with it.The mailalias module allows your users to provide more than on e-mail address for posting.You can make use of the inline module in order to...
 
Modules  -  ModuleInfo 6.x-1.2
What this Module DoesIn the description of each module on the page admin/build/modules, ModuleInfo places a list of the Pages, Blocks, and Content-types created by that module. Basically it alerts the user to any changes that a module makes to the...
10 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB