首页 > 解决方案 > 使用 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 作为我的注册邮件服务。

标签: reactjsapiemail

解决方案


推荐阅读