Questions tagged [mime-mail]

75 questions
47
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
  • 15,236
  • 18
  • 60
  • 71
9
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…
semchena
  • 113
  • 1
  • 6
9
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
  • 21,233
  • 17
  • 82
  • 125
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

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
  • 441
  • 5
  • 15
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
  • 829
  • 1
  • 13
  • 32
3
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
  • 687
  • 3
  • 16
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
  • 516
  • 1
  • 6
  • 19
2
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
  • 27
  • 4
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…
arsalan
  • 325
  • 2
  • 12
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
  • 213
  • 3
  • 6
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…
coderama
  • 14,202
  • 38
  • 149
  • 282
2
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,357
  • 4
  • 22
  • 26
2
votes
0 answers

how to debug email mime type issue?

In short the user submits a contact us form from a web page which generates an email. The email is delivered email box that is check by Ciboodle application. Since few weeks the and additional and unwanted mime add have been appearing in the…
2
votes
1 answer

Sending message through java mail

Hello i am able to send a mail from my web application. But the problem here is am able to send only one line of message ie I want to send a message saying: Your username is : xxxx Your PassWord is: xxx Message message = new…
user3349720
  • 179
  • 2
  • 12
1
2 3 4 5