in reply to sending to multiple addressess

From MIME::Lite’s documentation: Giving VALUE as an arrayref will cause all those values to be added. This is only useful for special multiple-valued fields like "Received"

So, try–

To => \@email_addresses, # or list them explicitly in an anonymous array- To => [ 'email1@doma.in', 'email2@doma.in' ],

Replies are listed 'Best First'.
Re^2: sending to multiple addressess
by Your Mother (Archbishop) on May 23, 2017 at 18:04 UTC

    And along with what tobyink pointed out I’d missed, Bcc, can be swapped for the To. However, mass BCCing tends to be interpreted, quite rightly, as spam and filtered out. I hope we’re not helping you send spam. :|

Re^2: sending to multiple addressess
by bigup401 (Pilgrim) on May 23, 2017 at 20:49 UTC

    no am not using it for spam, i want to be able to mail all my users in my database

    its still showing same thing brings all recipients

    here is how the delivery looks like

    To: email1@gmail.com, email2@gmail.com, email3@gmail.com Reply | Reply to all | Forward | Print | Delete | Show original how are u

    here is my code

    my @email_addresses = ('email2@gmail.com', 'email2@gmail.com', 'email3 +@gmail.com'); $from = 'support@mydomain'; $subject = "hello users"; $message = "how are u"; $msg = MIME::Lite->new( From => $from, To => \@email_addresses, Subject => $subject, Data => $message ); $msg->send;

      Great. tobyink’s approach is right for what you want. Mail each separately.