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 answers
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
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
- SMIME with BouncyCastle and MultiPart with Files
- Is it possible to encrypt WordPress E-Mails with S/MIME?
- Difficulties with ECC, Bouncycastle and MimeKit
- how to Recognize signed/encrypted mails in outlooks
- Is it possible to sign and encrypt all outgoing mails with a normal SSL Domain certificate?
- trying to sign the governance and permission certificate using ECDSA based CA certificate in Java for Cyclone DDS
- Correct method to sign an XML document using S/MIME with a PKCS7 keystore containing a private key and its X.509 certificate
- How to send attachment on s/mime email
- Send SMIME format emails using Microsoft Graph API C# SDK
- Signing and encrypting e-mails
- Extract Excel file from a multipart/signed email attachment
- how does openssl smime determine micalg parameter?
- Thunderbird not able to decrypt s/mime email "Message cannot be decrypted"
- S/MIME signed mail doesnt work properly without encryption
- Python Exchangelib - get attachment from email with digital sign (smime.p7m)
Related Questions in REBEX
- How can you password protect a ZIP file at the folder level using Rebex.IO?
- Incomplete file download on Android emulator
- Login error using Rebex with SMTP on Office365
- Rebex.net authentication debugging
- Unable to zip and encrypt 100MB file using Rebex C#
- Can the S/MIME Content Type of e-mail be explicitly defined?
- How to connect with privateKey and certificate in Rebex
- In SSIS, How to fix this exceptions (Rebex.Net.SmtpException, Rebex.Net.ProxySocketException & System.Net.Sockets.SocketException)
- Unable to properly create the password protected zip file using Rebex library
- IMAP rebex Client connection timeout
- How to create exemption for catching corrupted files upon upload?
- Using ReBex to upload different files to FTP server?
- How to access Outlook IMAP server using OAuth tokens retrieved from Microsoft Graph API?
- The specified message is out of range error
- Rebex SFTP error in C#: Permission denied on PutFile
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?
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)
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.