Quantcast
Channel: Aspose.Email Product Family
Viewing all 1367 articles
Browse latest View live

Unable to add Cryillic characters to header (5.2.0)

$
0
0
I am receiving an exception adding Cryillic characters to message headers.

Samples attached.

InterpretAsTNEF changing message body? (5.2.0)

$
0
0
I have several instances where I am attempting to verify that a message read from disk was properly converted from MapiMessage to MailMessage and it is successful - but in some cases, it looks like the MailMessage.Body property just becomes "blank" and I can't compare to verify it's working.

Attaching samples and code.

Trouble fetching tasks from EWS (5.2.0)

$
0
0
I'm trying to fetch a list of tasks that may be in a mailbox but I'm having some problems trying to figure out how to do it.  I have a bit of code that looks like this:

// Init EWS Client (credentials wiped for forum post)
const string uri = "https://192.168.4.66/EWS/Exchange.asmx";
var credentials = new NetworkCredential(***);
_ewsClient = EWSClient.GetEWSClient(uri, credentials);

// Get mailbox (wiped for forum post)
var mailbox = _ewsClient.GetMailboxInfo(***);

// List messages in Inbox folder (it is assumed that there is at least one message IPM.Note in Inbox folder)
var messages = _ewsClient.ListMessages(mailbox.InboxUri);

// List messages in Tasks folder (it is assumed that there is at least one task IPM.Task in Tasks folder)
var tasks =  _ewsClient.ListMessages(mailbox.TasksUri);

// Try to fetch message from Inbox - OK
var m1 = _ewsClient.FetchMessage(messages.First().UniqueUri);

// Try to fetch task from Tasks folder - exception
var m2 = _ewsClient.FetchMessage(tasks.First().UniqueUri);

So - that makes an exception.  Then I tried this:

// It is possible to fetch task using FetchTask method -
// but we need a way to convert ExchnageTask object (as well as Appointment) to MapiMessage - is it possible?
var t1 = _ewsClient.FetchTask(tasks.First().UniqueUri);

// convert ExchnageTask and Appointment to MapiMessage ?

I don't know how to now make this a MapiMessage at this point, I couldn't see any classes that might help facilitate that.

Can you help me out with this please?

Unable to use InterpretAsTNEF on IPM.Contact (5.2.0)

$
0
0
When attempting to use InterpretAsTNEF to get ready to copy a contact to EWS, exceptions are generated.  Is there another way to do this?

Attaching code and samples.

How to set End date in case MapiCalendarRecurrenceEndType.EndAfterDate

$
0
0
Hi Aspose Support Team,
Please assist on below query,

Query 1. Will the WeekStartDay would be the day on the Task tart date? In that case are this property dependent to the Mapi Task Start Day.

Query 2. Suppose I want to set MapiTask recurrence End Type as End After Date (MapiCalendarRecurrenceEndType.EndAfterDate) then how to set the End date?
Please see the End By option in daily recurrence with End date in Outlook.

// Set the daily recurrence
var rec = new MapiCalendarDailyRecurrencePattern
{
    PatternType = MapiCalendarRecurrencePatternType.Day,
    Period = 1,
    WeekStartDay = DayOfWeek.Sunday,
    EndType = MapiCalendarRecurrenceEndType.EndAfterDate,
    OccurrenceCount = 0,
};

Thanks,
Vipin Panwar

Task day effective 1 day earlier then start day.

$
0
0
Hi 

When I set the recurrence using below code to a Mapi Task then it is showing 1 day earlier effective from while i had create a new Mapi Task with Start date 5/14/2015 and same as due date also. it should be the same on Task start date. Same behavior I feel with Microsoft Outlook.

Can you assist me to find out where i am wrong or what i am missing?

Below is the code,

// Set the daily recurrence
var rec = new MapiCalendarDailyRecurrencePattern
{
    PatternType = MapiCalendarRecurrencePatternType.Day,
    Period = 1,
    WeekStartDay = DayOfWeek.Sunday,
    EndType = MapiCalendarRecurrenceEndType.NeverEnd,
    OccurrenceCount = 0,
};

Thanks in advance,
Vipin Panwar

Not working except the Never End Option of MapiCalendarRecurrenceEndType

$
0
0
Hi, 

I am Creating a new Mapitask with recurrence and sending it using the Aspose SMTP.

I am good to create and send email with the recurrence in case i set the End type as below

EndType = MapiCalendarRecurrenceEndType.NeverEnd,

But not able to send if i set it to as below after all code is being executed successfully.

EndType = MapiCalendarRecurrenceEndType.EndAfterDate,
OccurrenceCount = 10,

