Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Exchange 2007 Replay Folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Eleazar
Newbie
Newbie


Joined: 28 February 2009
Online Status: Offline
Posts: 4
Posted: 28 February 2009 at 10:25am | IP Logged Quote Eleazar

I'm having some trouble submitting messages to the Exchange 2007 replay folder. Exchange requires all x- headers to be at the very top of the header section when the email is in the replay folder. If an x-header is not at the top, exchange will rename the eml file to .bad and will not import the email. The issue I'm having with MailBee.net SMTP is that it typically will put the x-headers at the top of the email, but on some emails (it seems mostly bulk emails) it will put the x-sender/x-receiver in the middle of the header section. I remove any x- headers before submitting, so there are no other x-headers to get in the way, but I can't find any way to force mailbee to put the x-sender/x-receiver at the top. I've tried adding them to the top of the header collection before submitting, but that doesn't work either. Any help in how to get MailBee.net SMTP component to always put x-headers at the top when submitting to file would be very helpful. Thank You.
Back to Top View Eleazar's Profile Search for other posts by Eleazar
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 02 March 2009 at 1:58am | IP Logged Quote Andrew

Smtp.SubmitToPickupFolder and Smtp.SubmitJobsToPickupFolder methods add X- headers to the top of headers block.

If that's not the case for you, please make sure you use the latest version of MailBee.NET.dll.

If the issue happens with the latest version, please provide us with a short code sample which would allow us to reproduce the issue.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
Eleazar
Newbie
Newbie


Joined: 28 February 2009
Online Status: Offline
Posts: 4
Posted: 06 March 2009 at 8:23am | IP Logged Quote Eleazar

Thanks for the reply Andrew. I'll try the latest version (newer than the one I am currently using), and let you know how it goes.
Back to Top View Eleazar's Profile Search for other posts by Eleazar
 
Eleazar
Newbie
Newbie


Joined: 28 February 2009
Online Status: Offline
Posts: 4
Posted: 20 March 2009 at 8:44pm | IP Logged Quote Eleazar

I'm having the same issue with the latest version, but the sample app I created to show the problem worked fine. After some trial and error, I found out that the trial app was working because I was loading the message from disk using the Message.LoadMessage method. So I updated my app that downloaded from a pop server and called Message.SaveMessage and Message.LoadMessage just before calling submittopickup folder and that worked just fine. So there is something to do with saving and loading the message to file that solves the issue, while when submitting the message to the pickup folder directly after downloading from the pop server doesn't work. I'll keep researching the issue, but if you have any ideas why this may be happening, I'd love to hear them.
Back to Top View Eleazar's Profile Search for other posts by Eleazar
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 23 March 2009 at 5:56am | IP Logged Quote Andrew

I've just implemented the following:

Code:
Pop3 pop = new Pop3();
Smtp mailer = new Smtp();

pop.Connect("local-server");
pop.Login("test@localhost", "test");

mailer.Message = pop.DownloadEntireMessage(1);

pop.Disconnect();

mailer.SubmitToPickupFolder(@"D:\pickup");


x-sender/x-receiver headers are added to the beginning.

If you provide us with an example which would allows us to reproduce the issue, that would be helpful. please try to scale down the sample to the code which just replicates the issue. Provided with smaller and cleaner code samples, we would be able to assist you better.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
Eleazar
Newbie
Newbie


Joined: 28 February 2009
Online Status: Offline
Posts: 4
Posted: 28 March 2009 at 4:45pm | IP Logged Quote Eleazar

Andrew,
I'm using the same code as you and 99% of the messages download just fine with the x- header at the top. There are messages from certain senders that always have the x- headers in the middle of the header section and not the top. I don't know what is different about those emails, but I may be able to have one sent to you so you can try it from your pop server? What email address would you like me to have the message sent to?
Back to Top View Eleazar's Profile Search for other posts by Eleazar
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 30 March 2009 at 6:25am | IP Logged Quote Andrew

Please submit it to our Helpdesk. Ideally, we'd need an application which reproduces the issue and it's enough to just run it without configuring/recompiling/etc. I.e. if necessary, it should contain POP3 server address and credentials hardcoded. Once we complete testing, you can remove the test account or just reset the password.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide