我正在将EmailJs与我的mern堆栈应用程序集成。我可以通过代码传递/更改我的电子邮件地址吗?目前,它正在发送一封电子邮件到我已经注册了EmailJs的地址。我想发送一封电子邮件到我在运行时写的地址。
const variables = {
message_html: 'message',
from_name:'name',
reply_to: "email@gmail.com"
}
window.emailjs.send(
'gmail',
templateId,
variables
).then(res => {
console.log('Email successfully sent!')
})
// Handle errors here however you like, or use a React error boundary
.catch(err => console.error('Oh well, you failed. Here some thoughts on the error that occured:', err)) 发布于 2020-05-02 17:15:23
不,EmailJS似乎不支持垃圾邮件的任意电子邮件地址,您必须通过Connect your own email service来接收电子邮件。
https://stackoverflow.com/questions/61549264
复制相似问题