E
E
Emil Revencu2016-02-14 20:53:16
gmail
Emil Revencu, 2016-02-14 20:53:16

How to read mail configured for windows 7 Mail on Classic ASP?

Set up mail in the control panel. Outlook reads mail, so all the settings are correct.
How to receive emails via Classic ASP (with attachments)?
Found this code on the net:

Set objSession = Server.CreateObject("CDONTS.Session")
objSession.LogonSMTP "MyAccount", "best********@gmail.com"
Set objInbox = objSession.Inbox
Set strMessages = objInbox.Messages
For Each strMessage in strMessages
MsgId=strMessage.Subject
sentby=strMessage.Author
sender=strMessage.Sender
Message=strMessage.TextNext
...
next
objSession.LogOff

But in Windows 7 there is no CDONTS object.
How to use customized mail in the system using Classic ASP?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question