Below is the recurrence Sample Code,

// Set the daily recurrence
var rec = new MapiCalendarDailyRecurrencePattern
{
    PatternType = MapiCalendarRecurrencePatternType.Day,
    Period = 1,
    WeekStartDay = DayOfWeek.Sunday,
    EndType = MapiCalendarRecurrenceEndType.NeverEnd,
    OccurrenceCount = 10,
};

Length cannot be less than zero. Parameter name: length

$
0
0
I am getting this error on the attached VCS file using this code:

Dim app As Appointment = Appointment.Load(msgName)

Testing emails...

$
0
0
Hi

I have to connect to my Exchange server. As a long time Aspose.Cells user, I wanted to try the emails library. 

I downloaded the latest version of the dlls (5.3) and started to look around for examples.

I just cannot connect to my server and many samples are not compiling. For example ExchangeWebServiceClient seems to have been deprecated and ImapClient.Connect no longer exists apparently!

And when I try the code below, I get this error: {"The remote server returned an error: (405) Method Not Allowed."}

Test code:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Try
            Dim mailboxURI As String = "https://192.168.13.14"  
            Dim uid As String = "myusername"
            Dim pwd As String = "mypassword"
            Dim domain As String = "mydomain,ca"

            Dim client As ExchangeClient = New ExchangeClient(mailboxURI, uid, pwd, domain)

            ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf RemoteCertificateValidationHandler)
            Dim mailboxInfo As ExchangeMailboxInfo = client.GetMailboxInfo()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub

    Private Shared Function RemoteCertificateValidationHandler(sender As Object, certificate As X509Certificate, chain As X509Chain, sslPolicyErrors As SslPolicyErrors) As Boolean
        Return True
    End Function

What I need to do is to move a message from my Inbox to another folder. How can I do it?

create .msg file - cant set date

$
0
0
Hi,

I am migrating emails stored in various formats (.htm, rtf, .txt) from a legacy document management system, so I am reconstituting them into .msg files. The emails are not stored on an exchange server, only in the legacy system. The emails will be loaded directly into Sharepoint, so not going into exchange at all.

When I try the following trivial test, the Date field (i.e. sent date) is not being set, so when I open the .msg file (with an outlook client) there is no sent date information. Also pressing ALT-ENTER to show the properties of the email shows no sent date.

Can anyone please help?

MailMessage mailMsg = new MailMessage();
mailMsg.From = "FromMe@demo.com";
mailMsg.To = "ToYou@demo.com";
mailMsg.Subject = "my subject";
mailMsg.TextBody = "my body";
mailMsg.Date = DateTime.Today;

MapiMessage outlookMsg = MapiMessage.FromMailMessage(mailMsg);
outlookMsg.SetMessageFlags(MapiMessageFlags.MSGFLAG_UNMODIFIED);

string strMsgFile = @"E:\tmp\sample.msg";
outlookMsg.Save(strMsgFile);

Thanks.


Mapi Task Stop working

$
0
0
Hi,

If I create a Mapi Task without the Start And End date and try to send that task to a user then it stop working. but code is being executed successfully. please see the below code.
In Outlook we can create a Task without start and end date.

 MapiTask task = new MapiTask();
task.Subject="Aspose Task Test";
task.Body="Test Body";
                task.PercentComplete = claimTask.PercentComplete;
                task.EstimatedEffort = 2000;
                task.ActualEffort = 20;
                task.History = MapiTaskHistory.Assigned;
                task.LastUpdate = DateTime.Now;
                task.Users.Owner = claimTask.Owner;
MemoryStream ms = new MemoryStream();
                task.Save(ms, TaskSaveFormat.Msg);
                ms.Position = 0;

// Convert to TNEF eml. Such a feature would allow to send messages by mail clients,
                // where the information, specific for Outlook task, would be stored.
                MailMessageInterpretor mi = MailMessageInterpretorFactory.Instance.GetIntepretor(msg.MessageClass);
                MailMessage eml = mi.InterpretAsTnef(msg);
eml.From = "abc@domain.com";
                eml.To.Clear();
                eml.To.Add(new Aspose.Email.Mail.MailAddress("xyz@domain.com"));
                eml.Body="Task has been completed";
SmtpClient smtpClient = new SmtpClient("mail.domain.com");
                smtpClient.UseTnef = true;
                smtpClient.Send(eml);

Please assist me on the same as soon as possible.

Thanks in advance,
Vipin Panwar

Vcard Issue

$
0
0
1) How to Export contacts from default MS Outlook 2013, 2010, 2007 and 2003 profile address book?

