1.1.2 • Published 5 months ago

parse-server-aws-ses-mail-adapter v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Parse Server AWS SES Mail Adapter

This is an AWS SES mail adapter for Parse Server.

Installation

npm install parse-server-aws-ses-mail-adapter

Usage

const ParseServer = require('parse-server').ParseServer;
const awsSesMailAdapter = require('parse-server-aws-ses-mail-adapter');

const mailAdapter = awsSesMailAdapter({
  region: 'YOUR_AWS_REGION',
  accessKeyId: 'YOUR_AWS_ACCESS_KEY_ID',
  secretAccessKey: 'YOUR_AWS_SECRET_ACCESS_KEY',
  from: 'your-email@example.com'
});

const api = new ParseServer({
  // ... other configurations
  emailAdapter: mailAdapter
});

Configuration Options

  • region: AWS Region
  • accessKeyId: AWS Access Key ID
  • secretAccessKey: AWS Secret Access Key
  • from: Sender's email address

Custom Email Templates

You can customize the content and subject of verification emails. Add the following options when initializing the adapter:

const mailAdapter = awsSesMailAdapter({
  // ... other configurations
  verificationBody: 'Dear %username%,\n\n' +
    'Please verify your email address %email%\n' +
    'Click the following link to verify:\n' +
    '%link%\n\n' +
    'Thank you!\n' +
    '%appname%',
  verificationSubject: '%appname% - Please Verify Your Email',
  // Password reset email settings
  passwordResetBody: 'Dear %username%,\n\n' +
    'You have requested to reset your password.\n' +
    'Click the following link to reset your password:\n' +
    '%link%\n\n' +
    'If you did not request this, please ignore this email.\n\n' +
    'Thank you!\n' +
    '%appname%',
  passwordResetSubject: '%appname% - Password Reset Request'
});

Available variables:

  • %username%: Username
  • %email%: Email address
  • %appname%: Application name
  • %link%: Verification link (for email verification) or reset link (for password reset)

If no custom templates are provided, the system will use default English templates.

License

ISC

1.1.2

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.0.0

5 months ago

0.7.1

5 months ago

0.8.0

5 months ago

0.7.0

5 months ago

0.6.0

5 months ago

0.5.0

5 months ago

0.4.0

5 months ago

0.3.0

5 months ago

0.2.0

5 months ago

0.1.0

5 months ago