Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: send mail

by stevieb (Canon)
on Apr 03, 2019 at 23:14 UTC ( [id://1232128]=note: print w/replies, xml ) Need Help??


in reply to send mail

After a *very* cursory glance, Mime::Lite shows that there are fields other than To.

Bcc (ie. Blind carbon copy) is what you want.

When in doubt, read the documentation (RTFM!!).

So, set To to yourself or blank, and dump all others into the Bcc field.

Besides that, don't use ALL CAPS for variable names, unless they are constants. It's a poor practice to use all upper-case variable names like you have. This is consistent in Perl, and nearly all other programming languages.

Update: ...and where's your use strict; and use warnings;? Is this just a code snip where your variables have already been declared, or do you simply not pay attention to what's been presented to you time-and-time again?

Replies are listed 'Best First'.
Re^2: send mail
by marto (Cardinal) on Apr 04, 2019 at 06:39 UTC
Re^2: send mail
by bigup401 (Pilgrim) on Apr 04, 2019 at 08:39 UTC

    thanks, it works with bcc and blank to

      You're very welcome.

      Note though, that this is the last post I'll help you with if you don't start following common best practices and/or advice that you've been made aware of repeatedly.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-20 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found