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!
Printable View
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!
What if the attachment is a compressed file? You cant display that in a text file, for reading anyways.
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?
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?
Basically, the program itself should download the email and get the email attachement. Is that possible somehow?
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
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.
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