|
-
May 1st, 2006, 01:38 PM
#1
Thread Starter
Member
Displaying Email attachement
hey,
can anybody help me with a script that gets an email attachement (I know that the attachement is always a text file) and displays the contents of that email attachement in a textbox? I'm not sure how to do that!
Thank You!
-
May 1st, 2006, 02:56 PM
#2
Re: Displaying Email attachement
What if the attachment is a compressed file? You cant display that in a text file, for reading anyways.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 2nd, 2006, 08:37 AM
#3
Thread Starter
Member
Re: Displaying Email attachement
But I know it will be in a text file (.txt file)... and not as a compressed file! Is there at least a way how I can make a script where I can download the attachement?
-
May 2nd, 2006, 09:23 AM
#4
Re: Displaying Email attachement
are you looking to download this email message with attachment by logging in via POP3? or is the situation more like the email is downloaded into outlook and you want to access the attachment after its received into outlook?
-
May 2nd, 2006, 02:38 PM
#5
Thread Starter
Member
Re: Displaying Email attachement
Basically, the program itself should download the email and get the email attachement. Is that possible somehow?
-
May 2nd, 2006, 03:50 PM
#6
Re: Displaying Email attachement
Yes, you have to handle everything yourself.
http://www.codeproject.com/csharp/popapp.asp for one example, althpugh its C# its not too hard to convert it to VB.NET
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 2nd, 2006, 03:53 PM
#7
Re: Displaying Email attachement
there are also a bunch of C# to VB.NET converters (and vice versa) on the web.
Also I guess you need to confirm that this is infact a POP3 email account that you will be wanting to access.
-
May 2nd, 2006, 04:08 PM
#8
Re: Displaying Email attachement
This is the example I really wanted to post but couldnt find it until now. It uses sockets in the System.Net.Sockets class to connect to your email provider.
http://msdn.microsoft.com/library/de...un03282003.asp
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
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
|