English 中文(简体)
how to connect to hotmail server?
原标题:

i am developing a website in wich i want to connect to hotmail server to read and send emails through my website but i am not able to connect to server..i am using pop3 and smtp i am getting error as below

[System.Net.Sockets.SocketException] = {"The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for"}

StackTrace = " at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.Resolve(String hostName) at Pop3.Pop3Client.GetClientSocket() in C:Documents and SettingsDSTMy DocumentsVisual Studio 2008Projectshot...

TargetSite = {System.Net.IPHostEntry InternalGetHostByName(System.String, Boolean)}

i am gettin this error when i call a function as

IPHostEntry hostEntry = null;

    hostEntry = Dns.Resolve(m_credential.Server);

please help me to solve this problem

问题回答

Looks to me like you might be way off from your goal and perhaps making things much too complicated than necessary. Sending email from .Net via the SmtpClient class is a fairly simple process. Have a look here.

Here is a nice-looking tutorial for sending email via SmtpClient.

And here is a sample for reading pop3 email from Gmail (should be easy to change to Hotmail.)

Good luck!





相关问题
CHATGPT Integration [closed]

Can anyone please let me know the steps to integrate ChatGPT in to a website using Api with python I am expecting Chat GPT integration process in to a website for my process. So please let me know the ...

using perforce with team foundation server

Does Team Foundation Server 2008 or upcoming 2010 work with perforce as the SCM tool? I haven t been able to find any documentation on the web indicating whether or not this configuration is supported?...

Adding Crystal Reports support into LAMP product

We have a newly documented feature request, from sales and support, to integrate Crystal Reports into our LAMP product. (It s more like LAPP, really, with Postgres and PHP.) I have to admit, ...

how to connect to hotmail server?

i am developing a website in wich i want to connect to hotmail server to read and send emails through my website but i am not able to connect to server..i am using pop3 and smtp i am getting error as ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

热门标签