Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
1 answer
104 views

Off by one byte; Need extra CR in base64 encoded MIME string for sending email attachment [closed]

I've got everything working excepting 1 byte! The PNG header has a 0x0d on the 5th byte. When I use this base64 function, it somehow strips that. When I receive the attachment, I can view it on a ...
shawnixer's user avatar
0 votes
0 answers
61 views

How to sign an e-mail with PGP/MIME in Java?

In my Java program, I want to send e-mails signed with an OpenPGP key in PGP/MIME format as defined in RFC 3156. For this, I use PGPainless’ SOP and Angus Mail. Technically, signing plain text works ...
Pixelcode's user avatar
  • 440
0 votes
1 answer
95 views

c++ mapi IConverterSession MIMEToMAPI() is not working

Hi I am trying to use MAPI to convert the contents of an EML file to IMESSAGE data. I implemented the IConverterSession as follows, I didn't get any FAILED(hr) errors anywhere, but when I check the ...
jin's user avatar
  • 21
0 votes
0 answers
49 views

Handle octed-stream response pdf in Java

I am calling the soap Api. I am calling using HttpsURLConnection Code for making api call: HttpsURLConnection connection = (HttpsURLConnection) new URL(soapEndpointUrl).openConnection(); ...
Sourav Sharma's user avatar
0 votes
0 answers
38 views

Microsoft Graph Api send MIME

We are migrating a Java application from EWS to the Graph API. In the old application (with Exchange), we added MSIP(microsoft information protection) labels to the headers that did not start with X- /...
Damian W's user avatar
0 votes
2 answers
461 views

Jest unit test in Angular app is throwing "Jest encountered an unexpected token" error

I'm receiving email messages from a local mail server and I need to be able to parse them in JavaScript. The @ProtonMail/jsmimeparser library is working flawlessly which is a huge relief. However, it'...
commadelimited's user avatar
0 votes
1 answer
1k views

MIME type issue with nginx and pdf files

So I wanted to create a web application in angular that, amongst other things, shows pdf files to the user. The pdf files are stored in a database, and are retreived by and sent to the user with a ...
Jan Slager's user avatar
0 votes
0 answers
33 views

Android parsing of bMessage for MIME message

We are trying to figure out how to properly format a put BMSG when sending it to an Android devices so it will push it onwards to the receivers. The type of BMSG we are attempting is TYPE=MMS and when ...
poppe's user avatar
  • 677
0 votes
1 answer
77 views

Send template e-mail (.msg) through SMTP with inline images

I have an e-mail (newsletter) as .msg file which I would like to send through SMTP via Python. I have trouble embedding the images of the original e-mail in the e-mail which I sent via SMTP. They keep ...
WG-'s user avatar
  • 1,078
0 votes
0 answers
29 views

Apple mail inline html

