c# - 我正在尝试使用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]
解决方案
如果您有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,
};
推荐阅读
- amazon-web-services - 如何修复circleci中的“无法准备上下文:无法评估Dockerfile路径中的符号链接”错误
- file - Multer 文件上传在 Firefox 中不起作用
- java - 如何在百里香模板javascript中更改值模式属性
- android - Webview 应用程序在第一次安装应用程序时工作,但之后只显示空白屏幕
- python - 在提取子集时如何保留 NAN 值?
- java - 远程执行时授予所有权限会引发访问被拒绝异常
- python - 创建具有不同python版本的conda环境时,python版本不会改变
- ubuntu - 从控制台下载 zip 文件并插入目录
- python - 加载特定的训练模型
- swift - 如何快速正确地从图像中提取数字数组?