Re: Sending mail without a callback



On 5/31/07, Ben Edwards <funkytwig@xxxxxxxxx> wrote:
Have been googleing for a while and don't seem to be able to find a
perl library which allows me to send an email without having to resort
to a callback. Can someone please point me in the correct direction.
snip

use Mail::Sender;

my $sender = Mail::Sender->new(
{
smtp => 'mail.yourdomain.com',
from => 'your@xxxxxxxxxxx'
}
);

$sender->MailFile(
{
to => 'some@xxxxxxxxxxx',
subject => 'Here is the file',
msg => "I'm sending you the list you wanted.",
file => 'filename.txt'
}
);
.



Relevant Pages

  • Re: Using swig to use an existing dll/library
    ... the ctypes module without needing to resort to any real c code: ... > a callback function to signal specific events. ... > DLLs? ...
    (comp.lang.python)
  • Re: Sending mail without a callback
    ... perl library which allows me to send an email without having to resort ... Can someone please point me in the correct direction. ... What do you mean by "callback" here??? ... callback = executable code that is passed as a parameter to other ...
    (perl.beginners)
  • Re: Sending mail without a callback
    ... perl library which allows me to send an email without having to resort ... Can someone please point me in the correct direction. ... What do you mean by "callback" here??? ... -- Terry Pratchett in Sourcery ...
    (perl.beginners)