import { Injectable } from '@nestjs/common';

@Injectable()
export class NodemailerAdapter {
  constructor() {
    // 注意：需要安装 nodemailer 包
    // npm install nodemailer @types/nodemailer
  }

  async sendMail(options: {
    to: string;
    subject: string;
    text?: string;
    html?: string;
  }): Promise<void> {
    // 临时实现，需要安装 nodemailer 后启用
    console.log('发送邮件:', options);
    throw new Error('请先安装 nodemailer 包');
  }

  async verifyConnection(): Promise<boolean> {
    // 临时实现
    return false;
  }
}
