Results 1 to 6 of 6

Thread: How to Remove mime version 1.0

  1. #1
    Join Date
    Sep 2017
    Posts
    20
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default How to Remove mime version 1.0

    How to remove MIME VERSION 1.0 FROM HEADER
    IT IS SHOWING IN HEADER OF MY MAIL SENT FROM MY WEBPAGE

    My code look like this

    $headers = 'From: ' . strip_tags($_POST['Name']) .'';
    $headers .= "MIME-Version: 1.\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\n";

    In Mail header looks like this

    mhMIME-Version: <1.@p3plcpnl0914.prod.phx3.secureserver.net>
    Last edited by pkrishna42; 09-06-2017 at 05:41 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Are you sure you don't need it? Almost all but the most plain vanilla text email requires it and it's the only version available. Perhaps something in the email is triggering it, like some special character for a specific language. If you're sending in UTF-8 and need to, you probably also need MIME 1. If you have an image, or an attachment, rich text, or a multi parted message, etc., you need MIME 1.

    If you have only plain ASCII text, perhaps MIME 1 is the default for whatever you're using to send the email. Or it may be in the headers section of the script you're using to assemble the email.

    If it's either of those, and if you're sure you don't need it, you should be able to track it down in either the configuration or in your mail script.

    It may be being added in transit, not sure if this can happen, but if something, even the receiving email program sees (or even thinks it sees) that MIME 1 is required, it may apply it at that point. If so, there may be nothing you can do about it unless there is a header that specifically prohibits MIME 1. I don't know if there is or not, and if there is, it will likely do you no good if MIME 1 is being added by your script or your configuration.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2017
    Posts
    20
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    my code goes like this

    $headers = 'From: ' . strip_tags($_POST['Name']) .'';
    $headers .= "MIME-Version: 1.\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\n";

    and in mail header it looks something like this

    Akash MIME-Version: <1.@p3plcpnl0914.prod.phx3.secureserver.net>

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Don't know for sure but from googling on the subject, I'd try:

    Code:
    $headers = 'From: ' . strip_tags($_POST['Name']) .''."\r"; 
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r";
    $headers .= "MIME-Version: 1.0\r";
    To be clear, you probably need that in the header, but it shouldn't appear in the email body when the message is viewed in the normal manner in an email program. When viewing the headers in an email program or via any other method it should look like so:

    MIME-Version: 1.0

    If you're absolutely sure you don't need it, just skip that line.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Sep 2017
    Posts
    20
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default remove mime version

    If I skip that line I am not getting my mail only html is forwarded to mail

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, then, as I said, you probably need it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. How to add Mime Type
    By cryoffalcon in forum Other
    Replies: 0
    Last Post: 06-07-2012, 08:20 PM
  2. UPLOADING Page but no MIME for file
    By chopper in forum PHP
    Replies: 0
    Last Post: 04-24-2008, 10:13 PM
  3. mime types
    By bharat.netsecurity in forum Other
    Replies: 1
    Last Post: 11-28-2007, 10:48 AM
  4. MIME types configuring files
    By fileserverdirect in forum Other
    Replies: 12
    Last Post: 11-19-2007, 07:03 PM
  5. MIME types
    By lord_havoc in forum Other
    Replies: 3
    Last Post: 09-25-2007, 03:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •