首页 > 解决方案 > 我正在尝试使用mailjet通过电子邮件发送消息,但是为什么其中无法识别单词版本

问题描述

我正在尝试使用 Mailjet 通过电子邮件发送消息,但为什么其中无法识别 word 版本?我下载了mailgate包

我正在使用 asp.net core5.0 框架练习编程。

还有其他不同的方式通过电子邮件发送消息吗?

你有什么建议吗?

using Mailjet.Client;
using Mailjet.Client.Resources; 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; 
using Microsoft.AspNetCore.Identity.UI.Services;
using Newtonsoft.Json.Linq; ][1]

标签: c#asp.net-coremailjet

解决方案


如果您有Version = ApiVersion.V3_1,作为示例代码的一部分,请将其注释掉并BaseAdress在下面的示例中添加适当的行:

MailjetClient client = new MailjetClient("xxx-example-xxx", "xxx-example-xxx")
{
    BaseAdress = "https://api.mailjet.com",
    //BaseAdress = "https://api.us.mailjet.com",
    //Version = ApiVersion.V3_1,
};

推荐阅读