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?
314 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
- how to send email from localhost using codeigniter?
- PowerShell EWS Save as for e-mails
- I want to develop an automated email application in asp.net with c#
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- Postfix - cannot connect to server to receive email
- PHPMailer send mail with array ( $_POST['email'] )
- Could Not Instantiate Mail Function - PHPMailer - With Attachments - Only Google Chrome
- encrypted email with entrust certificate is not opening with MS Outlook
- Disconnect Client connected to cgi application
- send a message using freemarker
- Using advanced ccs icons in email signatures
- How can I fetch emails on Android?
- Issue with email form and php script
- HTML Control Form with PHP - Errors
- javax.mail.getValidSentAddresses()
Related Questions in MIME-TYPES
- Adding Valid File Types - PHP form
- nginx: how to avoid forced downloads in all wav files?
- Html5 videos not displaying
- Why doesn't the subtype of this custom MIME type specify the particular row (from Content URI) in the table?
- How to properly send a message to outlook with an ics file and calendar part?
- CSV files being saved as XLS or nothing on download
- Why does a GET request for an mp4 file in Safari fail?
- NSURLSession uploadTaskWithRequest with mime type?
- PHP Mail - Multiple or malformed newlines found
- HTML form upload for ODT files / MIME type for *.odt
- Open html file in browser from intent
- Zip sent via email is invalid on first attempt
- Will browsers choke if the response header of a JSONP payload has content type of "application/jsonp"?
- Unable to upload .ppt files even after specifing the mime type
- PDF on S3 Served As image/png
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.