> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: siteCrm.emailMember(emailId: string, memberId: string, options: TriggeredEmailOptions) # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/crm/triggered-emails/email-member.md # Method Description: Sends a triggered email to the current member. To learn more about triggered emails, see: + [About Triggered Emails](https://support.wix.com/en/article/about-triggered-emails) + [Creating a Triggered Email](https://support.wix.com/en/article/creating-a-triggered-email) + [How to Send a Triggered Email to Members with Code](https://support.wix.com/en/article/how-to-send-a-triggered-email-to-members-with-code) Before calling `emailMember()` you need to set up at least 1 [triggered email](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/triggered-emails/set-up-a-triggered-email.md). This method only sends an email to the current member. You can get that member's ID using the `_id` property of the `currentMember` ([SDK](https://dev.wix.com/docs/sdk/backend-modules/members/members/get-current-member.md) | [Velo](https://dev.wix.com/docs/velo/apis/wix-members-frontend/current-member/get-member.md)). If the specified triggered email contains [variables](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/triggered-emails/set-up-a-triggered-email.md#step-3-optional--add-variables-to-personalize-text), you can specify values for those variables using the optional `options` parameter. The values specified must be strings. If the object you specify for the `options` parameter does not contain a `key:value` pair for a variable in a triggered email, the fallback value defined when creating a triggered email is inserted in place of the variable. Note that creating a triggered email [generates a code snippet](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/developer-tools/triggered-emails/set-up-a-triggered-email.md#step-6--get-the-code-snippet) for each email template. The generated code includes the email's ID and keys for all the email's variable names. Copy and paste the snippet into your code and define values for the `toUser` property and for each variable key. To learn how to use the generated snippet in your code, see [How to Send a Triggered Email with Code](https://support.wix.com/en/article/how-to-send-a-triggered-email-with-code). > **Note:** > The frontend CRM APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Send a triggered email to the current member ```javascript import { triggeredEmails } from '@wix/site-crm'; // ... // Sample emailId value: // 'thanks_for_joining' // // Sample memberId value: // '72751428-2743-4bda-acf5-4218a4279cd3' triggeredEmails.emailMember(emailId, memberId) .then(() => { console.log('Email was sent to member'); }) .catch((error) => { console.error(error); }); ``` ## Send a triggered email to the current member with variables ```javascript import { triggeredEmails } from '@wix/site-crm'; // ... // Sample emailId value: // 'thanks_for_joining' // // Sample memberId value: // '72751428-2743-4bda-acf5-4218a4279cd3' // // Sample options value: // { // variables: { // firstName: 'Johnny', // lastName: 'Appleseed' // } // } triggeredEmails.emailMember(emailId, memberId, options) .then(() => { console.log('Email was sent to member'); }) .catch((error) => { console.error(error); }); ```