johnny has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: mass mailing......
by hossman (Prior) on Jul 19, 2007 at 06:55 UTC
    i have a text file wth a huge list of email ids to which i need to send email. i have created many smtp mail accounts and sotred the details in database table..wch looks like..

    Are you seriously asking us how to send a bunch of spam to a big list of addresses in a text file using a bunch of generic gmail accounts you created?

    Did you seriously just publicly post the usernames and passwords of 6 gmail accounts that you created for the purpose of sending spam? (yes, it looks like you did, fortunately it looks like gmail already suspended those accounts -- thank god)

    On top of everything else, did you SERIOUSLY plagiarize a script you found online after deleting the comments at the top containing the name of the author and the URL where you can find out more about it -- a URL which coincidently has an online forum where the author happily answers questions about using it?

    Seriously?

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: mass mailing......
by moritz (Cardinal) on Jul 19, 2007 at 06:57 UTC
    We could help you, but we don't know your problem.

    What have you tried, and where did you fail? Do you have a particular problem?

    Perlmonks.org is not a "we write your code" service.

Re: mass mailing......
by rpanman (Scribe) on Jul 19, 2007 at 06:52 UTC
    Hi johnny

    Probably the easiest way is to write a script using the DBI module available from CPAN to read the information from the database and then to execute the smtp-client.pl script for each entry. To execute smtp-client you can use backticks and pass the options as if you were running on the command line; so for example:
    my $returncode = `/path/to/smtp-client.pl --to=$to...`;
    If you have many thousands of entries then this is going to take a long time and you probably need to work on sending mails in parallel, but start with the basics first.

    Maybe you should also thank Michal Ludvid for writing the original code for the Command line SMTP client above :-)

    Update: ...or just leave the code above alone and use the Mail::Bulkmail module. (Thanks for spotting the typo Corion!)