{"id":21064372,"url":"https://github.com/ryanvu/parse-hubspot-mail-adapter","last_synced_at":"2025-03-14T01:27:46.579Z","repository":{"id":96473792,"uuid":"584833666","full_name":"ryanvu/parse-hubspot-mail-adapter","owner":"ryanvu","description":"Mail Adapter for parse to send emails through HubSpot","archived":false,"fork":false,"pushed_at":"2023-02-28T22:57:28.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T20:51:26.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanvu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-03T16:24:42.000Z","updated_at":"2023-01-03T16:25:43.000Z","dependencies_parsed_at":"2023-04-26T10:32:43.175Z","dependency_job_id":null,"html_url":"https://github.com/ryanvu/parse-hubspot-mail-adapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanvu%2Fparse-hubspot-mail-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanvu%2Fparse-hubspot-mail-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanvu%2Fparse-hubspot-mail-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanvu%2Fparse-hubspot-mail-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanvu","download_url":"https://codeload.github.com/ryanvu/parse-hubspot-mail-adapter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243507486,"owners_count":20301853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T17:49:20.805Z","updated_at":"2025-03-14T01:27:46.533Z","avatar_url":"https://github.com/ryanvu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-hubspot-mail-adapter\nUsed to send Parse Server password reset and email verification emails though HubSpot\n\n\n## How to use\nCreate your emails within your HubSpot dashboard first!\n\nIn your HubSpot emails for **Email Verification** \u0026 **Password Reset** please create properties based off of this **_PublicSingleSendRequestEgg_**:\n```\n{\n  message: { recipient },\n  contactProperties: { firstname },\n  customProperties: { link }, // the link that Parse will create for respective action above\n  emailId: 'your email id for respective email template'\n}\n```\n\n*__Generic Email__*: The body of the generic email will be passed in as a string of markdown.\n```\n{\n  message: { recipient },\n  customProperties: { body },\n  emailId: 'your email id for respective email template'\n}\n```\n\n## Configuration in ParseServer\n\n```\nconst server = ParseServer({\n  ...\n  emailAdapter: {\n    module: 'parse-hubspot-mail-adapter',\n    options: {\n      // Your Access Token for HubSpot\n      accessToken: 'your-hubspot-access-token',\n      // Used for modifying a custom subject line if genericOnly flag is used\n      // i.e. appName: 'app' --\u003e Subject lines will be \"app | Verify your email\"\n      appName: 'Name of your app',\n      // Your verification email ID\n      verificationEmailId: 'email-id-for-verification-email',\n      // Your Password Reset email ID\n      passwordResetEmailId: 'email-id-for-password-reset-email',\n      // Your generic email ID\n      genericEmailId: 'email-id-for-generic-email',\n      // This will send the email verification, password reset email with your generic Email Id\n      // true if you want to create your emails with HTML instead of creating them in HubSpot.\n      genericOnly?: boolean,\n      // paths to point to your email html files\n      verificationEmailFolder: './public/path/to/verificationEmails',\n      passwordResetFolder: './public/path/to/passwordResetEmails',\n      // The name property of the Parse User you'd like to use ('firstName', 'name', 'username') \n      // defaults to 'firstName' if no property is passed in\n      defaultNameProperty: 'firstName',\n      // default language if a user does not have a preferred language\n      defaultUserLanguage: 'en',\n      // the name of the column of the user properties for language preferences\n      userLanguagePropertyName: 'lang'\n    }\n  }\n  ...\n});\n```\n\n## Using genericOnly flag\nIf you want to send emails based off of a users language please create a folder with two seperate folders for each kind of Email you'd like to send:\n\n*__example__*\n\n```bash\npublic\n├───i18n\n│   ├───passwordReset // en.html, ja.html, ar.html\n│   └───verificationEmail // en.html, ja.html, ar.html\n```\n\n*__HTML Templates__*: \n**en.html**:\n```html\n\u003cdiv\u003e\n  \u003cp\u003e Hello \u003c%= firstname %\u003e\u003cp\u003e\n  \u003cp\u003e Please verify your email with this \u003ca href=\"\u003c%= link %\u003e\"\u003elink\u003c/a\u003e.\u003cp\u003e\n\u003c/div\u003e\n```\n\nPlease write your HTML with the *ejs* template sytax, as this adapter will be looking to replace them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanvu%2Fparse-hubspot-mail-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanvu%2Fparse-hubspot-mail-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanvu%2Fparse-hubspot-mail-adapter/lists"}