projects/congarevenuecloud/ecommerce/src/lib/modules/crm/services/email.service.ts
The email service provides methods for sending email notifications to recipients which current user has access to.
AObjectService
Properties |
|
Methods |
getEmailTemplateByName | ||||||||
getEmailTemplateByName(templateName: string)
|
||||||||
This method is responsible for fetching the email template for a given template name passed.
Parameters :
Returns :
Observable<EmailTemplate>
an observable instance of the email template record matching the template name. |
Public guestUserNewOrderNotification |
This method is deprecated on Conga platform. Please use sendEmailNotificationWithTemplate method instead, to send email notifications for order confirmation. |
guestUserNewOrderNotification(orderId: string, orderURL: string)
|
Please use sendEmailNotificationWithTemplate method instead, to send email notifications for order confirmation.
Returns :
Observable<any>
|
sendEmailNotificationWithTemplate | ||||||||||||||||||||||||||||||||||||||||
sendEmailNotificationWithTemplate(templateId: string, record: AObject, recipientId: string, toAddresses?: Array<EmailInfo>, ccAddresses?: Array<EmailInfo>, bccAddresses?: Array<EmailInfo>, emailPriority: string)
|
||||||||||||||||||||||||||||||||||||||||
The method can be used to trigger email notifications based on the email template provided. Sends notification to a single user/multiple users based on the input.
Parameters :
Returns :
Observable<boolean>
a boolean observable representing the status code. |
Public sendEmailTemplate |
This method is deprecated on Conga platform. Please use sendEmailNotificationWithTemplate method instead, to send email notifications with template. |
sendEmailTemplate(templateName: string, to: User, what: AObject)
|
Please use sendEmailNotificationWithTemplate method instead, to send email notifications with template.
Returns :
Observable<any>
|
Public sendEmailToAddress |
This method is deprecated on Conga platform. Please use sendEmailNotificationWithTemplate method instead, to send email notifications with template. |
sendEmailToAddress(templateName: string, from: User, to: string, what: AObject)
|
Please use sendEmailNotificationWithTemplate method instead, to send email notifications with template.
Returns :
Observable<any>
|
statusChangeNotification | ||||||||||||||||||||||||
This method is deprecated on Conga platform. Please use sendEmailNotificationWithTemplate method instead, to send status change email notifications. | ||||||||||||||||||||||||
statusChangeNotification(templateId: string, recordId: string, recordType: AObject, recipientId: string, toAddresses?: string[], ccAddresses?: string[], attachmentIds?: string[])
|
||||||||||||||||||||||||
Please use sendEmailNotificationWithTemplate method instead, to send status change email notifications.
Parameters :
Returns :
Observable<boolean>
|
Protected contactService |
Type : ContactService
|
Default value : this.injector.get(ContactService)
|
Protected toastrService |
Type : ToastrService
|
Default value : this.injector.get(ToastrService)
|
Protected userService |
Type : UserService
|
Default value : this.injector.get(UserService)
|