Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7945323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:49:35+00:00 2026-06-04T00:49:35+00:00

Problem: I send out an email (using phpmailer and sendmail) which has a complex

  • 0

Problem: I send out an email (using phpmailer and sendmail) which has a complex html attachment. I don’t want the email client to attempt to display the attachment, since it’s far too complex to be viewed in a mail reader.

As far as I can make out, the way to do this is to set content-Disposition to attachment. The default in phpmailer is to set it to attachment anyway. However, Thunderbird (the only client I’ve tested so far) does actually attempt to display the html. If I view the headers in Thunderbird, I can’t see a Content-Disposition, but if I save the mail I can see:

--b1_420d367a26870bbc3bae73fb1de31f49
Content-Type: application/octet-stream; name="chart.html"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="chart.html"

Thunderbird has given the attachment the correct name, so it presumably understands the Content-Disposition. Is there something I can do with phpmailer to stop clients displaying html attachments, or can clients just do what they want?

Sending a compressed file isn’t really an option – the users may not be sophisticated enough to know what to do with it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:49:36+00:00Added an answer on June 4, 2026 at 12:49 am

    David :Bienvenu 2006-04-07 12:49:31 PDT
    for historical reasons, this is done intentionally and has been since Netscape 2.0 and Mozilla 1.0…we display inline the attachments we know how to display unless you turn off view | attachments inline. Perhaps we could add a pref for respecting the content-disposition for all attachment types.

    https://bugzilla.mozilla.org/show_bug.cgi?id=147461

    This has been a known behavior since at least 2002. As far as forcing it to not be displayed inline, I’m not sure that it can be done except by the user setting a pref as mentioned in the bug report.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using C#.Net to send out a HTML email which contains embedded images.
I am trying to send an email in ASP.NET using system.net.mail the problem is
I am using the following code to send out emails, the problem I am
I want to send out batch mails using SwiftMailer but just wondering what the
I'm using perl to assemble a multipart-MIME email, which I'm then sending using sendmail,
I'm using tables because I need to send an html email. any way my
another ordered delivery problem. We have an orchestration which is bound to a send
I'm using the Subscriptions module of Drupal to send out subscribed emails on a
I'm trying to send emails out using MIME::Lite with authentication. Here's the code snippet
Objective Send out a Magento transactional email with a link back to the website

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.