Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old January 14th, 2003, 12:29 AM
vikaspa vikaspa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Mumbai
Posts: 72 vikaspa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 27 sec
Reputation Power: 6
Read E-mail on its receipt

Dear Sir

first I am thankful for the help provided by you.

I want to read the e-maild etails on receipt of the same.

e.g. I want to send reply (auto) with reference to his 'subject'

Example If user snd me e-mail with subject "Hi"
i will be sending meesage with subject as Response to "hi" from Mr.Xy and text matter as "Thanks for your e-mail we will respond you soon"


Can I read the e-mail text ?
Pleas einform me accordingly

Reply With Quote
  #2  
Old January 16th, 2003, 09:04 AM
mrTed's Avatar
mrTed mrTed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: a northern town
Posts: 74 mrTed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 49 sec
Reputation Power: 7
Hi,

You would be better to use an auto-responder from your mail server for this task.

HTH.
__________________
/* measure twice, cut once */

Reply With Quote
  #3  
Old January 16th, 2003, 11:15 AM
vikaspa vikaspa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Mumbai
Posts: 72 vikaspa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 27 sec
Reputation Power: 6
I want to read the message

Dear All

I donot want the 'auto responder...' I want to read th e subject and mail text too.


Please
Please
help me

Reply With Quote
  #4  
Old January 16th, 2003, 11:19 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,829 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 5 m 8 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
I don't see your reasoning behind this.
If you are going to be doing this as a service then why not just use the tools that are already as mrTed suggested?

Reply With Quote
  #5  
Old January 16th, 2003, 12:25 PM
pabloj's Avatar
pabloj pabloj is online now
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,634 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 10 h 59 m
Reputation Power: 259
Use VBA in Outlook or something similar ...

Reply With Quote
  #6  
Old January 17th, 2003, 01:41 PM
vikaspa vikaspa is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Mumbai
Posts: 72 vikaspa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 27 sec
Reputation Power: 6
I need to read subject and mail matter

Please

I need to read subject of the e-m,ail received..

Please suggest the code
or url to get this code

I will be really reallty hrateful to all of you

Reply With Quote
  #7  
Old September 11th, 2003, 05:36 AM
saxtonj saxtonj is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 11 saxtonj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 32 sec
Reputation Power: 0
Try this - although a bit messy

Select from Project>Components the Microsoft MAPI Controls

Then do the following to connect a session to your email

With MAPISession1
.UserName = strUser
.Password = strPassword
.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
End With

Now use the MAPIMessages to retrieve email like so and reply - as an example

Private Sub Command1_Click()

Text1.Text = ""

frmMDIMain.MAPIMessages1.Fetch
Text1.Text = Text1.Text & "Message Subject = " & frmMDIMain.MAPIMessages1.MsgSubject
Text1.Text = Text1.Text & vbCrLf & "MsgOrigDisplayName = " & frmMDIMain.MAPIMessages1.MsgOrigDisplayName
strReplyName = frmMDIMain.MAPIMessages1.MsgOrigDisplayName

End Sub

Private Sub Command2_Click()

frmMDIMain.MAPIMessages1.Reply

frmMDIMain.MAPIMessages1.MsgNoteText = "Thanks for your e-mail we will respond to you soon"
frmMDIMain.MAPIMessages1.RecipAddress = strReplyName

frmMDIMain.MAPIMessages1.ResolveName

frmMDIMain.MAPIMessages1.Send

End Sub

Last edited by saxtonj : September 11th, 2003 at 05:39 AM.

Reply With Quote
  #8  
Old September 11th, 2003, 12:26 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,687 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 16 h 39 m 15 sec
Reputation Power: 688
You can also use a number of 3rd party Email components to read mail programatically from both POP3 and IMAP servers. JMail from www.dimac.net is one. CDONTS and CDOSYS also can read mail.

Reply With Quote
  #9  
Old September 11th, 2003, 11:21 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Easymail components is the better choice for your code!
Please find it in the google with keyword "easymail" for detail.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Read E-mail on its receipt


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway