reactjs - 使用 EmailJS 调用发送 api 时连接超时
问题描述
send(
'service_id',
'template_id',
toSend,
'user_id',
)
.then((response) => {
console.log('SUCCESS!', response.status, response.text);
alert('Sent!');
})
.catch((err) => {
console.log('FAILED...', err);
});
这是我的代码。我不知道发生了什么,但即使我从他们的网站测试示例模板,我的电子邮件也无法通过。顺便说一句,我使用 Gmail 作为我的注册邮件服务。
解决方案
推荐阅读
- c# - 在接受不同数量参数的单独类中重构存储过程方法
- sql - 如何计算所有不同的行?
- python - if、elif、else 条件
- python - 在数据帧行上迭代 for 循环
- creation - Premake (lua) pch create /Yc Visual Studio
- c - 没有完整路径的 gcc:尝试执行“cc1”时出错:execvp:没有这样的文件或目录
- python - 无缘无故多次调用 send_from_directory 函数
- docker - 如何让我的 dockerized Python 应用程序在 2 个单独的端口上输出?
- c - 如果我使用 QtCreator 构建,从共享对象到主应用程序的调用会中断
- swift - 使用 @dynamic 快速替代这个 Obj-C 模式?