|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Hi,
You would be better to use an auto-responder from your mail server for this task. HTH.
__________________
/* measure twice, cut once */ |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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? |
|
#5
|
||||
|
||||
|
Use VBA in Outlook or something similar ...
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#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 |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
Easymail components is the better choice for your code!
Please find it in the google with keyword "easymail" for detail. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Read E-mail on its receipt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|