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

Long Subjects Lose Spaces

$
0
0
With Aspose.Email, we noticed the MailMessage.Subject property loses spaces for messages with long subjects. This happens with line-breaking in the underlying file (the EML source), which clients should handle transparently to the end user.

If we re-save the file in the EML format, it preserves the original subject, but if we save it in the MSG format, it corrupts the Subject by dropping the space(s).

I've attached a EML source file which will reproduce this behavior.

static void TestMessageLoadSave(string path)
{
    using (var msg = MailMessage.Load(path, MessageFormat.Eml))
    {
        var pathNew = Path.GetDirectoryName(path) + Path.DirectorySeparatorChar + MakeValidFileName(msg.Subject + ".msg");
        msg.Save(pathNew, MessageFormat.Msg);
    }
}
static string MakeValidFileName(string name)
{
    string invalidChars = System.Text.RegularExpressions.Regex.Escape(new string(System.IO.Path.GetInvalidFileNameChars()));
    string invalidReStr = string.Format(@"([{0}]*\.+$)|([{0}]+)", invalidChars);
    return System.Text.RegularExpressions.Regex.Replace(name, invalidReStr, "_");
}


msg send internally will not convert to eml

$
0
0
L.S.,

Below code is used to convert .msg files to .eml files. This works fine, nothing wrong with this...

But, every now and then a System.NullRefferenceException error returns when converting a .msg file.

Attached a zip file with 2 .msg files. 1 converts 2 .eml fine with below function and the other doesn't.

I think I've found the difference between the two .msg files:

- one .msg is send externally (sending mail server is the same as the receiving server)

- one .msg is send internally (never ‘left’ the exchange server)

Are these findings correct and why does the MailMessage object have a problem with the internally send msg file?

How can I convert the internally send .msg file to .eml?

'------code------
Public Function ConvertMsg2Eml(ByVal sMsgFileName As String) As Boolean

  Try
    SetAsposeLicense()
    'Load mail message
    Dim message As MailMessage = New MailMessage
    message = MailMessage.Load(sMsgFileName, MessageFormat.Msg)
    'Save to msg file
    message.Save(Replace(sMsgFileName, ".msg", ".eml"), MailMessageSaveType.EmlFormat)
    ConvertMsg2Eml = True
  Catch ex As Exception
    ConvertMsg2Eml = False
  End Try

End Function
'-----end code-----

iCal Description Incorrect

$
0
0

Hello,

I am using 2.5.0.0 and am running into a problem when extracting text from iCal files using the GetAppointmentText() method.

The problem has to do with the \r\n found in text.  The header is correctly extracted, but in the description, the backslashes are being escaped out.  This results in the text not being formatted correctly.  For example, I have the following appointment with 3 lines of description:

This is a test appointment

This is a couple of lines down.

More lines down

Test

Test

Test

The appointment looks fine in outlook, but once text is extracted, the description looks like:

Title: This is a test Subject
StartTime: Monday, February 04, 2013 4:00:00 PM
EndTime: Monday, February 04, 2013 4:30:00 PM
Time Zone: America/Phoenix
Location: Test Location

*~*~*~*~*~*~*~*~*~*
Description: This is a test appointment\n\nThis is a couple of lines down.\n\nMore lines down.\n\nTest\n\nTest\nTest\n\n

I can upload a sample of this, but it happens with any appointment and you should have no trouble duplicating the behavior.

Looking at the text coming back from the GetAppointmentText() method call, I can see the newline char being escaped out by adding a backslash to in front of each backslash.

Is this by design? 

Thanks,

ImapClient: Getting messages basedon UniqueId Filtering

$
0
0
Hi,

My application is currently engineered to find emails greater than a specified unique ID and process them, is there a way to replicate this criteria using Aspose Email ImapClient or would I need to download the ImapMessageInfo collection and filter from there?  In my scenarios, emails stay on the server in the inbox until they are processed therefore I use the unique ID filter on subsequent calls to get messages to get only those messages that have a unique greater than the last processed.

This message was posted using Email2Forum by kashif.iqbal.

Retrieve undelivered emails

$
0
0
Hi,

How do I retrieve a list of undelivered emails using your API?

To address is now mandatory.

$
0
0

Hi All,

