使用c#.net发送邮件 [英] Sending mails using c#.net

查看:97
本文介绍了使用c#.net发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在开发Windows应用程序,因此我必须从用户提供的电子邮件ID发送邮件.但是现在我正在考虑,我将创建自己的ID,然后从中发送,但是我必须在收件箱中将from邮件ID显示为用户的Mail ID,并且当他们单击收件人的邮件,它将显示用户的邮件ID,而不是显示我的邮件ID.有什么办法可以解决这个问题,请提供任何代码来帮助我.

谢谢.

Hi everybody,
I am developing a windows application, and in that i have to send mail from the email id that the user given. But now i am thinking about , i wil create my own id and from that i will send, but i have to display the from mail id in their inbox as user''s mail id, and also while they clicking on the reply button from the recipients mail, it will show the user''s mail id instead of showing my mail id. Is there any way to solve this pblm, So pls help me by providing any code.

Thanking you.

推荐答案

为什么不只是从用户那里发送呢?您可以将其ID设为发送其ID的名称,但仍要使用他们的ID.您不能从您的计算机发送邮件,而让邮件程序的另一端说谎该邮件是谁的发件人.
Why not just send it from the user ? You can make your id the name it sends from, but still send it from theirs. You can''t send it from yours and have the mail program at the other end lie about who the sender was.


请不要按"answer"来询问更多信息问题,请修改您的信息.

在您的Google搜索之后发送已阅读过的电子邮件的任何示例都将包含用于设置发件人"地址的代码.您可以将其设置为任何您喜欢的.问题是,您希望显示的回复地址和发送回的地址不同.那是不可能的.您将回复地址设置为另一端的邮件程序将要回复的地址.
Please don''t push ''answer'' to ask more questions, edit your post.

Any of the examples for sending emails that you''ve been reading after your google search will contain code to set the ''from'' address. You can set that to anything you like. The issue is, you want the reply address shown and the address it gets sent back to, to be different. That is the bit that is impossible. What ever you set the reply address to, is what the mail program on the other end will reply to.


感谢您的回复,

但是我已经看到,有时我们会从其他网站的广告中收到朋友的邮件,它不是由我们的朋友发送的,实际上是从网站的邮件ID发送的.他们将如何处理?
我对此一无所知,因此请提供解决方案来帮助我

谢谢
Thank you for your reply,

But i have seen that ,some times we will get the mails from our friends with the advertisements of some other websites, its not sending by our friends , it is actually sent from the website mail id.How will they do?
I dont have any idea about that, so please help me by providing a solution

Thanking you


这篇关于使用c#.net发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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