Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: sending the same email more than once without connecting to smtp for every To adress

by rchiav (Deacon)
on Aug 25, 2001 at 03:18 UTC ( [id://107758]=note: print w/replies, xml ) Need Help??


in reply to sending the same email more than once without connecting to smtp for every To adress

Actually, you can do it just as you described. Just pass an array to the "to" method...
my $smtp = Net::SMTP->new($srv); $smtp->mail('root@localhost'); $smtp->to(@emails); $smtp->data(); $smtp->datasend("Your data goes here.\n"); ....
Hope this helps..
Rich

Replies are listed 'Best First'.
Re: Re: sending the same email more than once without connecting to smtp for every To adress
by pitbull3000 (Beadle) on Aug 25, 2001 at 03:31 UTC
    ok cool i was on the right way, is there also the possibility to send attachments with net::smtp, i already read the docs but didnt find anything. is it like sendmail that i specify the header with "content type multipart/mixed...... boundary...." if yes, how is the syntax... ;.))
      For that, you're going to want to use MIME::Lite..

      All the info you're looking for is at that link.

      Hope this helps..
      Rich

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://107758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found