Name

scheduleEmail — schedule a new alarm which sends an email.

Synopsis

bool scheduleEmail(const QString& addresses, const QString& subject, const QString& message, const QString& attachments, const QDateTime& dateTime, int flags, const QString& recurrence)
bool scheduleEmail(const QString& addresses, const QString& subject, const QString& message, const QString& attachments, const QDateTime& dateTime, int flags, int simpleRepeatType, int interval, int repeatCount)
bool scheduleEmail(const QString& addresses, const QString& subject, const QString& message, const QString& attachments, const QDateTime& dateTime, int flags, int simpleRepeatType, int interval, const QDateTime& endTime)

Parameters

addresses

Specifies the recipient's email address. Specify multiple addresses by separating them with commas.

subject

Specifies the subject line of the email.

message

Specifies the email message body.

attachments

Specifies the URLs of files to attach to the email. Separate multiple URLs by commas.

dateTime

Specifies the scheduled date and time at which the email should be sent.

flags

Specifies the logical OR of the desired alarm flags. The flag bits are those defined in class KAEvent in alarmevent.h

recurrence

Specifies a regular recurrence for the alarm, using iCalendar syntax as defined in RFC2445. For example, “FREQ=MONTHLY;COUNT=4;INTERVAL=3;BYDAY=-1MO” would specify 4 repetitions at 3-monthly intervals on the last Monday of the month. For a non-recurring alarm, specify an empty string.

simpleRepeatType

Specifies the recurrence type for the alarm. The permissible values are MINUTELY, DAILY, WEEKLY, MONTHLY_DAY, ANNUAL_DATE. These are defined in class KAEvent in alarmevent.h.

interval

Specifies the number of periods (minutes/days/weeks/months/years) between repetitions of the alarm.

repeatCount

Specifies the number of times that the email should be sent. Specify -1 to repeat the alarm indefinitely.

Description

scheduleEmail() is a DCOP call to schedule the specified email for sending at the specified date and time. Apart from specifying the email header and contents and omitting the message color and audio file parameters, its usage is identical to scheduleMessage - see the description of that function for further details.