我如何从Rails网站上的红宝石发送电子邮件我不想将数据存储在数据库中。我只想像这样简单的形式发送电子邮件
<form action="mailto:[email protected]" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name"><br>
E-mail:<br>
<input type="text" name="mail"><br>
Comment:<br>
<input type="text" name="comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
此表格不起作用
正如我从您的代码中看到的那样,您基本上是在问如何在Rails中实现简单的联系表单。您可能想在mail_form
]处签出宝石https://github.com/heartcombo/mail_form