Package models.mailing

Examples of models.mailing.Mailing.save()


        new Vote(lt2, member, true).save();
        // Recipient of mailings
        Mailing m1 = new Mailing();
        m1.actualRecipients.add(member);
        m1.actualRecipients.add(other1);
        m1.save();
        // Source of contact mailing
        Mailing m2 = new Mailing();
        m2.from = member;
        m2.save();
       
View Full Code Here


        m1.actualRecipients.add(other1);
        m1.save();
        // Source of contact mailing
        Mailing m2 = new Mailing();
        m2.from = member;
        m2.save();
       
        assertNotNull(member.delete());
        assertNull(Member.findById(member.id));
        assertSame(other1, Member.findById(other1.id));
        assertSame(other2, Member.findById(other2.id));
View Full Code Here

                // Si nous avons épuisé tous les destinataires en attente
                // C'est que le mailing a été complètement envoyé
                mailing.status = MailingStatus.Sent;
                Logger.info("JobSendMailings : mailing %s complètement envoyé!", mailing);
            }
            mailing.save();
        }

        if (nbSends >= dailyBatchSize) {
            Logger.info("JobSendMailings : quota quotidien de %d envois atteint, on stoppe les envois", dailyBatchSize);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.