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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:23:13+00:00 2026-06-16T20:23:13+00:00

I have run into some problems with emailing a file from flex. I currently

  • 0

I have run into some problems with emailing a file from flex. I currently use the code below. If bodyVar is fewer than 1967 then the email is populated fine. When i call this code an Outlook message opens containing whatever is in bodyVar. If it is more than 1967 then it opens with a blank page.

var mailMsg:URLRequest = new URLRequest("mailto:");
var variables:URLVariables = new URLVariables();
variables.subject = subVar;
variables.body = bodyVar;
mailMsg.data = variables;
mailMsg.method = URLRequestMethod.GET;
navigateToURL(mailMsg, "_self");

I am using Firefox and I presume this 1967 is coming from that. If I used IE then the email does not even open.

Does anyone know of a way of sending an email in flex which allows me to send a lot of text? I am not bothered by formatting or images etc. I just need to be able to send text

Thanks

EDIT

I have just found this bit of code that shows another way without using URLVariables object. I presume the limitation here is in http

var s:String = "";
s += "mailto:";
s+= sendTo.text;
s+= "?";
s+= "subject=";
s+= subjectVar;
s+= "&";
s+= "body=";
s+= bodyVar;
navigateToURL(new URLRequest(s));

EDIT 2
To be clear I want to open a new email message using the user’s email client. So if they have outlook installed I would like an Outlook msg opened containing text that should be sent.

  • 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-16T20:23:14+00:00Added an answer on June 16, 2026 at 8:23 pm

    I ran into this exact thing a while back. After some deep digging I discovered the issue:

    The problem is that Outlook (like Internet Explorer) has a URI character limit of 2048 characters (total length which is why you are getting cut off). Outlook also has a max recipient length of 75 recipients.

    So your hard limit is coming from outlook. I would assume that the reason it performs differently when Firefox is set as the default browser is because firefox supports WAY more characters than internet explorer. So it will make it through firefox… then die at outlook. But when you use IE, it dies at IE since they have the same small char limit.

    The reason it shows up blank is because once one of these limits are hit, the browser converts mailto:long string into mailto:”” (an empty string).

    I would recommend:

    a) forcing the character limits in the UI to stay small
    b) using a server side script to send the emails instead.

    Here is a link that shows all of the different browsers and email clients and their corresponding character limits Link to Limits Page

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

Sidebar

Related Questions

I'm writing code for a blackjack game and have run into some problems. I
I'm developing a mobile app using Flex and I have run into some problems
I've run into some problems debugging a multi-threaded process using GDB. I have a
I just installed GMT4 (Generic Mapping Tools) from MacPorts and have run into some
I have a script and it has run into some problems: (function($) { $.fn.extend({
I have run into some problems with displaying data in jquery ui autocomplete, when
As a spin of of an earlier question, I have run into some problems
I'm trying to build my first generic list and have run into some problems.
I am fixing some problems with a legacy system and have run into a
I am using djangoappengine and I think have run into some problems with the

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.