Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I retreive an e-mail using SMTP?

Status
Not open for further replies.

Programmer1974

Programmer
Joined
Feb 19, 2004
Messages
33
Location
US
Hello expert SMTP people! I've seen lots of threads on sending e-mails via SMTP, but I can't find any on retreiving e-mails. So, instead of using Lotus notes (or other) to view my incomming e-mails, how can I use straight vbscript to connect to the SMTP server and retreive my e-mails that way?

I'm assuming that you'll have to provide the following to get to your e-mail:
- SMTP server name
- SMTP port
- Your e-mail address
- Password

Does anyone know how to do this?

Thank you much!
 
First of all you can't "receive" email through SMTP as it's for sending only.

For receiving you would use POP3 or IMAP4
 
Forgive me, for I'm treading on new waters here. How then can I retreive my e-mail through a POP3 or IMAP4 account? Is this possible in VB?

Thanks!
 
Yes it is possible in Visual Basic.

Read a tutorial on Winsock component

Or use the SMTP outlook express component
 
Another apporoach would be to implement TELNET into a vbscript....just search google you will find tons of information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top