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 6077999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:47:03+00:00 2026-05-23T10:47:03+00:00

I’m using a PHP script to email a posting to Tumblr and Posterous. For

  • 0

I’m using a PHP script to email a posting to Tumblr and Posterous. For Posterous special characters are showing up in the posting but for Tumblr it don’t.
(In general Tumblr does support special character – I tried it out with emailing from Gmail)
So what could be the problem?

Here my PHP header:

$headers .= "MIME-Version: 1.0\r\n"
           ."Content-Type: multipart/alternative; boundary=\"PHP-mixed-$bound_text\"\r\n";

$message =  "--PHP-mixed-$bound_text\r\n"
           ."Content-Type: multipart/related; type=\"text/html\"; boundary=PHP-mixed2-$bound_text\r\n\r\n"
           ."--PHP-mixed2-$bound_text\r\n"
           ."Content-Type: text/html; charset=\"utf-8\"\r\n"
           ."Content-Transfer-Encoding: 7bit\r\n\r\n";

I already tried several charsets and Content-Transfer-Encoding combinations without any different result.

Any ideas are welcome.
Michael

  • 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-05-23T10:47:03+00:00Added an answer on May 23, 2026 at 10:47 am

    I looked into how my GMail account sent it and found out it used windows-1252 for the charset and the text is base64 encoded (this may not be case in using other GMail accounts). The email I sent below was successfully posted by tumblr and I used the function utf8_decode to generate the correct base64 string.

    $data = wordwrap(base64_encode(utf8_decode($stringWithSpecialCharacters)));
    

    The raw email message is below:

    To: myuploademail@tumblr.com
    Subject: tumblr post from sudocode
    from: omime class <script@sudocode.net>
    MIME-Version: 1.0
    Content-type: multipart/alternative;
        boundary=omime_1308940625_c0d4e36fd504619028804e8b23ceb12a
    
    
    --omime_1308940625_c0d4e36fd504619028804e8b23ceb12a
    Content-Type: text/plain; charset=windows-1252
    Content-Transfer-Encoding: base64
    
    38TW+eLq7vT76//mP9nCys4=
    --omime_1308940625_c0d4e36fd504619028804e8b23ceb12a
    Content-Type: text/html; charset=windows-1252
    Content-Transfer-Encoding: base64
    
    38TW+eLq7vT76//mP9nCys4=
    --omime_1308940625_c0d4e36fd504619028804e8b23ceb12a--
    

    I used my omime class to send the email and here’s the code I used:

    $email = new omime('alternative');
    $email->attachText('ßÄÖùâêîôûëÿæœÙÂÊÎ');
    $email->attachHTML('ßÄÖùâêîôûëÿæœÙÂÊÎ');
    
    $email->send('mysecretuploademail@tumblr.com', 'test tumblr post', 'from: omime class <script@sudocode.net>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I need to clean up various Word 'smart' characters in user input, including but
I need a function that will clean a strings' special characters. I do NOT
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
this is what i have right now Drawing an RSS feed into the php,

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.