如何生成代码发送电子邮件而不使用Outlook ....? [英] How to Generate Code to send email without use Outlook....?

查看:111
本文介绍了如何生成代码发送电子邮件而不使用Outlook ....?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们正在为静态网站创建一个联系我们,我们希望生成代码以便在没有使用outlook的情况下向管理员发送电子邮件,我们收到输入只有客户姓名,客户电子邮件和客户评论.....



请尽快告诉我解决方案。



谢谢你,





问候,

Rohit Gurav

解决方案

在HTML中?令人讨厌且危险:机器人抓取电子邮件地址,您必须将其作为网页的一部分提供才能使用它。如果你不介意你的服务器永远被垃圾邮件,那么MAILTO仍然可以工作(尽管如果用户使用gmail或类似软件,这对用户来说很麻烦)。 Google会为您找到示例。



更好的想法是在代码隐藏中执行:简单安全!

使用或不使用附件在C#中发送电子邮件:通用例程。 [ ^ ]

Hi,

We are create a contact us from for Static website, we want to generate code to send email to admin without use outlook, we are taken input only Customer Name, Customer Email and Customer Comments.....

Please tell me solution about this as soon as possible.

Thank u,


Regards,
Rohit Gurav

解决方案

In HTML? Nasty, and dangerous: bots crawl for email addresses, which you have to provide as part of your webpage in order to use it. If you don't mind your server being spammed forever, then MAILTO will still work (though it's cumbersome for the user if they use gmail or similar). Google will find you examples.

A better idea is to do it in the codebehind: Simple and safe!
Sending an Email in C# with or without attachments: generic routine.[^]


这篇关于如何生成代码发送电子邮件而不使用Outlook ....?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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