
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
payload-email-azure
Advanced tools
This adapter allows you to send emails using Azure Email Communication Services
pnpm add payload-email-azure
import { azureEmailAdapter } from "payload-email-azure";
export default buildConfig({
email: azureEmailAdapter({
defaultFromAddress: "DoNotReply@notify.example.com",
connectionString: process.env.AZURE_EMAIL_CONNECTION_STRING,
}),
});
Note: The
defaultFromAddress
must match one of the pre-configuredEmailFrom
addresses in your Azure Communication Service resource.
There are a few different options available for authenticating an email client with Azure.
import { azureEmailAdapter } from "payload-email-azure";
export default buildConfig({
email: azureEmailAdapter({
defaultFromAddress: "noreply@notify.example.com",
connectionString: process.env.AZURE_EMAIL_CONNECTION_STRING,
}),
});
You may also choose to authenticate with Microsoft Entra ID using the
@azure/identity
package.
import { azureEmailAdapter } from "payload-email-azure";
import { DefaultAzureCredential } from "@azure/identity";
export default buildConfig({
email: azureEmailAdapter({
defaultFromAddress: "noreply@notify.example.com",
endpoint: process.env.AZURE_EMAIL_ENDPOINT,
// The DefaultAzureCredential uses the following environment variables:
// AZURE_CLIENT_SECRET, AZURE_CLIENT_ID and AZURE_TENANT_ID
credential: new DefaultAzureCredential(),
}),
});
You can also choose to authenticate the email client using an
AzureKeyCredential. Both the key
and the endpoint
can be founded on the
"Keys" pane under "Settings" in your Communication Services Resource.
import { azureEmailAdapter } from "payload-email-azure";
import { AzureKeyCredential } from "@azure/core-auth";
export default buildConfig({
email: azureEmailAdapter({
defaultFromAddress: "noreply@notify.example.com",
endpoint: process.env.AZURE_EMAIL_ENDPOINT,
credential: new AzureKeyCredential(process.env.AZURE_EMAIL_KEY),
}),
});
FAQs
Payload Azure Email Adapter
We found that payload-email-azure demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.