We have been using Aspose.Email since 2 years ago and everything was working fine. Until yesterday when we upgraded to version 2.6.0.0. Now all of a sudden the TO address is mandatory so we cannot send emails when we only have BCC recipeints.

In version 1.0.0.0 which we used to use until yesterday, we could easily add recipients only to BCC and leave TO empty. we cannot just simply ask our customers TO add an email address for to now, they are so used to the way it was working before. BTW, they don't like to use their own email address and recieve one email every time they send one to a few recipients.

Is there a way to make it work like before? without any email as TO?

Regards,

Abbas

Error when printing draft message to XPS

$
0
0
When using Aspose.Email 2.6.0, if you attempt to print a draft message from a PST using the MailPrinter, it is possible to get a null reference exception because the From address of the message is null.

As a workaround, you can explicitly set the From property on the message to something before printing, but we would prefer the MailPrinter to just leave this field empty if the From address is null.

Using the attached .MSG, the issue can be reproduced with this code:

            var mm = MailMessage.Load(source);
            var printer = new MailPrinter() { FormattingFlags = MessageFormattingFlags.MailInfo };
            printer.Print(mm, dest, PrintFormat.XPS);


which throws:
System.NullReferenceException
   at    .   .Print(MailMessage , Stream )
   at    .   .Print(MailMessage , Stream )
   at Aspose.Email.Printing.MailPrinter.Print(MailMessage message, Stream outputStream, PrintFormat printingFormat)
   at Aspose.Email.Printing.MailPrinter.Print(MailMessage message, String outputFile, PrintFormat printingFormat)

<To> required?

$
0
0
Hi,

since when is it required to set the To-property? In the past I was able to send emails only to a list of CC-receivers. I recently updated to the newest version of your email component and all of a sudden it seems I have to provide the To-property.

Can you tell if you guys changed this on purpose or is this a bug?

Thanks
Ingmar

Read Receipt without Delivery Notification

$
0
0

I have the latest Email dlls from the web.  How can I request a Read Receipt without also receiving Delivery notification?  Right now I have the following:

 Dim msg As New MailMessage
    msg.From = "billing@bestpass.com"
    msg.To = "tuser@bestpass.com"
    msg.ReplyToList.Add("support@bestpass.com")
    msg.Subject = "Test message"
    msg.TextBody = "This is a test message"
    msg.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess
    msg.Headers.Add("Read-Receipt-To", tuser@bestpass.com)

The Read Receipt does fire, but does not go to tuser@bestpass.com and we also get a delivery success notification.  I saw reference to a HeaderType enum but no examples of how to use it.

Thank you

Serious problem with MailPrinter.Print method Aspose.Email 2.7.0.0

$
0
0

Hi Aspose Support,

we have a serious problem with the Aspose.Email 2.7.0.0 Assembly released this week.

If the MailPrinter.Print method is called to convert a msg-file into a xps-file, a thread is created, that does not finish properly. This causes a fatal behaviour on closing our windows client software. The windows application shuts down, but the process stays running and can only be terminated by cancellation in the task manager. The user does not realize the situation and ends up in trouble caused by the left over client processes (running out of memory, updates fail because file is in use etc.).

For your diagnosis, I created a little example project attached to this post. Just start the application, select a msg file and push the 'Convert to XPS' button. A xps file with the same name will be created in the msg file directory. The conversion works correct. Now close the windows application. You will see the process never ends.

Calling Environment.Exit(0) on closing the application is not a tolerable option for us.

We downgraded for the moment to Aspose.Email 2.0.0.0 wich does not produce this error.

This is urgent.

Thank you.

Boris

 

Embedded images working in outlook, not on mobiles.

$
0
0
Hi,
We are having problems with getting embedded images to load on mobile phones.
We are using Aspose.Words in order to create a word document (using mailmerge).
We can use the documents "save' method to convert the document to several formats.
We have tried Docx, Pdf and Mhtml, with al these formats the images are visible in
the generated document when we open the document with an appropriate viewer
(or send it as an attachment via email). This seems to indicate that we are
correctly inserting the images into the document.
When we send document as the body of an email(we save the Aspose.Words.Document as mhtl)
however, the images may, or may not, be
there depending on who/what is receiving the mail.
When the recipient is a windows/outlook client, the images are embedded correctly.
When the mail is send to a mobile phone (either a W7 or IPhone) only an empty box is shown.


