Jump to content

Read Email via asp


andre@oriontech.no

Recommended Posts

Hi. :) Is there anyone who can tell me how to read a email on my web site? :) Today I use CDO for outgoing code, but for what I want, incoming Email CDO.Example for what I have today' Outgoing SMTP server objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 objCDOSYSCon.Fields.UpdateI want this, so I can link the email to a customer on a customer site.BestAndy

Link to comment
Share on other sites

Hi. :) Is there anyone who can tell me how to read a email on my web site? :) Today I use CDO for outgoing code, but for what I want, incoming Email CDO.Example for what I have today' Outgoing SMTP server objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 objCDOSYSCon.Fields.UpdateI want this, so I can link the email to a customer on a customer site.BestAndy
Good MorningobjCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" instead of localhost add the ip for your client's mail server
Link to comment
Share on other sites

Good MorningobjCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" instead of localhost add the ip for your client's mail server
But instead of using IP, how aboute use a setting like outlook?Example:Incoming email(POP3)mail.hotmail.comaccountname:andre@hotmail.comPassword:PasswordShould I use something like theis then?objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.hotmail.com"objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/account") = "andre@hotmail.com"objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/Password") = "Password"Is this gonna work? :)
Link to comment
Share on other sites

What ever happened to testing something to find out if it works or not? Or, god forbid, checking documentation. Here's an article with links to all of the specs and documentation you would need about the CDO.Message object:http://classicasp.aspfaq.com/email/how-do-...l-with-cdo.htmlIt sounds like you're trying to check email. SMTP is not for checking email, it is for sending email. If you want to check email you use POP3 instead of SMTP.http://www.google.com/search?hl=en&cli...amp;btnG=Search

Link to comment
Share on other sites

Hi justsomeguy. Yes, I'm trying to check email. There's plenty of stuff on web, but mostly it's software u have to install on u're server.But I'm just renting a spase on a server from a webhost. They use Persits, and of course, not able too use this script. :mellow: 'scriptSet Mail = Server.CreateObject("Persits.MailSender")Mail.Host = "mail.email.com"Mail.UserName = "email@email.com"Mail.Password = "pass"Mail.OpenPop3So, is there a script u know aboute, u don't need too install software on server? :) Best regardsAndy :)

Link to comment
Share on other sites

I don't know, you will want to look into the documentation for Persits. You're creating an object called MailSender and then trying to use a method called OpenPop3. I doubt a sender object would have a pop3 method.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...