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

NDR from Exchange server with content conversion error for message with Outlook item from Drafts folder

$
0
0
Aspose.Email version: 4.8.0.

Environment: Exchange 2013 SP1 and MS Outlook 2013.

Scenario: Our Exchange transport agent performs some manipulations with messages (like changing attachments' name etc.).

Issue: If user attached message from Drafts folder in Outlook, then Exchange Server send NDR, to the sender, stating message is corrupted. It works OK, if I attach message from Input or Sent Items folders, but no for Drafts. So Aspose somehow changes message structure and Exchange cannot process it then.

NDR (message is attached):
The email system had a problem processing this message. It won't try to deliver this message again.

Remote Server returned '554 5.6.0 Corrupt message content; STOREDRV.Deliver.Exception:ConversionFailedException.ConversionFailedException; Failed to process message due to a permanent exception with message The message content has become corrupted. ConversionFailedException: Content conversion: Failed due to corrupt TNEF (violation status: 0x00000800) [Stage: CreateReplay]'


I found, that issue is reproducible even if no changes are made. To replicate the issue on your side I attached sample project, which uses EWS to send test message. This test message is a original message received by Exchange from Outlook (contains embedded message, attached from Drafts folder).

Message is SENT successfully (recipient receives message and NO NDR is sent), if PreserveTnefAttachments flag is not specified. But I DO need it to preserve original message format.

Thanks,
Alex Shloma

EWSClient.UpdateContact -> Picture disappears and note field gets corrupted.

$
0
0
Hi,

I'm using the EWSCLient class to add/edit contacts in Outlook. When I have an existing contact in Outlook and use the "UpdateContact" method to alter some details the contact's picture disappears. Also, when the contact's note field had a value, the existing note will be corrupted and will show the HTML to the user, like this: 

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8”>
<meta name=”Generator” content=”Microsoft Exchange Server”>
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face=”Arial” size=”2”><span style=”font-size:10pt;”>
<div style=”text-indent:-14.15pt;padding-left:14.15pt;”>test</div>

<div style=”text-indent:-14.15pt;padding-left:14.15pt;”><font face=”Calibri” size=”2”><span style=”font-size:11pt;”>&nbsp;</span></font></div>

</span></font>
</body>         
</html>

Version details:

Aspose .Email for .NET 4.0 v4.7.0.0
MS Exchange 2010

Exchange + Mono/OSX Works - Not 365?

$
0
0
Hey guys,

My group has developed a plugin architecture that involves searching for information within Exchange. We have recently expanded this to other platforms and decided we would just see what happens if we run all of our automated tests on OSX. To our surprise, all of the tests passed. I should mention that we use an internal Exchange server for all integration tests.

But when we switched the automated tests over to an office 365 exchange server, we experienced errors.

System.Web.Services.Protocols.SoapException : The request is invalid.

The stacktrace has a little more info but this happens the moment you try to connect via EWSClient.GetEWSClient. Since we know that the same code actually works for non-365 exchange servers, we think this could very well come down to just a configuration issue within OSX itself. I should mention that we construct a NetworkCredential object specifying the username and password, where the username format is "name@domain" I did an experiment where I provided the domain as the 3rd parameter to NetworkCredential and it didn't make any difference.

Does anybody have any idea what that might be happening? I realize this may not be supported out of the box but I can't see any reason why this isn't working only for 365.

Regards,
Scott

Aspose.Email: SmtpException was caught

$
0
0
Hi Support Team,

I am using Aspose.Email to send a Task to the assigned user, Please the below code.

SmtpClient smtpClient = new SmtpClient("mail.domain.com");
smtpClient.UseTnef = true;
smtpClient.Send(eml);

I have tried with username and credential as well as below, but same exception caught
SmtpClient smtpClient = new SmtpClient("mail.domain.com", "abc@domain.com", "abc@123");

On smtpClient.Send(eml); SmtpException was caught: "Failure Sending mail." (Unable to read data from the transport connection: The connection was closed.)

Please assist me on above

With warm regards,
Vipin Panwar

SMTP/POP3 Logging

$
0
0

I am using Aspose.Email  and calling SMTP/POP3 Methods to Send/Receive emails.
I could see that SMTP, POP3 level logging is possible with Pop3DiagnosticLog/SmtpDiagnosticLog config file settings. I am calling .NET methods from VB using COM Interop and also <applicationname>.config is not an option. Please would you let me know if I could create SMTP, POP3 Logs without using a config file.

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.


For Kashif

$
0
0

Hi Kashif,

 

Attached are the two files I mentioned on our chat session just now.

 

Best wishes,

Sean


This message was posted using Support2Forum.

MapiTask Default path on disc

$
0
0
Hi Team,

1. I just want to know standard/default path at which a MapiTask is being saved, Please see the below code.

2. Can we use our custom path. if so, Will a MapiTask behavior changes as may be Outlook consider the default path for a task that is created and send to a user. Because in the below Aspose sample code not sure where exactly it is being saved?

MapiTask task = new MapiTask("Task Subject 2", "Task Body 2", new DateTime(2015, 5, 7, 8, 0, 0), new DateTime(2015, 5, 7, 17, 0, 0));                
                task.Status = MapiTaskStatus.InProgress;
                task.PercentComplete = 20;

                task.Save("Task.msg", TaskSaveFormat.Msg);

                MapiMessage msg = MapiMessage.FromFile("Task.msg");


                // 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 = "xyz@gmail.com";
                eml.To.Clear();
                eml.To.Add(new Aspose.Email.Mail.MailAddress("abc@domain.com"));

                SmtpClient client = new SmtpClient();
                client.UseTnef = true;
                client.Send(eml);


Error Extracting Calendar events from PST - Java

$
0
0
I have the following (simplified for the sake of this post) code which attempts to extract messages from a PST to EML:


private void extractEmlFile(FolderInfo folderInfo, PersonalStorage pst) {

MessageInfoCollection messageInfoCollection = folderInfo.getContents();

MessageInfo messageInfo = (MessageInfo) messageInfoCollection.get(0);

MapiMessage message = pst.extractMessage(messageInfo);

MailMessageInterpretorFactory.getInstance().getIntepretor(message.getMessageClass()).interpret(message).save("my_eml_file.eml",MessageFormat.getEml());

}

When this code encounters a Calendar event I get the following error:


java.lang.NullPointerException
at com.aspose.email.bO.a(Unknown Source)
at com.aspose.email.bO.<init>(Unknown Source)
at com.aspose.email.MapiCalendar.a(Unknown Source)
at com.aspose.email.MapiCalendar.e(Unknown Source)
at com.aspose.email.MapiCalendar.a(Unknown Source)
at com.aspose.email.AppointmentMailMessageInterpretor.interpret(Unknown Source)
at com.emlextract.AsposeMessageConverter.extractEmlFile(AsposeMessageConverter.java:154)


I'm currently using Aspose Email for Java version 3.1.0.0 (aspose-email-3.1.0.0-jdk16.jar). 

Am I doing something wrong or is this a bug? Is it fixed in a future release?


ArgumentException: Offset or count were out of bounds - Java Email

$
0
0
Hi, 

In the most recent version of the Java Email library I'm seeing the following error when trying to extract messages from a PST in EML format: 


class com.aspose.email.system.exceptions.ArgumentException: Offset or count were out of bounds
com.aspose.email.internal.ai.c.a(Unknown Source)
com.aspose.email.internal.b.e.a(Unknown Source)
com.aspose.email.internal.b.e.a(Unknown Source)
com.aspose.email.MailMessageInterpretor.a(Unknown Source)
com.aspose.email.MailMessageInterpretor.loadMessageBodyHtml(Unknown Source)
com.aspose.email.MailMessageInterpretor.loadMessageBody(Unknown Source)
com.aspose.email.MailMessageInterpretor.interpret(Unknown Source)
com.emlextract.AsposeMessageConverter.extractEmlFile(AsposeMessageConverter.java:154)

Here is the calling code: 

private void extractEmlFile(FolderInfo folderInfo, PersonalStorage pst) {

MessageInfoCollection messageInfoCollection = folderInfo.getContents();

MessageInfo messageInfo = (MessageInfo) messageInfoCollection.get(0);

MapiMessage message = pst.extractMessage(messageInfo);

MailMessageInterpretorFactory.getInstance().getIntepretor(message.getMessageClass()).interpret(message).save("my_eml_file.eml",MessageFormat.getEml());

}


Any help would be appreciated. 

Thanks

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.


duplicate issue

$
0
0
can i remove duplicate emails and contacts from pst file?

OAuth support for Exchange Web Services (office 365)

$
0
0
Hi,
Are you guys planning to add OAuth support for Exchange Web Services (office 365) ?

Thanks

FormatException when add mailformed address to HeaderCollection

$
0
0
Code:
        String toAddr = "\"abc ~!@#$%^&*()_+`1234567890-={}|[]\\:\"'?./');";
        HeaderCollection hc = new HeaderCollection();
        hc.add("to", toAddr);


Exception:
class com.aspose.email.system.exceptions.FormatException: An invalid character was found in the mail header.
com.aspose.email.qp.a(Unknown Source)
com.aspose.email.qp.b(Unknown Source)
com.aspose.email.qp.a(Unknown Source)
com.aspose.email.qp.b(Unknown Source)
com.aspose.email.MailAddressCollection.b(Unknown Source)
com.aspose.email.MailAddressCollection.a(Unknown Source)
com.aspose.email.jq.a(Unknown Source)
com.aspose.email.HeaderCollection.a(Unknown Source)
com.aspose.email.HeaderCollection.add(Unknown Source)

Object reference exception connecting to Exchange 2013

$
0
0
Calling GetEWSClient(mailboxuri, username, password,domain) in Aspose.Email 4.9 throws an "Object reference not set to an instance of an object." exception when connecting to an Exchange 2013 mail server.  This problem doesn't happen with Aspose.Email 4.8

Still having problems setting sender to EX format (5.2.0)

$
0
0
I reported this issue once before and it was reported to be fixed.  In testing, however, I am still receiving exceptions when attempting to set the mail address in EX format.

Attaching sample messages and code.

Can't seem to remove a custom MAPI property (5.2.0)

$
0
0
In the application I am writing/using to process messages, I stamp a MAPI property to the message during output as sort of like a "watermark".  This seems to work just fine.  However, if I need to reprocess any of those messages, it appears that I can't "delete" the original watermark, and if I try to create another one, now I have two MAPI properties with the exact same name but different values.

Attaching sample message and code.

Unable to change message body to PlainText in some cases (5.2.0)

$
0
0
I'm trying to strip some of the HTML/RTF properties from the message and just simply make a plaintext message.  While it does strip some of the properties, it seems for some messages making this change to plaintext doesn't "stick" and it still reports the body type as HTML.

Attaching sample code and message.

wether aspose support Outlook 365 platform

$
0
0
We are moving our mail boxes over to the Outlook 365 platform whether aspose support this change

Version of aspose dll:4.1.0.0
We are calling following web services.
ExchangeWebServiceClient client = new ExchangeWebServiceClient(pExchangeServerUri, UserName, Password, pDomain);

For supporting this do we need to do any additional code changes.

Unable to delete a Task from EWS after copying to mailbox (5.2.0)

$
0
0
I read an IPM.Task from disk and copied it to a mailbox.  Later, I tried to programmatically delete it and I receive an exception:

DeleteMessage failed. Response Code: ErrorAffectedTaskOccurrencesRequired, MessageText: AffectedTaskOccurrences attribute is required for Task items

I tried to narrow it down to see exactly what might be the cause but I am at a loss.  It might be something with the Task itself, but I'll need to know what to do to repair it in the future.

I'm attaching a sample Task and some source code to duplicate the issue.
Viewing all 1367 articles
Browse latest View live