EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SBMIME.EElMIMEError: Mandatory field To is empty

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 12/11/2009 03:37:02
by  Flemming Hansen

When i try to send an (S)Mime email where the To field is empty, but the CC and/or BCC is filled, i still get the following error.

SBMIME.EElMIMEError: Mandatory field To is empty
at SBSimpleMIME.TElSimpleMIMEMessage.PrepareForSaving()
at SBSimpleMIME.TElSimpleMIMEMessage.SaveToText(TElStringList Text)
at SBSMTPClient.TElSMTPClient.Send(TElSimpleMIMEMessage Message)

Shouldnt i be allowed to send an email under these conditions even if the To field is empty?

Using the .Net version of SecureBlackbox

If i fill out the To field all works fine.
Posted: 12/11/2009 05:30:46
by Eugene Mayevski (EldoS Corp.)

RFC 822, A.3.1.

Note that the "Bcc" field may be empty, while the "To" field
is required to have at least one address.

This RFC was never obsoleted.

Sincerely yours
Eugene Mayevski
Posted: 12/11/2009 06:58:45
by  Flemming Hansen
Hi Eugene

Thanks for the fast answer.

I understand you follow the RFC, but do you have a way to override this?
The mailclients i have tried does allow this, and at least Exchange will accept it.
We have several business cases where it would be valuable to allow this.

Best Regards

PS: Not to attack your understanding of the RFC, but the RFC 822 from http://www.faqs.org/rfcs/rfc822.html shows the following:


Date:     26 Aug 76 1429 EDT        Date:     26 Aug 76 1429 EDT
From:     Jones@Registry.Org   or   From:     Jones@Registry.Org
Bcc:                                            To:       Smith@Registry.Org

        Note that the "Bcc" field may be empty, while the  "To"  field
        is required to have at least one address.

As i read the above, you can choose the left or the righ method.
I would like to use the left one, where there is no To:
Posted: 12/11/2009 07:35:18
by Eugene Mayevski (EldoS Corp.)

Maybe it's a miunderstanding. I will talk to developers regarding this.

Sincerely yours
Eugene Mayevski
Posted: 12/11/2009 07:54:01
by Eugene Mayevski (EldoS Corp.)

You are right, later RFCs (namely 5322) specify mandatory and optional fields. From is mandatory, To is not. We will fix this in the next build.

Sincerely yours
Eugene Mayevski
Posted: 01/07/2010 09:11:58
by  Flemming Hansen
Hi Eugene

I can see that you have released a new version 7.2.168 on the 26th december.

Does this version contain the fix?

When i look in the Changes.txt file, there are no mention about (S)MIME changes.
Posted: 01/07/2010 09:43:28
by Eugene Mayevski (EldoS Corp.)

Yes, the code has been modified. The information just didn't get to changes.txt.

Sincerely yours
Eugene Mayevski
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.



Topic viewed 2114 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!