表格填写后如何发送电子邮件? [英] How to send email after the form has been filled out?

查看:179
本文介绍了表格填写后如何发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有保存用户操作,管理员使用该操作来向网站添加新用户。但是,我的客户想要另一个功能,他们希望我实现帐户请求,其形式与管理员填写的相同,但此表单会将用户的输入发送给管理员。我知道这听起来很荒谬,但这是客户想要的。



所以用户应该填写



姓名:

电邮:

角色:[复选框] -Admin,所有访问用户,运营商,BS,AMD

市场:[选择选项]奥斯汀,德克萨斯州,亚特兰大,乔治亚州,国家


因此,用户将填写姓名,发送电子邮件并检查其中一个角色,然后选择其中一个选项。之后,这些填好的信息应该通过电子邮件发送给所有拥有管理员角色的用户。



我尝试了什么:



我创建了一个课程,我可以通过
获得角色,市场的价值


I currently have 'Save User' action which admin uses in order to add new users to the website. However, my client wants another feature where they want me to implement 'request for an account' which will have the same form as the one admin fills out but this form will send user's input to the admins. I know it sounds ridiculous but this is what client wants.

so user should fill out

Name:
Email:
Role: [checkbox] -Admin, All Access User, Operator, BS, AMD
Markets: [select options] Austin, TX, Atlanta, GA, National

So user is going to fill out name, email and check one of the roles, and select one of the options. After that, these filled out information should get sent via email to all users who have admin roles.

What I have tried:

I have created a class where I can get values for roles, markets by

<pre lang="c#">

 public  class RequestAccountModel
    {
        public IList<MarketModel> markets;
        public List<string> roles;
    }







 public interface IRequestAccountService
    {
        RequestAccountModel getName(string name);
        RequestAccountModel getEmail(string email);
        IList<RequestAccountModel> getLists();

       
    }
}





我不知道该做什么这点。我是否必须为此功能创建另一个表?救命!谢谢!



I don't know what to do at this point. Do I have to create another table just for this feature? Help! Thanks!

推荐答案

LMGTFY [ ^ ]


这篇关于表格填写后如何发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