Trying to write an email using Gmail API to send an email containing some plain text and some inline html (serially) draft_message = MIMEMultipart("mixed") text_part = MIMEText("hey, ...
Chris Johnston's user avatar
1 vote
1 answer
71 views

Parsing broken multipart/mixed email

I'm trying to use perl Email::MIME to capture the multipart/mixed portion of an email into a buffer. I have a script that I've been using for a long time that is now having a problem with a particular ...
Alex Regan's user avatar
0 votes
1 answer
111 views

How to Convert MimeMessage to String for Microsoft Graph

I have the following Java Code that tries to create a MIME message and send it to Microsoft graph. I have tried following several examples (see comments in code) but I still get an error. My code is: ...
HeronAlgoSearch's user avatar
1 vote
2 answers
35 views

Return text error message when browser expecting a .XLS or other binary file

My Flask server generates an HTML file containing an anchor tag resembling this: <a href="https://example.com/href_without_extension" download="excelfile.xls"> Download ...
IronPillow2's user avatar
0 votes
1 answer
60 views

Different Servers deliver different MIME type from .NET 4.7.1 API endpoint

I have a .NET 4.7.1 back end where I'm calling an API endpoint and expecting a text/html response. On one server I get the expected text/html, but on a different server (both running same version of ...
Brad Irby's user avatar
  • 2,549
1 vote
0 answers
127 views

A MIME type of "text/html"

I deployed my app to render and it worked fine for one day but after that I’ve got and error in console. Failed to load module script: Expected a JavaScript module script but the server responded ...
Timur's user avatar
  • 33
0 votes
1 answer
577 views

What is the difference between multipart/mixed, multipart/related and multipart/alternative?

Email headers specify the email's content type as one of: Content-Type: multipart/mixed Content-Type: multipart/related Content-Type: multipart/alternative I understand that multipart/alternative is ...
summerrain's user avatar
1 vote
1 answer
335 views

Reading EML-FIles with Delphi

I want to read eml-files and extract the plain text. So far i have found the TIdMessage with which i can iterate over the TIdMessage.MessageParts and check if their PartType is mptText. All of that ...
Max's user avatar
  • 79
0 votes
0 answers
64 views

Send multiple files via HTTP from server to server

I'm looking to send some files over HTTP from one server to another, and am wondering what the best MIME type and method to do so is. Currently I have a RESTful HTTP server and have an endpoint which ...
JackG's user avatar
  • 73
1 vote
0 answers
56 views

Stylesheet properties not reflecting on the webpage due to MIME type

I am working on a project that runs a web server on a specified port written in Golang. The styling properies of the page don't reflect and the following error is logged on the browser console. ...
John Eliud's user avatar
0 votes
0 answers
86 views

How to use the Python filemagic library to check the MIME type of a file for a file that is not in the same directory?

So, I am building a flask application where I currently need to check the MIME type of file to restrict the type of files to be uploaded (not being limited to the extension of the files). The folder ...
Neupane Diwas's user avatar
0 votes
1 answer
2k views

File upload bypass mechnisms in PHP

I am learning file upload bypass mechanisms in PHP, which include multiple techniques, such as bypassing extensions, mime types, and adding magic bytes. I have a simple script (copied from chatGPT) ...
Johnny's user avatar
  • 1,765
2 votes
1 answer
151 views

Nginx fails to load CSS and PNG files

I'm trying to create a basic PHP web application. I want to host it on nginx. It works fine on my host machine, but when I try to move it to docker it fails to load the CSS and PNG files, even tho PDF ...
krzys7007's user avatar
0 votes
0 answers
58 views

Duplicating data on the Mac clipboard using Qt

I'm writing an application in C++ using Qt. That application will run on both Win and Mac. I need to be able to put MIDI data on the system clipboard. Originally, I only needed the data to be copied ...
SimplyBlue's user avatar
1 vote
0 answers
95 views

How to set multipart related boundry in golang

AM trying to prepare a multipart/related message which involve JSON data n1n2Request.JsonData and a binary data binaryData to be sent in HTTP request, however, am having issue abou how to set the ...
van's user avatar
  • 95
0 votes
2 answers
145 views

Reading MIME body of email

Traditional Domino design...db is mail-in database and receives emails from outside our domain. The resulting arrived memos are Multipart MIME-based emails. The documentation of NotesMIMEEntity ...
Matt Smith's user avatar
1 vote
0 answers
121 views

Outlook and hotmail one-click unsubscribe header formatted

Headers are not formatted correctly in Outlook and Hotmail. The header and unsubscribe-button is displayed correctly in gmail, but in outlook and hotmail, the header looks formated. As far as i can ...
Bille's user avatar
  • 411
1 vote
0 answers
64 views

I'm experiencing issues sending an email with a PDF attachment using the Gmail API

I'm experiencing issues sending an email with a PDF attachment using the Gmail API. When I attach files like txt, png, and jpeg, there are no issues. However, if I want to send files like pdf, docx, ...
Hayri ZCAN BRF's user avatar
0 votes
1 answer
206 views

Spring Boot 3.1: Problem with MIME-generation - works at Spring Boot 2.7

I have a simple Spring-Boot app that generates a MIME-structure. I do it for tests in a simple component MyComp. package com.example.demo; import java.io.*; import java.util.*; import javax.mail.*; ...
chris01's user avatar
  • 12.7k
1 vote
0 answers
153 views

Gmail not receiving email HTML conforming to MIME standard

I'm currently developing a tool that sends emails to users via SMTP, including HTML content and a PDF attachment. I've been testing it with two different clients: desktop Outlook and web Gmail. The ...
David B's user avatar
  • 11
0 votes
1 answer
102 views

How to process MIME format with inline image separated into a different boundary using TIdMessage?

I have a MIME format as below: Content-Type: multipart/alternative; boundary="qawqKLHOZYgscUPhZKw5hacv=_UlERjiEj" MIME-Version: 1.0 Date: Mon, 25 Mar 2024 10:17:34 +0800 This is a multi-...
Lyn's user avatar
  • 219
1 vote
1 answer
170 views

Remove (not clear) attachments from email

Python 3.6 I'm trying to archive some old mails, and I want to remove attachments from some of them. However, if I use the clear() method, the MIME part remains in the mail, just empty (so it's ...
Bangaio's user avatar
  • 329
-2 votes
1 answer
127 views

MIME for preview text in subject line of email [duplicate]

I want to show preview text with subject in subject line not the body of the email. before this I'm showing body f the email with the subject in subject line.I'm using the Golang AWS SES-v2 https://...
Aanchal Sharma's user avatar
0 votes
1 answer
656 views

How can I get my IIS web server to serve a ".log" file as text and not instead offer me a save/download

I am trying to get my IIS server to treat .log files in a directory the same as it does a .txt file. The .txt and .info files are displayed as text in a web page (which is what I want to acheive). The ...
Bob's user avatar
  • 1
-2 votes
2 answers
737 views

How to get the text of the email body?

I have this code but I don't actually get the email text. Have I got to decode the email text? import sys import imaplib import getpass import email import email.header from email.header import ...
Pedroski's user avatar
  • 511
0 votes
1 answer
205 views

How to convert HTML source from an email body to valid HTML?

I am using a PHP script to automatically download emails from an IMAP server. The HTML of the email body looks something like this: <!DOCTYPE html><html lang=3D"en" xmlns=3D"...
uncovery's user avatar
  • 888
0 votes
1 answer
175 views

Image embedded in email also becomes an attachment

A script that is correctly embedding inline images in HTML emails, is also adding the images as attachments. How can I eliminate this second copy of each image? If any intended attachments are ...
JAC's user avatar
  • 1,127
1 vote
0 answers
177 views

Differences in MIME type between Firefox and Chrome when uploading CSV

When I upload a csv file on Chrome the MIME type is text/csv. When I upload the same file on Firefox the type is application/vnd.ms-excel, this is however also the mime type for xls files, which I don'...
Mitch's user avatar
  • 3,476
1 vote
1 answer
166 views

Setting File Type for Emailed Attachments

A Python script for sending email with attachments is working, but all attachments, if any, are arriving as .eml files rather than as jpg, pdf, txt, etc. They do open correctly, but I would prefer ...
JAC's user avatar
  • 1,127
0 votes
1 answer
108 views

C# Error : Message[Precondition check failed.] Location[ - ] Reason[failedPrecondition] Domain[global]

I'm trying to send emails through Googles SMTP OAuth2 API. I've finanlly managed to get to a state where I am getting an access token without a rejection. Now I am getting the error: Message[...
MewOI's user avatar
  • 1
0 votes
1 answer
92 views

Html Form Attachments Not Reaching Destination

I have an html mail form on my site, which should allow users to attach an image file to their form submissions. For a few years, the form had been working like a charm. *Note: I have been directing ...
Q-Tip's user avatar
  • 85
-1 votes
1 answer
141 views

How can I create a Calendar .MSG file using MsgKit

I am trying to create a .msg file, preferably using MsgKit, that is a calendar invite. As I understand it, it needs to be a MIME message with only one (main) text/calendar part. How can I do that? ...
David Thielen's user avatar
0 votes
1 answer
324 views

Extracting embedded inline images CID from MSG file

I am working on showing previews of MSG files. For this, I am parsing the email content in Java. To read the MSG file, I am using Apache POI (and want to limit my need to add additional dependency). ...
esh_08's user avatar
  • 21
0 votes
1 answer
572 views

deployment angular 15 project on nginx got server responded with a MIME type of "text/html"?

I am deploying angular app to domain via nginx server with docker file and my deployment angular path is /domain/ui/ but thing is that after deployment i got above error. **> Failed to load module ...
Kapil Soni's user avatar
  • 1,055
0 votes
0 answers
111 views

Recieving broken attachments from webform to cpanel webmail

I have a simple web form on my site, which requests a few fields of data from the user; Name, Email and Message, as well as an image file. For a few years, everything seemed to work smoothly with a ...
Nam Tab's user avatar
  • 25
0 votes
1 answer
393 views

Message parsing with Mimekit Parsing Gmail API is always empty

I am making a call to the Gmail API endpoint: https://gmail.googleapis.com/gmail/v1/users/me/messages/[id] to get an email message (where [id] is the ID of the message I am getting). I know that my ...
Michael Kintscher they-them's user avatar
0 votes
0 answers
37 views

Send an email with a profile picture (avatar) using Python through Gmail [duplicate]

I have a profile picture set for [email protected], however, when I send an email with Python using smtplib and MIMEMultipart the profile picture does not show up for the reciever. I authenticate ...
Marcell Takács's user avatar
0 votes
1 answer
509 views

Inline images are showing up as attachments in Gmail inbox

I am sending emails in Python with CID inline images. The inline images work fine: they show up embedded in the email and the email itself does not appear to have attachments. However, in the Gmail ...
leros's user avatar
  • 667
0 votes
1 answer
268 views

How to attach files with space in filename when sending email

I am developing a Python application to send email. I follow this tutorial and attach with this code: import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import ...
ginjaemocoes's user avatar
  • 4,652
0 votes
1 answer
743 views

How to recognize start of base64 image in mime string

In my (limited) experience with extracting the base64 image string from a mime string for my PHP based email program, the base64 image always starts after the first consecutive pair of LF (\x0A) ...
objetora's user avatar
1 vote
1 answer
179 views

Invalid Zip File -ZipArchive

I am trying to create a zip file from a byte[] and return the zip file as a byte[] also but when I upload the bytes to blob storage, the zip file is invalid when I download it. Code: byte[] zipBytes; ...
Liam Kenny's user avatar

1
2 3 4 5
41