# Copyrights 1995-2016 by [Mark Overmeer <perl@overmeer.net>]. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.02. use strict; package Mail::Send; use vars '$VERSION'; $VERSION = '2.18'; use Carp; require Mail::Mailer; sub Version { our $VERSION } sub new(@) { my ($class, %attr) = @_; my $self = bless {}, $class; while(my($key, $value) = each %attr) { $key = lc $key; $self->$key($value); } $self; } sub set($@) { my ($self, $hdr, @values) = @_; $self->{$hdr} = [ @values ] if @values; @{$self->{$hdr} || []}; # return new (or original) values } sub add($@) { my ($self, $hdr, @values) = @_; push @{$self->{$hdr}}, @values; } sub delete($) { my($self, $hdr) = @_; delete $self->{$hdr}; } sub to { my $self=shift; $self->set('To', @_); } sub cc { my $self=shift; $self->set('Cc', @_); } sub bcc { my $self=shift; $self->set('Bcc', @_); } sub subject { my $self=shift; $self->set('Subject', join (' ', @_)); } sub open(@) { my $self = shift; Mail::Mailer->new(@_)->open($self); } 1;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Field | Folder | 0755 |
|
|
Mailer | Folder | 0755 |
|
|
Address.pm | File | 6.66 KB | 0644 |
|
Address.pod | File | 3.71 KB | 0644 |
|
Cap.pm | File | 6.17 KB | 0644 |
|
Cap.pod | File | 3.74 KB | 0644 |
|
Field.pm | File | 4.68 KB | 0644 |
|
Field.pod | File | 4.9 KB | 0644 |
|
Filter.pm | File | 1.23 KB | 0644 |
|
Filter.pod | File | 2.79 KB | 0644 |
|
Header.pm | File | 14.02 KB | 0644 |
|
Header.pod | File | 7.72 KB | 0644 |
|
Internet.pm | File | 12 KB | 0644 |
|
Internet.pod | File | 10.31 KB | 0644 |
|
Mailer.pm | File | 4.73 KB | 0644 |
|
Mailer.pod | File | 3.88 KB | 0644 |
|
Send.pm | File | 1.13 KB | 0644 |
|
Send.pod | File | 2.8 KB | 0644 |
|
Sendmail.pm | File | 32.64 KB | 0644 |
|
Util.pm | File | 3.14 KB | 0644 |
|
Util.pod | File | 3.08 KB | 0644 |
|