mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-08 02:32:09 +00:00
refactor: upgrade project to Typescript 5.9
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import * as nodemailer from 'nodemailer';
|
||||
import {MailOptions} from 'nodemailer/lib/sendmail-transport';
|
||||
import {SendMailOptions} from 'nodemailer';
|
||||
import {deleteUndefinedProperties, isProductiveEnvironment, RecursivePartial} from './common.js';
|
||||
import {VerifiableTransport} from './transport.js';
|
||||
|
||||
@@ -310,7 +310,7 @@ export class SMTP extends VerifiableTransport {
|
||||
* Sends a mail object
|
||||
* @param mail Mail to send
|
||||
*/
|
||||
public async sendMail(mail: MailOptions): Promise<string> {
|
||||
public async sendMail(mail: SendMailOptions): Promise<string> {
|
||||
// info is the response of the smtp server
|
||||
let info = await this.transportAgent.sendMail(mail);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user