> 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 # SendSetPasswordEmail # Package: memberManagement # Namespace: AuthService # Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/member-authentication/send-set-password-email.md ## Permission Scopes: Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS ## Introduction Sends a site member an email with a link to set or reset their password. The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains. --- ## REST API ### Schema ``` Method: sendSetPasswordEmail Description: Sends a site member an email with a link to set or reset their password. The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains. URL: https://www.wixapis.com/wix-sm/api/v1/auth/members/send-set-password-email Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: email Method parameters: param name: email | type: email | description: Login email of the member whose password will be set. | required: true param name: hideIgnoreMessage | type: hideIgnoreMessage | description: Whether to hide the ignore this email message . If `true`, the email tells the member they can safely ignore if they did not request the password change. Default: `false`. param name: requestedByMember | type: requestedByMember | description: > **Deprecated:** > This field has been replaced with `hideIgnoreMessage`. Whether the email is being sent by member request. If `true`, the email tells the member they can safely ignore if they did not request the password change. Defaults to `false`. Return type: SendSetPasswordEmailResponse - name: accepted | type: boolean | description: Indicates if the request was successfully received. ``` ### Examples ### Send set password email to member ```curl curl -L -X POST 'https://www.wixapis.com/members/v1/auth/members/send-set-password-email' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{ "email": "member@email.com", "hideIgnoreMessage": false }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.memberManagement.AuthService.sendSetPasswordEmail(email, options) Description: Sends a site member an email with a link to set or reset their password. The set password link is valid for 3 hours, and it can be used only once. If the link expires, the original password remains. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: email Method parameters: param name: email | type: string | description: Login email of the member whose password will be set. | required: true param name: options | type: SendSetPasswordEmailOptions none - name: hideIgnoreMessage | type: boolean | description: Whether to hide the ignore this email message . If `true`, the email tells the member they can safely ignore if they did not request the password change. Default: `false`. Return type: PROMISE - name: accepted | type: boolean | description: Indicates if the request was successfully received. ``` ### Examples ### sendSetPasswordEmail ```javascript import { authentication } from '@wix/members'; async function sendSetPasswordEmail(email,options) { const response = await authentication.sendSetPasswordEmail(email,options); }; ``` ### sendSetPasswordEmail (with elevated permissions) ```javascript import { authentication } from '@wix/members'; import { auth } from '@wix/essentials'; async function mySendSetPasswordEmailMethod(email,options) { const elevatedSendSetPasswordEmail = auth.elevate(authentication.sendSetPasswordEmail); const response = await elevatedSendSetPasswordEmail(email,options); } ``` ### sendSetPasswordEmail (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { authentication } from '@wix/members'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { authentication }, // Include the auth strategy and host as relevant }); async function sendSetPasswordEmail(email,options) { const response = await myWixClient.authentication.sendSetPasswordEmail(email,options); }; ``` ---