[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Email attachments and library files



Thanks to Paul Schinder, Thomas Wegner, and Chris Nandor for all the help
with this problem!

I finally was able to get MIME::Entity working and to write a script that
sends and email with an attachment. 

Now I have one more question, which is just a cosmetic thing but would be
nice...
Is there a way to have it include a full name along with the email address
in the "From:" field?

I found a way to do it with Mail::Address, but when I try to stick it into
my email-sending script it crashes with a bunch of "out of memory" errors.
MacPerl is using about 65 MB of memory so I am thinking it is because I
did something wrong rather than being simply a memory error.

I'm using Net::SMTP to send the message and MIME::Entity to include the
attachment. Currently I'm setting a "$sender" variable and have the
following line in my SMTP header section:
$smtp->mail($sender);

So I tried setting $sender the following way:
$sender = Mail::Address->new("Full Name",
                                 "address\@host.edu");

without changing the rest of my code (except to include "use
Mail::Address;"), and now I get all the "out of memory" errors.

Well, it's not a huge deal, but it would be nice. :)

Thanks! :)

Frances Schuetz


I can hardly think there was ever any scared into Heaven; they go the
fairest way to Heaven that would serve God without a Hell. 
- Sir Thomas Browne (1605-1682)
______________________________________________________
Frances K. Schuetz         | Ask about web site design
IU Press Journals          | fschuetz@indiana.edu
Indiana U, Bloomington, IN | 812-855-9449
           http://php.indiana.edu/~fschuetz



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org