- 重置密码邮件
- 链接激活
- 验证码激活
- 账户注册成功邮件,通知
- 认证成功邮件,通知
mailto: 发送邮件
function Mailto(props) {
const { email, subject = '', body = '', children } = props;
return (
<a href={`mailto:${email}?subject=${subject}&body=${body}`}>
{children}
</a>
);
}
export default Mailto
Mailto 组件
<Mailto email="foo@bar.baz" subject="Hello" body="Hello world!">
发送邮件
</Mailto>