Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: 554 5.6.1 Body type not supported by Remo Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dschwarz
Newbie
Newbie
Avatar

Joined: 07 September 2006
Location: United States
Online Status: Offline
Posts: 2
Posted: 07 September 2006 at 3:18pm | IP Logged Quote dschwarz

Hi,

I have an application that checks a mailbox, extracts the body, runs a process and returns some text. This text is fed into a function to send a response (see SendMessage below. This works fine for some users. But when I send a message my personal webmail account or from a Verizon text message account, I get the following error from my mail server. Any suggestions? Thanks in advance.

-Dan

--- Start message.
Code:

Your message did not reach some or all of the intended recipients.

Subject: RE: Test Verification 1
Sent: 9/7/2006 2:06 PM

The following recipient(s) could not be reached:

  myemail@mydomain.com on 9/7/2006 2:03 PM
  The message contains a content type that is not supported
  <mailout.readyenterprise.com #5.6.1 smtp;554 5.6.1 Body type not supported by Remote Host>

--- End message.

Code:

--- Start SendMessage function.
private void SendMessage(string toEmail, string body, MailMessage originalMessage)
{
     try
     {
     // Set message headers.
     _smtp.From.AsString = _userName;
     _smtp.To.AsString = toEmail;
     _smtp.Subject = originalMessage.Subject;

     // Set message body.
     _smtp.Message.BodyPlainText = body;

     // Send e-mail.
     _smtp.Send();
     }
     catch (MailBeeException ex)
     {}
}

--- End SendMessage function.
Back to Top View dschwarz's Profile Search for other posts by dschwarz
 
dschwarz
Newbie
Newbie
Avatar

Joined: 07 September 2006
Location: United States
Online Status: Offline
Posts: 2
Posted: 07 September 2006 at 3:25pm | IP Logged Quote dschwarz

More platform info:

MailBee Component: MailBee.NET 2.0.0.6
Language: C#
Framework Version: v1.1.4322
Email Server: Exchange 2003
Back to Top View dschwarz's Profile Search for other posts by dschwarz
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 08 September 2006 at 11:13am | IP Logged Quote Andrew

As we understood you, your system receives a message, generates the response, and sends it to the Verizon mail server. A bit later, Verizon mail server returns bounce-back message with "Body type not supported by Remote Host" reason.

To let us investigate the problem, could you please save original, response and bounce-back messages as .eml files and send us? You can save original and response messages as follows:

Code:
--- Start SendMessage function.
private void SendMessage(string toEmail, string body, MailMessage originalMessage)
{
     try
     {
     // Set message headers.
     _smtp.From.AsString = _userName;
     _smtp.To.AsString = toEmail;
     _smtp.Subject = originalMessage.Subject;

     // Set message body.
     _smtp.Message.BodyPlainText = body;

     // Send e-mail.
     _smtp.Send();
     originalMessage.SaveMessage (@"C:\original.eml");
     _smtp.Message.SaveMessage (@"C:\response.eml");
     }
     catch (MailBeeException ex)
     {}
}


You can send this information to support@afterlogic.com.

Also, it would be very helpful if you provide us with a test account on Verizon mail server. Thus, we would be able to send some messages and reproduce the problem directly.

We are looking forward to your reply.

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


Joined: 11 November 2006
Location: United States
Online Status: Offline
Posts: 8
Posted: 22 May 2007 at 10:42am | IP Logged Quote reena_bharti

Hi Andrew

I am also facing same problem.

Below is the .eml Message that got generated from bounce back.

Received: by xyz.edited.inc
     id <01C79C7E.7BCA0D00@xyz.edited.inc>; Tue, 22 May 2007 10:35:46 -0400
Content-class: urn:content-classes:message
Subject: Test for SMTP issue
Date: Tue, 22 May 2007 10:35:44 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
     boundary="----_=_NextPart_002_ 01C79C7E.7BCA0D00"
Message-ID: <2.8d124ff8e00d96105007@ocuwb02>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Test for SMTP issue
X-MimeOLE: Produced By Microsoft Exchange V6.5
Thread-Index: Acecfn1A7TKvk3CmQP6aLbmCWDO8Lw==
From: "Mustansir Abbas" <musta15359@xyz.org>
To: <ralph2@gmail.com>

This is a multi-part message in MIME format.

------_=_NextPart_002_01C79C7E.7BCA0D00
Content-Type: text/plain;
     charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Test


------_=_NextPart_002_01C79C7E.7BCA0D00
Content-Type: text/html;
     charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7652.24">
<TITLE>Test for SMTP issue</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Test<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_002_01C79C7E.7BCA0D00--
Prompt response will be appriciated

Thanks
-Reena
Back to Top View reena_bharti's Profile Search for other posts by reena_bharti
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 22 May 2007 at 11:28am | IP Logged Quote Alex

"Body type not supported by Remote Host" is returned by the end recipient's mail server if it does not support BINARYMIME or 8BITMIME SMTP extensions. Your mail server supports it and thus MailBee takes advantage of these extensions when submitting the message to your server. However, when your SMTP server then attempts to deliver the message to the end recipient's mail server, it founds that the end recipient's server does not support BINARYMIME or 8BITMIME and terminates the transmission. This is incorrect, the server should ignore the fact that BINARYMIME or 8BITMIME is not supported. However, it's possible to workaround this bug in your mail server by disabling BINARYMIME and 8BITMIME in MailBee.

To do this, set SmtpOptions property of SmtpServer object which describes your SMTP server to ExtendedSmtpOptions.No8bitAndBinary.

Alternatively, you can simply download the latest version of MailBee.NET.dll which sets No8bitAndBinary as default value for SmtpServer.SmtpOptions. You can get it from http://www.afterlogic.com/updates/mailbee_net3.zip

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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