Problem creating envelope-from in module Email::Send

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I am trying to use the nice Email::Send (and friends) module and have
a problem creating the 'envelope from' as documented at

<citation start>
The envelope sender and recipients are, by default, generated by
looking at the From, To, Cc, and Bcc headers. This behavior can be
modified by replacing the get_env_sender and get_env_recipients
methods, both of which receive the Email::Simple object and their only
parameter, and return email addresses.
<citation end>

What does this mean? I tried to use 'get_env_recipients' as a
constructor parameter (e.g. "my $mailer = Email::Send->new({mailer =>
'SMTP', get_env_sender => \&my_get_env_sender});") and MANY more
things, but obviously this is wrong....

Can anyone point me in the right direction before I become crazy?


Re: Problem creating envelope-from in module Email::Send

Quoted text here. Click to load it
Quoted text here. Click to load it

It probably means you have to define a subclass of Email::Send::SMTP which
overrides these methods.

Quoted text here. Click to load it

I see no indication in the documentation of Email::Send or
Email::Send::SMTP that it recognizes a property with the name


   _  | Peter J. Holzer    | I know I'd be respectful of a pirate
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   |         |
__/   | |    -- Sam in "Freefall"

Re: Problem creating envelope-from in module Email::Send

Peter J. Holzer wrote:
Quoted text here. Click to load it

Do you mean that it would be doable without a need to edit the
Email/Send/ file? If so, could you please give us a hint how to
do it?

Gunnar Hjalmarsson

Modules Geo::OGC::Geometry and Gtk2::Ex::Geo

I've released a versions 0.01 of Geo::OGC::Geometry and 0.54 of

Geo::OGC::Geometry contains several classes in the Geo::OGC namespace.
The idea of the module is to implement the OGC (
simple feature geometry model, which is a standard in the geospatial
software domain. This initial release is usable mainly for storing
geospatial data since most of the methods for testing spatial relations
and the methods that support spatial analysis are not yet implemented.
The very basic computational geometry algorithms are however implemented
and the standard methods could be implemented using those.

The Gtk2::Ex::Geo contains basic classes for developing graphical
geospatial applications. It depends on Gtk2 and Cairo and implements a
GeoCanvas and a class whose objects can be used to manage a stack of
geospatial data that are rendered on the canvas. The Gtk2::Ex::Geo
version 0.54 is the first one that is almost pure Perl (there is minimal
  xs code, mostly to manage a Cairo surface and GDK pixbuf). There is a
root Layer class in the distribution that contains, e.g., a color system
dialog box, but it is meant to be an abstract class.

There are subclasses for Gtk2::Ex::Geo::Layer that build on Geo::GDAL,
which is a swig/Perl interface to the C++ GDAL library. The new versions
of these will be uploaded to CPAN in near future. The development
versions are available at /

Both of these modules are a part of geospatial software stack called
Geoinformatica, whose home page is at

These modules should be discussed on the geo-perl list:

Best regards,

Ari Jolma

Site Timeline