File size: 279 Bytes
9b30f5f
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { MAILGUN_API_KEY } from '$env/static/private';
import Mailgun from 'mailgun.js';
import formData from 'form-data';

const mailgun = new Mailgun(formData);

export const mg = mailgun.client({
	username: 'api',
	key: MAILGUN_API_KEY,
	url: 'https://api.eu.mailgun.net'
});