|
hi, i downloaded Lumisoft.Net and working on IMAP. I want to know how to fetch the message from the IMAP server. can i have small example please.
Thanks & Regards
RAM
|
|
|
|
|
|
i downloaded imap_Client_app.zip, but i am in vain.
because that is requesting for other files which are not present.
please verify the file and upload it once again.
Thanks & Regards
RAM
|
|
|
|
|
hi, i downlaoded www.lumisoft.ee - /lsWWW/Download/Downloads/Net/[^] Lumisoft.net.zip. And its Example also, which is searching for some other files which are not present.
Can i have a small piece of code to run the IMAP, Connect to IMAP, Select a Folder, Fetch Message and Attributes like
from,To, subject, body, Attachments etc.
thanks
RAM
|
|
|
|
|
how can i send an email using this grate code?
|
|
|
|
|
it all depends what you mean by sending ... .
|
|
|
|
|
I was looking for IMAP client and Server...
|
|
|
|
|
Hi,
Just be sure you use latest devl version, thats more AW ....
|
|
|
|
|
I searched all over the documents, but still no success on how to find the attachments of the emails using IMAP client library!!
kindly help me out...
|
|
|
|
|
Ypu must download whole message and then parse with Mime class.
IMAP BODYSTRUCTURE won't provide all fields needed show whole message info, but you may investigate it.
|
|
|
|
|
ok here is what i am doing...
Psudo code...
MimeParser mn = new (FUL_MSG_DATA)
MimeEntry array ment = mn.MimeEntries ;
foreach( ment.items)
{
ment.item.FileName
ment.item.Data
}
AM I doing the right thing???
|
|
|
|
|
Almost ...
1) use LumiSoft.Net.Mime.Mime class instead !!! thats completely new implementation.
(http://www.lumisoft.ee/lswww/download/downloads/[^])
2) You sholud check that content dispostion = attachment; +++ file name != null, because file name is not required parameter.
|
|
|
|
|
right now old class working fine, i'll update the code to new one...
and I think you (Lumi soft) is the only one in the work who is providing IMAP client and server source code.... cheers to you (Y)
Thanks
|
|
|
|
|
|
HI,
Hey thanks a lot it was really helpful ,
I need help it would be gr8 if you could help me ,
I am developing POP3 client application, i want to retrive the POP3 password stored in registry for the application,
However the password in Registry is encoded one , is there ant way to decode this password or which algorithm is used to encode/decode POP3 password.
Naresh
|
|
|
|
|
I am trying to build an application that has the ability to just send email. This works with XP with the built in SMTP Server but with Vista it doesnt work. I am trying to take the source code and just implement the SMTP Server and turn it on when i need and turn it off when i dont. What do I need from this code just to run an SMTP server, and how to I start it. Any help would be greatly appreciated. Thanks in advance.
Russ
|
|
|
|
|
|
Is there any kind of documentation on this? I am just trying to run the SMTP Server but want to put it inside my existing application to run the server only when its needed.
Russ
|
|
|
|
|
I got a client sending a message with 2 attachments (2 files) as the example Ivan shown me. I activated the smtp server and got a receive event triggered as follows:
private void aSvr_MessageStoringCompleted(object ax, LumiSoft.Net.SMTP.Server.MessageStoringCompleted_eArgs e)
{
LumiSoft.Net.Mime.Mime aM = new LumiSoft.Net.Mime.Mime();
aM = LumiSoft.Net.Mime.Mime.Parse(e.MessageStream);
LumiSoft.Net.Mime.MimeEntity[] aTTx = aM.Attachments;
}
The MainEntity of aM after the parse mostly are nulls, am I doing something wrong? I sent a mail with 2 file attached as follows in my client code:
Mime m = new Mime();
MimeEntity mainEntity = m.MainEntity;
// Force to create From: header field
mainEntity.From = new AddressList();
mainEntity.From.Add(new MailboxAddress("oing", "oing.u@l-4.com"));
// Force to create To: header field
mainEntity.To = new AddressList();
mainEntity.To.Add(new MailboxAddress("oing u", "oPS@gvlexchrtr.l-43.com"));
mainEntity.Subject = "subject is test";
mainEntity.ContentType = MediaType_enum.Multipart_mixed;
MimeEntity textEntity = mainEntity.ChildEntities.Add();
textEntity.ContentType = MediaType_enum.Text_plain;
textEntity.ContentTransferEncoding = ContentTransferEncoding_enum.QuotedPrintable;
textEntity.DataText = "Message body text.";
MimeEntity attachmentEntity = new MimeEntity();
attachmentEntity.ContentType = MediaType_enum.Application_octet_stream;
attachmentEntity.ContentDisposition = ContentDisposition_enum.Attachment;
attachmentEntity.ContentTransferEncoding = ContentTransferEncoding_enum.Base64;
attachmentEntity.ContentDisposition_FileName = "testatta.xxx";
attachmentEntity.DataFromFile("testatta.xxx");
mainEntity.ChildEntities.Add(attachmentEntity);
attachmentEntity = new MimeEntity();
attachmentEntity.ContentType = MediaType_enum.Application_octet_stream;
attachmentEntity.ContentDisposition = ContentDisposition_enum.Attachment;
attachmentEntity.ContentTransferEncoding = ContentTransferEncoding_enum.Base64;
attachmentEntity.ContentDisposition_FileName = "testatta.txt";
attachmentEntity.DataFromFile("testatta.txt");
mainEntity.ChildEntities.Add(attachmentEntity);
LumiSoft.Net.SMTP.Client.SmtpClientEx.QuickSendSmartHost("localhost", 27, "localhost", m);
This email did ok when I sent it to Exchange server, but when I change it to sent to local smtp server, I got nulls in the MainEntity as described above. Thanks for your assistance in advance.
|
|
|
|
|
Hi,
The problem is "e.MessageStream" is at the end of stream when passes to that event.
This si because, you may pass such storage stream what doesnt support seeking, because of it i may not set position to 0.
If you passed, seekable stream for storage, just set e.MessageStream = 0, before parsing.
|
|
|
|
|
Ok, I will give it a shot, thanks for the reply!
|
|
|
|
|
Brilliant, it worked as Lumi said...Thanks again.
|
|
|
|
|
Hello,
this subject has been already talked about but I don't find it.
How do you extract Eml Attachment from attach files?
When I enter in my saveattachfiles (loop on the attachfiles collection), the attachments contains well an attach file but the dataproperty is null...
thanks
Mekongboy
|
|
|
|
|
|
HI,
I use the version above which is in download on codeproject.com
|
|
|
|