@b2y/email-service 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Config.js CHANGED
@@ -10,7 +10,6 @@ const Config = {
10
10
  smtpPort: process.env.SMTP_PORT,
11
11
  emailUser: process.env.EMAIL_USERNAME,
12
12
  emailPass: process.env.EMAIL_PASSWORD,
13
- fromEmail: process.env.FROM_EMAIL,
14
13
 
15
14
  // SendGrid Configuration
16
15
  sendGridApiKey: process.env.SENDGRID_API_KEY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b2y/email-service",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "index.js",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -28,7 +28,6 @@ class NodeMailerProvider extends BaseProvider {
28
28
  ...options,
29
29
  from: options.from || Config.emailUser
30
30
  });
31
-
32
31
  const result = await this.transporter.sendMail(mailOptions);
33
32
 
34
33
  logger.info('Email sent successfully via Nodemailer', {
@@ -17,7 +17,7 @@ class SendgridProvider extends BaseProvider {
17
17
 
18
18
  const mailOptions = {
19
19
  to: this.formatRecipients(to),
20
- from: Config.fromEmail,
20
+ from: Config.emailUser,
21
21
  subject,
22
22
  html,
23
23
  };
@@ -39,7 +39,7 @@ class EmailService {
39
39
  recipients,
40
40
  subject,
41
41
  attachments = [],
42
- from = Config.fromEmail
42
+ from = Config.emailUser
43
43
  } = options;
44
44
 
45
45
  try {