René's URL Explorer Experiment


Title: Sending SMIME messages with sendMail endpoint is broken. · Issue #2544 · microsoftgraph/msgraph-sdk-java · GitHub

Open Graph Title: Sending SMIME messages with sendMail endpoint is broken. · Issue #2544 · microsoftgraph/msgraph-sdk-java

X Title: Sending SMIME messages with sendMail endpoint is broken. · Issue #2544 · microsoftgraph/msgraph-sdk-java

Description: Describe the bug Hello, We are using Microsoft Graph Java SDK to send encrypted SMIME Messages. We are already encrypting the content and provide a full MIME document to endpoint: https://graph.microsoft.com/v1.0/me/sendMail For example ...

Open Graph Description: Describe the bug Hello, We are using Microsoft Graph Java SDK to send encrypted SMIME Messages. We are already encrypting the content and provide a full MIME document to endpoint: https://graph.mic...

X Description: Describe the bug Hello, We are using Microsoft Graph Java SDK to send encrypted SMIME Messages. We are already encrypting the content and provide a full MIME document to endpoint: https://graph.mic...

Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sending SMIME messages with sendMail endpoint is broken.","articleBody":"### Describe the bug\n\nHello,\n\nWe are using Microsoft Graph Java SDK to send encrypted SMIME Messages.\nWe are already encrypting the content and provide a full MIME document to endpoint:\nhttps://graph.microsoft.com/v1.0/me/sendMail\n\nFor example our MIME Message looks like this (saved on content variable):\n\n```\nDate: Tue, 10 Feb 2026 11:24:45 +0000 (UTC)\nFrom: HenriettaM@xyz.onmicrosoft.com\nTo: xxx-test@gmx.de\nMessage-ID: \u003c....>\nSubject: Test2\nMIME-Version: 1.0\nContent-Type: application/pkcs7-mime; name=\"smime.p7m\"; smime-type=authEnveloped-data\nContent-Transfer-Encoding: base64\n\nMIAGCyqGSIb3DQEJEAEXoIAwgAIBADGCAdswggHXAgEAMIGPMHcxCzAJBgNVBAYTAkRFMQwwCgYD\n...\n\n```\n\nWe are using the following code snipplet to send the Email:\n\n```\ninitializeGraphClient();\nString encoded = Base64.getEncoder().encodeToString(content.getBytes());\n\nRequestInformation requestInfo = new RequestInformation();\nrequestInfo.httpMethod = HttpMethod.POST;\nrequestInfo.urlTemplate = \"{+baseurl}/users/{+email}/sendMail\";\nrequestInfo.pathParameters = new HashMap\u003c>();\nrequestInfo.pathParameters.put(\"baseurl\", \"https://graph.microsoft.com/v1.0\");\nrequestInfo.pathParameters.put(\"email\", config.getMailbox());\nrequestInfo.headers.put(\"Content-Type\", Set.of(\"text/plain\"));\nrequestInfo.setContentFromScalar(client.getRequestAdapter(), \"text/plain\", encoded);\n\nHashMap\u003cString, ParsableFactory\u003c ? extends Parsable>> errorMapping = new HashMap\u003c>();\nerrorMapping.put(\"4XX\", ODataError::createFromDiscriminatorValue);\nerrorMapping.put(\"5XX\", ODataError::createFromDiscriminatorValue);\n\nclient.getRequestAdapter().sendPrimitive(requestInfo, errorMapping, Void.class);\n```\n\nHowever our SMIME content is converted into an attachment and send as an attachment packed into a multipart/mixed structure by sending the Email.\n\nHere is what we get on the reciever side:\n\n```\nContent-Type: multipart/mixed;\n\tboundary=\"_002_155174533371770722695547_\"\nMIME-Version: 1.0\n\n--_002_155174533371770722695547_\nContent-Type: text/plain; charset=\"us-ascii\"\nContent-Transfer-Encoding: quoted-printable\n\n--_002_155174533371770722695547_\nContent-Type: application/pkcs7-mime; name=\"smime.p7m\"\nContent-Description: smime.p7m\nContent-Disposition: attachment; filename=\"smime.p7m\"; size=4483;\n\tcreation-date=\"Tue, 10 Feb 2026 11:33:38 GMT\";\n\tmodification-date=\"Tue, 10 Feb 2026 11:33:38 GMT\"\nContent-ID: \u003cC06558A1F17AA04CAE95309F8C325E89@namprd19.prod.outlook.com>\nContent-Transfer-Encoding: base64\n\nMIAGCyqGSIb3DQEJEAEXoIAwgAIBADGCAdswggHXAgEAMIGPMHcxCzAJBgNVBAYTAkRFMQwwCgYD\n```\n\nCan you fix sending a SMIME by using this sendMail endpoint or is there any alternative ways for sending SMIME with Graph API?\nWe basically followed the Example 4 in this documentation page:\n\nhttps://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http#example-4-send-a-new-message-using-mime-format\n\n### Expected behavior\n\nSending SMIME messages should work with the sendMail endpoint when Content-Type is provided as text/plain.\n\n### How to reproduce\n\nSee the code snipplet above for example code.\nWe can also provide a full SMIME example content if you want.\n\n### SDK Version\n\n_No response_\n\n### Latest version known to work for scenario above?\n\n_No response_\n\n### Known Workarounds\n\n_No response_\n\n### Debug output\n\n_No response_\n\n### Configuration\n\n_No response_\n\n### Other information\n\n_No response_","author":{"url":"https://github.com/precoder","@type":"Person","name":"precoder"},"datePublished":"2026-02-10T14:04:42Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a9a01bd7-6704-7776-4af0-158cfe06a44c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB830:1F5C2C:9CFE5:D95ED:6AF6BA91
html-safe-nonce0cffd13f06a758bfa0b6769fe962382a218b2c402e9b9d23d73b5976d072b251
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODMwOjFGNUMyQzo5Q0ZFNTpEOTVFRDo2QUY2QkE5MSIsInZpc2l0b3JfaWQiOiI0MjQyNzM1ODU2OTEwNTE0ODMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac135657cad85f3a8bb8cfc0533c7999effe692fa4cd6696f291284f1c53558ebc
hovercard-subject-tagissue:3921655198
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/2544/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b810edc1e81f95db8e08377c62906a1f4df21d4b7cb6ea1b28f68401f470a7ce/microsoftgraph/msgraph-sdk-java/issues/2544
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b810edc1e81f95db8e08377c62906a1f4df21d4b7cb6ea1b28f68401f470a7ce/microsoftgraph/msgraph-sdk-java/issues/2544
og:image:altDescribe the bug Hello, We are using Microsoft Graph Java SDK to send encrypted SMIME Messages. We are already encrypting the content and provide a full MIME document to endpoint: https://graph.mic...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameprecoder
hostnamegithub.com
expected-hostnamegithub.com
None8dfae1499400ee498ab0f86538d1c034e6c1b4f51c63ecade775c3b0894e3379
turbo-cache-controlno-preview
go-importgithub.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git
octolytics-dimension-user_id17304259
octolytics-dimension-user_loginmicrosoftgraph
octolytics-dimension-repository_id103300409
octolytics-dimension-repository_nwomicrosoftgraph/msgraph-sdk-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id103300409
octolytics-dimension-repository_network_root_nwomicrosoftgraph/msgraph-sdk-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseee168845eb2be91203b179104ac9977fe4ea69a3
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoftgraph/msgraph-sdk-java/issues/2544#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F2544
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F2544
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoftgraph%2Fmsgraph-sdk-java
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
microsoftgraphhttps://github.com/microsoftgraph
msgraph-sdk-javahttps://github.com/microsoftgraph/msgraph-sdk-java
Codehttps://github.com/microsoftgraph/msgraph-sdk-java
Issues107 (107)https://github.com/microsoftgraph/msgraph-sdk-java/issues
Pull requests23 (23)https://github.com/microsoftgraph/msgraph-sdk-java/pulls
Actionshttps://github.com/microsoftgraph/msgraph-sdk-java/actions
Projectshttps://github.com/microsoftgraph/msgraph-sdk-java/projects
Security and qualityhttps://github.com/microsoftgraph/msgraph-sdk-java/security
Insightshttps://github.com/microsoftgraph/msgraph-sdk-java/pulse
https://github.com/microsoftgraph/msgraph-sdk-java
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
Sending SMIME messages with sendMail endpoint is broken.https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544#top
status:waiting-for-triageAn issue that is yet to be reviewed or assignedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22status%3Awaiting-for-triage%22
type:bugA broken experiencehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com/precoder
Mehmet Can Cömert (precoder)https://github.com/precoder
on Feb 10, 2026https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544#issue-3921655198
https://graph.microsoft.com/v1.0/me/sendMailhttps://graph.microsoft.com/v1.0/me/sendMail
https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http#example-4-send-a-new-message-using-mime-formathttps://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http#example-4-send-a-new-message-using-mime-format
Mehmet Can Cömert (precoder)https://github.com/precoder
status:waiting-for-triageAn issue that is yet to be reviewed or assignedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22status%3Awaiting-for-triage%22
type:bugA broken experiencehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
on Feb 10, 2026https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544#event-22675287890
https://github.com/precoder
Mehmet Can Cömert (precoder)https://github.com/precoder
on Feb 10, 2026https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544#issuecomment-3878389241
https://github.com/precoder
Mehmet Can Cömert (precoder)https://github.com/precoder
on Sep 25, 2026https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544#issuecomment-5829611295
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/2544
status:waiting-for-triageAn issue that is yet to be reviewed or assignedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22status%3Awaiting-for-triage%22
type:bugA broken experiencehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.