From experience I know you guys like to have code samples to work with,
however, since the generation of the documents and the sending of the mail
are done in seperate parts of our system, extracting working code
(without making a mistake) will be quite hard.

The two parts of the system pass the data around as a Byte[] and as mentioned above,
the images DO show up in outlook. Which leads me to believe the code is correct,
and before I go into the trouble of extracting all the code,
I ask if there might be something obvious we are missing?

Kind regards,
Verne.

Note: we are using the following versions.
Aspose.Email 2013.01.25
Aspose.Words 2013.01.31

Images also seem to load in Outlook WebAccess.

How to create a draft appointment request?

$
0
0
I found how to create a Draft mail message in MSG format, I'd like to create an appointment request but I can't see a way to do that. Appointment class requires all the parameters and there is no way to make such a MSG draft.

I tried using:

AlternateView.createAlternateViewFromString("BEGIN:VCALENDAR....")

but it also requires the sender and recipients to be filled in.

Thanks in advance for any help.

Mariusz

Changing the time zone when converting emails to MHT

$
0
0
We convert emails to MHT files using the following code:

using (MailMessage msg = MailMessage.Load(emailFilePath, messageFormat))
{
    using (MemoryStream mhtStream = new MemoryStream())
    {
        msg.Save(mhtStream, MessageFormat.Mht);
        ...
    }
}

The sent date is rendered using the local system time zone. Our users would like to be able to configure the time zone that is used for the sent date (and any other dates that may be displayed in the MHT).

Is it possible to change the time zone that is used?

Thanks.

Plain text alternative of HTML email (Meeting Request)

$
0
0
http://www.aspose.com/docs/display/emailnet/Send+Meeting+Requests+using+Exchange+Server

Hi,

How do I set plaintext alternative for html email for metting request so that depending on email client it should render html or plaintext version?

There are two options
TextBody
HtmlBody

Just setting TextBody and HtmlBody will take care of email rendering based on client?

How to use Aspose.Email License in .net application...

$
0
0
Hi All

Till now we have been using evaluation version for testing/trial purpose of Aspose.Email.Net.

Recently we have purchased license. Can someone please let us know...how to integrate or utilise that license with our application?

We have gone through Aspose.Email help .chm file...but still we are not clear how to utilise it. Please can someone assist us with steps...how to do it.

Thanks and Regards

-Josef

Could not delete all the records from .pst file....

$
0
0
Hello

We are using Aspose.Email .Net to delete message from .pst file. 
However, we realised that Aspose does not delete all the records from .pst file...due to unknown reason. There is no error thrown by Aspose neither .net. And also, in the logging, the records are repeated for the failed messages....means it holds the value of successful message when the messages are failed.

Our suspicions are that due to some reason, when the records are not deleted, Aspose is not able to keep track of that message until the new message is deleted. 

Please see the attached documents for the code.

Really appreciate any help...or whats wrong in the code.

Thanks and Regards

-Josef

Testimonials

$
0
0
Dear customers,

This thread is just a collection of testimonials regarding Aspose.Email.

If you're happy with Aspose.Email please follow this thread to post to encourage us to do it better.

To make it easier to follow, we will contiune to update this thread to collect testimonials posted in other threads.

Not detecting Attachments

$
0
0

Hi Support,

The attached ZIP file contains a email and it contains attachment.

 

I am using "Aspose.Email.Mail.MailMessage" to read the email. When i check it says no attachments are available. Where as there is a attachment in the email.

Please Help,

 

Cheers,

ValuePRO

net1.1 folder mising

$
0
0

Hi

Downloaded the Aspose.Email+for+.NET+2.7.0+(DLLs+Only) , readme file states that

folder  net1.1      Contains assemblies to use with .NET Framework 1.0 and 1.1

 

 cannot see this folder , although other framework folder are there e.g 2.0, 3.5 , 4.0

How can i get the assemblies for .net 1.1 framework.

regard

Syed Tayyab

SPA (Secure Password Authentication) Support

$
0
0
Is there a way to get the POP3Client to support SPA, the Microsoft-proprietary authentication protocol?
Viewing all 1367 articles
Browse latest View live