Questions tagged [mime-mail]
83 questions
53
votes
1 answer
GMail displays plain text email instead HTML
My Rails 3 application sends out emails in both plain text and HTML formats. I have tested it locally using RoundCube and Squirrel Mail clients and they both display HTML version with images, links, etc. GMail on the other hand chooses plain text…

Vincent
- 16,086
- 18
- 67
- 73
17
votes
2 answers
Sending an email with Python from a Protonmail account, SMTP library
I am using apple mail app with protonmail-I have the bridge app. (MacOS and Windows install here; linux here.)
After activating the bridge app, I tried to send an email with python by using smtp library and it does not work. Here is the code which I…

Yesim
- 193
- 1
- 1
- 7
10
votes
5 answers
Forwarding emails with a PHP script
We have a cron'ed PHP script that checks an inbox every ten minutes. The purpose of this script is to handle "STOP to quit" functionality for our SMS notification service we provide. If the script finds any emails with the word "STOP" at the…

Michael Irigoyen
- 22,513
- 17
- 89
- 131
5
votes
1 answer
MIME email multipart parser
I'm looking for a node.js module that can parse my IMAP request - FETCH 1 BODY[TEXT]. I need multipart parser, because I have messages with few levels in hierarchy.
Example of message:
--94eb2c032ec81bf420053483f579
Content-Type:…

Axel186
- 541
- 5
- 17
5
votes
1 answer
Gmail displays both HTML and text and HTML parts of email
I am sending an email to a gmail account using Python. This is the code I'm using
msg = email.mime.multipart.MIMEMultipart()
msg['From'] = 'myemail@gmail.com'
msg['To'] = 'toemail@gmail.com'
msg['Subject'] = 'HTML test'
msg_html =…

Ravi
- 727
- 6
- 19
4
votes
2 answers
Using Mail_Mime to send attachment to GMail, receiving "noname" attachment
I've got a pretty simple website form that can take attachments. It sends to a gmail address using gmail's smtp. Everything is working great except that the file arrives as "noname" - no filename or extension. If you download the attachment and…

CLB
- 41
- 1
- 2
3
votes
1 answer
java.io.IOException: "text/plain" DataContentHandler requires String object, was given object of type class [B
When I'm trying to send one attachment, what ever zip file or text file, code is working fine but when trying to send two attachments one is Text file and other one is Zip file, it is throwing error. I have tried number of ways but still no luck.…

Bobby
- 37
- 5
3
votes
2 answers
Mime Message could not be parsed
I have following mime message:
Return-Path:
X-Original-To: some@adress.com
Delivered-To: some@adress.com
Received: from localhost [127.0.0.1]
by unify-prod with POP3 (fetchmail-6.3.21)
for (single-drop);…

Peter
- 1,011
- 2
- 16
- 39
3
votes
2 answers
What is the syntax for using cid:attachmentID in e-mail for image file used in css
I am working on a script that e-mails some formatted html and images to recipients. Using MIME::Lite, I figured out a way to send the css file and the image file it uses as attachments. The image comes out at the end of the mail message - as an…

Manidip Sengupta
- 3,573
- 5
- 25
- 27
3
votes
0 answers
php MIME mailparse - imap. How to parse the body text and the body html?
It's been a while that I'm trying to do a job that gets the emails from gmail, parses them and then puts the required data in the database, but I'm finding it hard to work with PHP MailParse which documentation is very poor. I tried…

Tedi Çela
- 544
- 1
- 8
- 20
2
votes
2 answers
How to get Message objects from Mail Raw headers in C#
We are using sendgrid services to sending and receive emails from customer and need to parse the mail raw headers objects (Message-ID,Date etc.) from customer mail response in Asp.Net Core WeB API C# application.
Please find the example of Email Raw…

vijay
- 701
- 2
- 12
- 26
2
votes
1 answer
emails in drupal 7 using mime mail module
I was trying to send simple emails in Drupal 7 using rules. It was going good.
At one stage I had to send HTML email, so I enabled "Mime Mail" module. When I enable this module, emails are not being sent. Although I am not even sending HTML and I…

Muhammad Arsalan
- 345
- 4
- 14
2
votes
2 answers
Ruby: how to parse e-mail mime from the stdin
Anyone know how I can parse the E-mail MIME from Ruby when the input is from STDIN? I have found a gem called "mail" which looks really nice but so far as I can see it's able to read a mail only from the file:
require 'mail'
mail =…

user3612491
- 223
- 3
- 7
2
votes
2 answers
How to add a "Body" to a python mime multipart(has attachment) email
I am using the following snippet to send an email with an attachment. I want to add a message in the body describing the attachment, how do I do it? Currently I get the email with a blank body.
msg = MIMEMultipart()
msg["From"] = emailfrom
…

Reise45
- 1,163
- 4
- 18
- 23
2
votes
1 answer
The safest way to add a header and a footer to an e-mail?
I am busy writing the last bit of an SMTP relay engine. Basically, people send mail to this SMTP address, it gets piped to files, analyzed, and then headers and footers are added to the body. My problem is, I'm not sure if my way of altering the…

rockstardev
- 13,479
- 39
- 164
- 296