如何通过ebay等电子邮件开发联系卖家选项。 [英] How do I develop a contact seller option via email like ebay.

查看:175
本文介绍了如何通过ebay等电子邮件开发联系卖家选项。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想在我的项目中开发一个选项来联系卖家。它应该像Ebay联系卖家。来自和重播的邮件ID应该来自我的域名,邮件应该发送给卖家。如何通过Ebay等电子邮件开发联系卖家选项。





提前致谢。

解决方案

你应该知道在编程中有一些东西被称为变量。哪个可以填充您的应用程序(或更具体地)想要使用的任何值。例如,如果您使用 WebMail 类发送电子邮件,则会使用以下代码,



  //   client,subjectOfMessage和whatToSend是变量 

WebMail.Send(to:client,
subject:subjectOfMessage,
body:whatToSend);





你可以填写上面的变量,发送电子邮件从哪个帐户到哪个曾经的收件人使用哪个曾经的SMTP服务器就这样的事件(对不起很多哪个 - 所以永远的S)。您可以填写组织或特定客户的价值; WebMail 会发送包含该数据的电子邮件。有关在ASP.NET中发送电子邮件的更多信息,请参阅本文 [ ^ 我的。


1)您需要用户的电子邮件地址 - 您可能已经拥有它们。



2)当点击用户名或作为用户个人资料中的选项时,应该可以访问用于向该用户写入消息的表单。



3)当用户确认发送邮件时,您将其发送到收件人电子邮件地址,并将系统的电子邮件地址作为发件人。收件人将看到的唯一电子邮件地址是他自己的。为了允许他回复该消息,您在消息的页脚中插入一个自动生成的链接,该链接指向您的服务器,并且仅包含应该接收它的用户的ID以及一次性令牌或超时令牌(简单地说)一些随机标识符,您将在某些时候使其无效,因此链接不能一次又一次地用于发送回复)。上述ID应该是您的系统在内部知道接收用户的ID。



4)当收件人点击该链接时,您的系统会识别ID和令牌,如果两者都有效,你给他提供相同的形式和功能来发送消息,只是用这两个用户的反转角色。




Hi All,

I would like to develop an option in my project to contact the seller. It should something like Ebay contact seller. The from and replay mail ids should be from my domain and the message should be sent to the seller. How do I can develop a contact seller option via email like Ebay.


Thanks in advance.

解决方案

You should know that there is something know as a variable in programming. Which can be filled with any value that your application (or more specifically "you") want to use. So for example, if you use the WebMail class to send the email, then the following code would be used,

// client, subjectOfMessage and whatToSend are variables

WebMail.Send(to: client, 
             subject: subjectOfMessage,
             body: whatToSend);



You can fill the above variables, to send the email from which so ever account to which so ever recipient using which so ever SMTP server on which so ever event (Sorry for a lot of "which-so-ever"s). You can fill the values for your organisation or for your particular client; WebMail would send the email with that data. For more on sending emails in ASP.NET, you can read this article[^] of mine.


1) You need the email-addresses of your users - you probably already have them.

2) When clicking on a user name or as an option in a users profile a form for writing a message to that user should be accessible.

3) When the user confirms to send the message, you send it to the recipients email address with an email-address of your system as the sender. The only email-address the recipient will see is his own. To allow him replying to that message you insert an automatically generated link in the footer of the message that points to your server and includes only the ID of the user who should receive it and also a one-time-token or timeout-token (simply some random identifier which you will invalidate at some point so the link can't be used over and over again to send a reply). The aforementioned ID should be the ID that your system knows the receiving user by internally.

4) When the recipient clicks on that link, your system recognizes the ID and the token and if both are valid, you present him the same form and functionality for sending a message, just with reversed roles of those two users.

[edit: clarifications]


这篇关于如何通过ebay等电子邮件开发联系卖家选项。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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