TimePunch Mailing Service
This service contains methods in ordert o send mails within TimePunch.
SendMail
This method sends an email within TimePunch. The sender of the email is always the authorized employee.
void SendMail(
out TpFault fault,
TpAuthentication authentication,
string subject,
string body,
IEnumerable<UserMailAddressDto> userMailAddresses,
IEnumerable<PlainMailAddressDto> plainMailAddresses);
Needed Permission | mails@access | |
---|---|---|
Name | Modifier | Description |
fault | Out | Contains the error if an exception occurs. |
authentication | User authentication | |
subject | Mail subject | |
body | Mail body | |
userMailAddresses | List containing all TimePunch users that are Receiver or Copy Receiver of the mail. | |
plainMailAddresses | List containing all non – TimePunch users that are Receiver or Copy Receiver of the mail. |
SendMailWithAttachements
This method sends a mail within TimePunch with appropriate attachments. The sender of the email is always the authorized employee.
void SendMailWithAttachements(
out TpFault fault,
TpAuthentication authentication,
string subject,
string body,
IEnumerable<UserMailAddressDto> userMailAddresses,
IEnumerable<PlainMailAddressDto> plainMailAddresses,
IEnumerable<MailAttachementDto> mailAttachements);
Needed Permission | mails@access | |
---|---|---|
Name | Modifier | Description |
fault | Out | Contains the error if an exception occurs. |
authentication | User authentication | |
subject | Mail subject | |
body | Mail body | |
userMailAddresses | List containing all TimePunch users that are Receiver or Copy Receiver of the mail. | |
plainMailAddresses | List containing all non – TimePunch users that are Receiver or Copy Receiver of the mail. | |
mailAttachements | List containing all attachements for the mail. |