|
-
Apr 4th, 2009, 01:06 AM
#1
Thread Starter
Hyperactive Member
Collecting data from ms outlook
Hello everyone, I am here to ask if how can I collect data coming from ms outlook. What I want is that i need a program that will collect the email address of the bounced-back emails and the reason why they bounce. Is it possible? If yes then how can i do it? If no, then I have another options I am using Mail Them Pro program for email marketing, how can i get their data like for example if the mail are sent successfully or not? Hope to get a solution for this problem. Have nice day everyone.
-
Apr 4th, 2009, 02:53 AM
#2
Re: Collecting data from ms outlook
Use the outlook references and search for internet samples.
http://www.codenewsgroups.net/group/...topic3009.aspx
-
Apr 5th, 2009, 06:22 AM
#3
Thread Starter
Hyperactive Member
Re: Collecting data from ms outlook
Thanks zynder....Have a nice day and God Bless..
-
Apr 5th, 2009, 10:56 AM
#4
Re: Collecting data from ms outlook
I haven't tested it but this should work...
vb Code:
Private Sub Application_NewMail() '~~> We will checking for this string in the subject strChk = "Delivery Status Notification (Failure)" On Error Resume Next Set oFolder = GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) On Error GoTo 0 For Each oNewItem In oFolder.Items.Restrict("[Unread] = 0") subj = oNewItem.Subject Ebody = oNewItem.Body If InStr(1, subj, strChk) > 0 Then '~~> the email address is stored like this pos1 = InStr(1, Ebody, "To: <") pos2 = InStr(pos1, Ebody, ">") If pos1 > 0 Then '~~> This will give you the email address MsgBox Mid(Ebody, pos1 + 5, pos2 - pos1 + 1) End If End If Next End Sub
Edit: Similarly, you can get the reason why they bounce If you get stuck let me know... we will get this sorted...
Last edited by Siddharth Rout; Apr 5th, 2009 at 11:04 AM.
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|