* and throw dedicated exception in that case (needed for user feedback).
*/
varpgpgMIMESizeInKB=pgpMIME.Data.Length/1000;// Get size in kB
if(pgpgMIMESizeInKB>omi.GetMaxMailSize())
varmaxMailSize=omi.GetMaxMailSize();
if(pgpgMIMESizeInKB>maxMailSize)
{
thrownewAttachmentSizeException(string.Format("Failed to add PGP/MIME attachment due to size restrictions. Allowed size: {0} kB. Actual size: {1} kB.",omi.GetMaxMailSize(),pgpgMIMESizeInKB));
thrownewAttachmentSizeException(string.Format("Failed to add PGP/MIME attachment due to size restrictions. Allowed size: {0} kB. Actual size: {1} kB.",maxMailSize,pgpgMIMESizeInKB));
/// Looks up a localized string similar to An internet or mail server connection is required to securely send this message. It's recommended to save this message as a draft until a connection is re-established..
<value>In order to make the communication with this communication partner Secure & Trusted, you will have to compare the Trustwords with this communication partner and ensure they match yours.</value>