如何发送无回复电子邮件? [英] how to send no-reply email?
本文介绍了如何发送无回复电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我需要在特定时间向用户发送无回复电子邮件。我不能利用wcf服务,因为我是初学者,所以对我来说太复杂了。我想知道它不能在MVC本身完成?请注意它。
hi there, I need to send no-reply email to the users in particular time. I can't utilize wcf services , it's too complex to understand for me as I am a beginner. I wonder it can't be done in MVC itself ? please shade some light on it.
推荐答案
1.在C#中发送电子邮件不依赖于MVC或WCF技术,您应该使用用于发送电子邮件的SmtpClient
和MailMessage
类。
您可以找到有关发送的详细信息C#中的电子邮件,包括下一个 MSDN链接中的源代码示例。 [ ^ ]
2.创建非重播电子邮件不是C#的任务,是您的邮箱配置;您可以创建一个新的电子邮件帐户,例如noreply@YourDomain.com
然后将您的邮箱设置为忽略此电子邮件帐户的收到邮件。
1.The sending of email in C# do not depend of MVC or WCF technologies, you should useSmtpClient
andMailMessage
classes for sending emails.
You can find details about sending emails in C#, including source code example at the nextMSDN link.[^]
2.The creation of a non replay email is not C#'s task, is your mailbox configuration; you can create a new email account likenoreply@YourDomain.com
then set your mailbox to ignore incoming messages for this email account.
这篇关于如何发送无回复电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文