Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

setMaxMailsPerHour

Defines the maximum sending rate (emails per hour) for a mailing in Optimizely Campaign.

The mailing must be of the type regular.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
maxMailsPerHourintMaximum sending rate (mails per hour) for the mailing—must be greater than 1000

The value -1 means No throttling.

Return values

  • Code structure

    void setMaxMailsPerHour(String sessionId, long mailingId, int maxMailsPerHour)