Name
scheduleEmail — schedule a new alarm which sends an email.
Synopsis
bool scheduleEmail(const QString&fromID, const QString&addresses, const QString&subject, const QString&message, const QString&attachments, const QString&startDateTime, intlateCancel, unsignedflags, const QString&recurrence, intsubRepeatInterval, intsubRepeatCount)
bool scheduleEmail(const QString&fromID, const QString&addresses, const QString&subject, const QString&message, const QString&attachments, const QString&startDateTime, intlateCancel, unsignedflags, intrecurType, intrecurInterval, intrecurCount)
bool scheduleEmail(const QString&fromID, const QString&addresses, const QString&subject, const QString&message, const QString&attachments, const QString&startDateTime, intlateCancel, unsignedflags, intrecurType, intrecurInterval, const QString&endTime)
Parameters
fromIDThe KMail identity to use as the sender of the email. If empty, the sender's email address will be that configured in KAlarm's Email preferences.
addressesA comma separated list of recipients' email addresses.
subjectSpecifies the subject line of the email.
messageSpecifies the email message body.
attachmentsA comma-separated list of paths or URLs of files to send as email attachments.
startDateTimeSpecifies the scheduled date, or date and time, at which the message should be displayed. For a date-only alarm, the string should be in the format
YYYY-MM-DD [TZ](as returned byQDate::toString(Qt::ISODate)). For an alarm with a date and time, the string should be in the formatYYYY-MM-DDTHH:MM[:SS] [TZ](as returned byQDateTime::toString(Qt::ISODate)) orHH:MM[:SS] [Clock](as returned byQTime::toString(Qt::ISODate)). If no date is specified, today's date is used. Note that any seconds value is ignored.If no time zone is specified, the local system time zone is assumed. If a time zone specifier
TZis present, it may be the name of a system time zone (e.g.Europe/London),UTCrepresenting the UTC time zone, orClockto use the local computer clock and ignore time zones.lateCancelCauses the alarm to be canceled if it cannot be triggered within the specified number of minutes after the alarm's scheduled time. If the value is 0, the alarm will not be canceled no matter how late it is triggered.
flagsSpecifies the logical OR of the desired alarm flags. The flag bits are those defined in class
KAlarmIfaceinkalarmiface.h. Note that not all flag bits are applicable to email alarms.recurrenceSpecifies 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.
recurTypeSpecifies the recurrence type for the alarm. The permissible values are MINUTELY, DAILY, WEEKLY, MONTHLY, YEARLY. These are defined in class
KAlarmIfaceinkalarmiface.h. Monthly recurrences are of the day of the month type, and yearly recurrences are of the date in the year type, with the date in both cases taken from thestartDateTimeparameter.recurIntervalSpecifies the number of periods (minutes/days/weeks/months/years as specified by
recurType) between recurrences of the alarm.recurCountSpecifies the number of times that the alarm should be repeated. Specify -1 to repeat the alarm indefinitely.
endDateTimeSpecifies the end date, or date and time, for recurrences of the alarm. If
startDateTimeincludes a time, this parameter must also include a time; ifstartDateTimecontains only a date, this parameter must also contain only a date. It must not contain a time zone specifier; the same time zone as forstartDateTimeis used to interpret this parameter's value.subRepeatIntervalSpecifies the number of minutes between sub-repetitions of the alarm. Specify 0 for no sub-repetition. Ignored if no recurrence is specified.
subRepeatCountSpecifies the number of sub-repetitions of the alarm, including the initial occurrence.
Description
scheduleEmail() is a D-Bus 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, font and audio file parameters, its usage is
identical to
scheduleMessage
- see the description of that function for further details.