2,042 questions
0
votes
1
answer
106
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 ...
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 ...
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- /...
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 ...
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 ...
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 ...
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 ...
1
vote
0
answers
132
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 ...
1
vote
1
answer
338
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 ...
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.
...
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) ...
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 ...
0
votes
2
answers
149
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 ...
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, ...
1
vote
0
answers
154
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 ...
1
vote
1
answer
171
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 ...
0
votes
1
answer
658
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 ...
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"...
1
vote
0
answers
178
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'...
0
votes
1
answer
109
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[...
-1
votes
1
answer
142
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? ...
-1
votes
1
answer
574
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 ...
0
votes
1
answer
394
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 ...
0
votes
1
answer
515
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 ...
0
votes
1
answer
744
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) ...