The recipient expects a signed and encrypted message with attachment.
In their specification, under the e-mail attachment section they state "The Content-Type of the MIME-Parts has to be Application/octet-stream".
Our attachment is of the required content-type. The signed only message contains different content-types but they do not seem to cause any trouble since when sending a signed only message the recipient is able to parse our message and sends an ack.
When encrypting the message the resulting Content-Type is Content-Type: application/pkcs7-mime;.
After contacting the recipient, they were able to provide us with the error message of their automated system which reads: Unknown Email-ContentType: application/pkcs7-mime
Their error message leaves me to believe that other than the attachment-type the e-mail content-type needs to be of octet stream as well.
I'm using C# with Rebex is it possible to force a specific content type?
Can the S/MIME Content Type of e-mail be explicitly defined?
317 Views Asked by enpsecok At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in EMAIL
- Email Verification python eror
- Invalid format for email address in WordPress on Azure app service
- How to create an JSOUP element from byte array image (Load from Database)
- How can I look this email address
- Gsheet - Automatically send an email using a date & time in a Cell
- Install Postfix Mail Server
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- How to make my form send the submitted info to my email
- Cpanel filter encoding utf-8?
- Thunderbird Importing Emails imports 0 emails
- Python & Django web app - auto emails not sending
- Allowing any member of a dynamic group to send as from a shared mailbox
- How to fix "search in state AUTH" errror
- Rewriting CSS in MSO conditional comment doesn't work
- Sendgrid attachments in C#
Related Questions in MIME-TYPES
- Invalid mime type \"rss+xml\": does not contain '/'
- I am trying to use pdfjs viewer ver. pdfjs-4.0.379-dist and while running it on XAMPP server i get this error:
- Fb2 UploadedFile mimetype on different OSes not the same
- ActionDispatch::Http::MimeNegotiation::InvalidType ("html" is not a valid MIME type):
- Is it (still) a security flaw to check MIME only by extension?
- Loading module from “http://localhost/js/three.module.js” was blocked because of a disallowed MIME type (“text/html”
- Artifactory - Bad header value content-type of pom.xml from repo.spring.io
- MIME type for reading CSV file in an Android app does not work
- Getting "Mime type error" when deploying a Vite + React project to Firebase, cannot figure this out
- deployment angular 15 project on nginx got server responded with a MIME type of "text/html"?
- Invalid email headers using WordPress wp_mail()
- magento 2.4 - blocked due to MIME type (“text/html”)
- Rapidoid request content type matching
- So I encouter problem in deploying my project it said MIME
- What mime type/format should I use to set the clipboard to allow pasting of data in Google Sheets?
Related Questions in SMIME
- Node.js equivalent to OpenSSL -sign operation
- Sign a file with SSL certificate for iOS "Shared Web Credentials" API
- How to determine hash and encryption algorithm of S/MIME message with Win32 CryptoAPI?
- JRuby error loading private key with jruby-openssl in bouncycastle
- Java - Using JavaMail to send and receive S/MIME messages
- How to encrypt all mails in a maildir / IMAP-Account with S/MIME or PGP?
- Difference between PGP and SMIME
- Extract certificate from a PKCS7 signature in php
- How to send S/MIME encrypted mails from iOS with attachment?
- Adding certificate in userSMIMECertificate attribute of inetOrgPerson
- Sending email with PKCS12 to IOS
- Can the S/MIME Content Type of e-mail be explicitly defined?
- Determine Type PGP/SMIME/PEM and operation SIGNATURE/ENCRYPTION of an input file Java
- openssl CMS decryption fails
- How to handle a p7s file in php
Related Questions in REBEX
- Can the S/MIME Content Type of e-mail be explicitly defined?
- Rebex: Transfer Files From Ftp/Sftp To Ftp/Sftp
- Unable to zip and encrypt 100MB file using Rebex C#
- Using ReBex to upload different files to FTP server?
- How to create exemption for catching corrupted files upon upload?
- Login error using Rebex with SMTP on Office365
- How to access Outlook IMAP server using OAuth tokens retrieved from Microsoft Graph API?
- Rebex.net authentication debugging
- Access to the path is denied when programmatically downloading a file from ftp in C# on Win7 64bit
- Rebex.Net.Smtp.SendDirect 530 Error
- In SSIS, How to fix this exceptions (Rebex.Net.SmtpException, Rebex.Net.ProxySocketException & System.Net.Sockets.SocketException)
- Implementing IMAP Idle using Rebex in .Net
- Rebex FTPS component takes too long with uploading files
- EWS Managed API Attachment - Properties of attchment to existing email are blank
- I can't open .pdf, .doc etc. file from other servers via SFTP using rebex
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Forcing specific content types is possible using Rebex API (at least in this case), but you have to use the low-level MIME API. So if you are currently using the
MailMessageclass, you might use this approach:However, be aware that this will result in a message that appears to only contain binary data, and it will most likely not be recognized as an S/MIME message by common mail software and libraries, including Rebex Secure Mail.