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

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

Serving Software Downloads in 976 Categories, Downloaded 31.757.939 Times

Mail::Sender::Easy 0.0.5

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


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 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 => { '' => { 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 "" 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 "" 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
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  
Productivity  -  SOS Emergency App
Send Emergency SOS Messages via email and or SMS when in trouble. The App will send a custom preconfigured message to a phone nmmber and email address that you set in the settings section of the app. The message will include your GPS location and...
1024 KB  
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  
Utilities  -  E-mail Attachment Management 1.0
This app was specially designed for white collar and business man, E-mail Attachment Management will help you efficiently and conveniently collect the attachments you receive on email, and assort all attachments by time, type and size of each,...
1.8 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  
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  
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  
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB