带有NestJS的Sendgrid多封电子邮件不工作

带有NestJS的Sendgrid多封电子邮件不工作,nestjs,sendgrid,Nestjs,Sendgrid,有人知道我使用sendGrid可能做错了什么吗 async sendTestEmail() { const result = await this.userService.getAllSubs(); const emailList = result.map((res) => res.email) console.log('emailList', emailList) const msg = { to:

有人知道我使用sendGrid可能做错了什么吗

async sendTestEmail() {
        const result = await this.userService.getAllSubs();
        const emailList = result.map((res) => res.email)
        console.log('emailList', emailList)
        const msg = {
            to: emailList, // Change to your recipient
            from: 'fernando316correia@hotmail.com', // Change to your verified sender
            subject: 'Sending with SendGrid is Fun',
            text: 'and easy to do anywhere, even with Node.js',
            html: '<strong>and easy to do anywhere, even with Node.js</strong>',
        }
        this.sendMSG
            .send(msg)
            .then(() => {
                console.log('MULTIPLE Email sent to: ', emailList)
            })
            .catch((error) => {
                console.error(error)
            })
    }
然而,这只是第一次发送。
有人有什么建议吗?

去查看电子邮件活动,看看邮件是否真的没有发送,或者客户是否在阻止邮件。所有需要知道的信息都会出现在“电子邮件活动”选项卡中。通过代码发送邮件后。登录您的sendgrid帐户,然后转到并按search。日志会在某个时间后出现,请等待。将主题更改为“随机”,然后查看邮件是否只发送给一个收件人。
emailList [ 'fernandocorreia316@gmail.com', 'a11199@alunos.ipca.pt' ]
MULTIPLE Email sent to:  [ 'fernandocorreia316@gmail.com', 'a11199@alunos.ipca.pt' ]