A method of efficiently generating and sending emails including creating
an email template, setting up a campaign query, and distributing the
email template and a set of information associated with the campaign
query to a plurality of server groups. The method also includes running
the campaign query on each of the plurality of server groups and
obtaining a plurality of matching users; dividing the plurality of
matching users into one or more batches; merging the email template with
a set of information corresponding to each of the plurality of matching
users from a first batch for each of the plurality of server groups, and
sending the first batch of the merged emails directly from each of the
plurality of server groups without saving copies of the merged emails.