Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8912597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:14:32+00:00 2026-06-15T04:14:32+00:00

i want to export mails on exchnage server (subject line and body content) to

  • 0

i want to export mails on exchnage server (subject line and body content) to Excel using lotusscript agent or Java agent or Javascript language. How can I acheive this? Any idea, suggestion or sample code is appreciable.


After doing reasearch found code to download mails from POP3 server. I used below code but got stuck at var oServer = new ActiveXObject(“EAGetMailObj.MailServer”); with error – “Automation server can’t create object“. Then I put the host url in trusted sites and enabled active x control settings of IE, but then also getting the same error. Any idea, why?

The following code demonstrates how to receive email from a POP3 mail account. This sample downloads emails from POP3 server and deletes the email after the email is retrieved.

Code:

MailServerPop3 = 0;
MailServerImap4 = 1;

try
{
var oServer = new ActiveXObject("EAGetMailObj.MailServer");
// please change the server, user, password to yours
oServer.Server = "pop3.adminsystem.com"
oServer.Protocol = MailServerPop3;

oServer.User = "testx";
oServer.Password = "testpassword";

// If your server requires SSL connection, 
// Please add the following codes.
oServer.SSLConnection = true;
oServer.Port = 995;

var oClient = new ActiveXObject("EAGetMailObj.MailClient");
oClient.LicenseCode = "TryIt";

// Connect POP3 server.
oClient.Connect(oServer);

var infos = new VBArray(oClient.GetMailInfos()).toArray();
for (var i = 0; i < infos.length; i++) {
    var info = infos[i];

    // Receive email from POP3 server
    var oMail = oClient.GetMail(info);


    // Save email to local disk
    oMail.SaveAs("d:\\" + i + "_test.eml", true);

    // Mark email as deleted on server.
    oClient.Delete(info);
}

// Quit and pure emails marked as deleted from POP3 server.
oClient.Quit
}
catch( err )
{

 WScript.Echo( err.description );
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:14:34+00:00Added an answer on June 15, 2026 at 4:14 am

    You can use Java and the Exchange Web Services API Java implementation at http://archive.msdn.microsoft.com/ewsjavaapi

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to export my database tables to an Excel 2007 spreadsheet using servlets.
I want to export data from mysql tables to excel sheet. I am using
I am want to export database table to a file. I am using the
I have a GridView and I want to export it in Word document using
I want to export the table which is displayed using display tag on the
I want to export 2 gridviews to 2 worksheets in single excel file. and
I want to export some data from my jruby on rails webapp to excel,
I want to export the page Info to Excel ,who can tell me how
I want to export data to excel both in .xls and .xlsx format in
I want to export data and structure from MySQL database using PHP. I know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.