
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@evokegroup/mailgun
Advanced tools
A lightweight library for sending email via Mailgun.
Requires NodeJS 18+
npm install @evokegroup/mailgun
Property | Type | Default | Description |
---|---|---|---|
apiKey | string | The Mailgun API key | |
domain | string | The sending domain | |
version | string | v3 | The API version |
Parameter | Type | Default | Description |
---|---|---|---|
apiKey | string | The Mailgun API key | |
domain | string | The sending domain | |
version | string | v3 | The API version |
import { MailgunClient } from '@evokegroup/mailgun';
const mg = new MailgunClient({ apiKey: '*****', domain: 'my.domain.com' });
Sends email via the Mailgun API
Parameter | Type | Default | Description |
---|---|---|---|
from | string ¦ IMailAddress ¦ MailAddress | ||
to | (string ¦ IMailAddress ¦ MailAddress)[] | ||
cc | (string ¦ IMailAddress ¦ MailAddress)[] | ||
bcc | (string ¦ IMailAddress ¦ MailAddress)[] | ||
subject | string | ||
html | string | ||
text | string | ||
testmode | boolean | false | Sends the request to the Mailgun API but the message will not be sent. |
args | object | {} | Additional API parameters. |
returns Promise<IWebResponse>
import { MailgunClient } from '@evokegroup/mailgun';
const mg = new MailgunClient({ apiKey: '*****', domain: 'my.domain.com' });
mg.sendAPI({
to: ['john.doe@domain.com'],
from: { name: 'First Last', address: 'first.last@domain.com' },
subject: 'Hello World!',
html: '<!DOCTYPE html>\r\n<html><head><title>World</title></head><body><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="450" align="center" bgcolor="#cccccc"><tr><td>HTML - Hello World!</td></tr></table></td></tr></table></body></html>',
text: 'TEXT - Hello World!'
})
.then((response) => {
// do something
})
.catch((ex) => {
// handle error
});
Sends mail via the Mailgun API MIME method.
Parameter | Type | Default | Description |
---|---|---|---|
message | MimeMessage ¦ IMailgunMimeMessage | The MIME message | |
opts | object | {} | Additional options |
opts.forceMultipartAlternative | boolean | false | Force the MIME message to be created using multipart/alternative |
opts.testmode | boolean | false | Sends the request to the Mailgun API but the message will not be sent. |
opts.args | object | {} | Additional API parameters. |
returns Promise<IWebResponse>
@evokegroup/mime
import { MailgunClient } from '@evokegroup/mailgun';
import { MimeMessage } from "@evokegroup/mime";
const mg = new MailgunClient({ apiKey: '*****', domain: 'my.domain.com' });
const message = new MimeMessage();
message.from = { name: 'First Last', address: 'first.last@domain.com' };
message.subject = 'Hello World!';
message.to.add('john.doe@domain.com');
message.setHTML('<!DOCTYPE html><html><head><title>World</title></head><body><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td><table cellpadding="0" cellspacing="0" border="0" width="450" align="center" bgcolor="#cccccc"><tr><td>HTML - Hello World!</td></tr></table></td></tr></table></body></html>');
message.setText('TEXT - Hello World!');
mg.sendMIME(message)
.then((response) => {
// do something
})
.catch((ex) => {
// handle error
});
import { MailgunClient } from '@evokegroup/mailgun';
function createMimeMessage() {
// Create a MIME message by some means and return it as a string
}
const mg = new MailgunClient({ apiKey: '*****', domain: 'my.domain.com' });
mg.sendMIME({
to: ['john.doe@domain.com'], // mailgun requires the recipient list even if it's already in the MIME message
message: createMimeMessage()
})
.then((response) => {
// do something
})
.catch((ex) => {
// handle error
});
Parses an incomming message.
Parameter | Type | Default | Description |
---|---|---|---|
message | string | ||
all | boolean | false | Parse all the data |
returns Record<string, string> ¦ IMailgunMessage
Property | Type |
---|---|
to | string ¦ IMailAddress |
from | string ¦ IMailAddress |
subject | string |
html | string |
text | string |
Property | Type |
---|---|
to | (string ¦ IMailAddress ¦ MailAddress)[] |
message | string |
FAQs
A lightweight library for sending email via Mailgun.
The npm package @evokegroup/mailgun receives a total of 8 weekly downloads. As such, @evokegroup/mailgun popularity was classified as not popular.
We found that @evokegroup/mailgun demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
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.