2) How to Import multiple vcf contacts in default MS Outlook 2013, 2010, 2007 and 2003 pst file?

export question

$
0
0
can i export mbox to eml or eml to mbox?

upgrade outlook

$
0
0
can i upgrade ansi outlook pst to unicode pst file format?

Headings In inbox view are populated additionally

$
0
0
Hi,

When send an Task email to a user then in the inbox some headings are populated additionally, Why so? Please see the attached screenshot and suggest me what changes need to be implement.
I am using MapiTask and SMTPclient to send the email with UseTnef True.



java.lang.OutOfMemoryError: Java heap space

$
0
0

Hello,

we are using Aspose.Email for java (aspose-email-3.8.0.0-jdk14.jar) to extract some information from .msg files.

Following error is thrown when trying to load some "big" .msg files (size greater than 18MB) :

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

      at com.aspose.email.MapiProperty.<init>(Unknown Source)

      at com.aspose.email.ej.a(Unknown Source)

      at com.aspose.email.v.a(Unknown Source)

      at com.aspose.email.lh.a(Unknown Source)

      at com.aspose.email.MapiMessageReader.readMessage(Unknown Source)

      at com.aspose.email.MailMessage.b(Unknown Source)

      at com.aspose.email.MailMessage.a(Unknown Source)

      at com.aspose.email.MailMessage.a(Unknown Source)

      at com.aspose.email.MailMessage.load(Unknown Source)

Anyone had same issue ?

How to solve it ?

Regards,

MailMessageInterpretor.loadEachAttachment throws NullPointerException

$
0
0
Hi, 

I've tried the new version but I get the exact same error!?

Folder: SPAM Search Folder 2
0
Folder: Search Root
0
Folder: Top of Personal Folders
0
Folder: Recoverable Items
1064
Folder: Tasks
0
Folder: Sent Items
java.lang.NullPointerException
at com.aspose.email.MailMessageInterpretor.loadEachAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.loadAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.interpret(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at Problem.ExtractMsgFiles(Problem.java:59)
at Problem.main(Problem.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
java.lang.NullPointerException
at com.aspose.email.MailMessageInterpretor.loadEachAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.loadAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.interpret(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at Problem.ExtractMsgFiles(Problem.java:59)
at Problem.main(Problem.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
1094
Folder: Outbox
0
Folder: Notes
1
Folder: Junk E-Mail
0
Folder: Journal
0
Folder: Inbox
5
Folder: Drafts
0
Folder: Conversation Action Settings
0
Folder: Contacts
13
Folder: Calendar
250
Folder: Deleted Items
java.lang.NullPointerException
at com.aspose.email.MailMessageInterpretor.loadEachAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.loadAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.interpret(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at Problem.ExtractMsgFiles(Problem.java:59)
at Problem.main(Problem.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
java.lang.NullPointerException
at com.aspose.email.MailMessageInterpretor.loadEachAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.loadAttachment(Unknown Source)
at com.aspose.email.MailMessageInterpretor.interpret(Unknown Source)
at com.aspose.email.MailMessage.b(Unknown Source)
at com.aspose.email.MailMessage.a(Unknown Source)
at com.aspose.email.MailMessage.load(Unknown Source)
at Problem.ExtractMsgFiles(Problem.java:59)
at Problem.main(Problem.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
977
Total messages:3404


So what did you change in the version 5.0.3 ? There is exactly same problem!?

Outlook Emails to Pdf

$
0
0

Hi

I can see, that this topic has been seen before...

Anyway, it's difficult to find an answer that helps me. Many answers are outdated because of newer releases...

So, do you have an actual solution for this problem?

I would like to convert an Outlook Email to Pdf (if possible containing images)...

Kind regards, Karit :)

Converting Outlook MSG to PDF, including body content of nested MSG files

$
0
0
Hello,

I'm currently trying to figure out how I can convert a outlook .msg file, with nested outlook attachments, into a PDF file containing the body content of the root file and its nested children.

I've already looked at the post http://www.aspose.com/community/forums/permalink/319356/319356/showthread.aspx#319356, where the attachments are retrieved recursively, but what I need is the body of each mail concatenated into a PDF document.

For now I am using Aspose Words together with Aspose Email to produce a PDF (converting the .msg to .pdf), but since this only outputs a PDF for the root .msg file, I am a bit lost on how I would get it to include all the nested .msg files inside the root .msg.

Any help is greatly appreciated!

Thanks,
Kind regards
Søren Engel


cached contacts

$
0
0
can i recover and convert outlook cached contacts in vcf file format?
Viewing all 1367 articles
Browse latest View live