Skip to main content
Version: 5.2

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 Permissionmails@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
subjectMail subject
bodyMail body
userMailAddressesList containing all TimePunch users that are Receiver or Copy Receiver of the mail.
plainMailAddressesList 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 Permissionmails@access
NameModifierDescription
faultOutContains the error if an exception occurs.
authenticationUser authentication
subjectMail subject
bodyMail body
userMailAddressesList containing all TimePunch users that are Receiver or Copy Receiver of the mail.
plainMailAddressesList containing all non – TimePunch users that are Receiver or Copy Receiver of the mail.
mailAttachementsList containing all attachements for the mail.