• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 568
  • Last Modified:

Is there anyway to increase the size limit on a "mailto" function


I have a list of contacts with emails, I want the user to be able to select the contacts they want to email and click a button to open up Outlook and populate bcc.

This is ok unless they select a lot of email addresses and the URL is too long, is there a way to get around this?

function SendEmails()
				var blVals = false;
				var emailto = '';
				for (n = 0; n < document.frmSendMail.elements.length; n++)
						if (document.frmSendMail.elements[n].name.substring(0,5) == 'Mail_')
								if (document.frmSendMail.elements[n].checked)
										var fieldname = 'EmailTo' + document.frmSendMail.elements[n].name.substring(document.frmSendMail.elements[n].name.indexOf('_'));
										var emailto = emailto + ';' + document.getElementById(fieldname).value;
										blVals = true;										
				if (blVals == false)
						alert('Please select performers to email...');
						return false;
						location.replace('mailto:&bcc=' + emailto);

Open in new window

1 Solution
Robby SwartenbroekxMSP engineerCommented:
Depending on the browser you are using.
IE for example supports URL's up to 2083 characters.
maybe do a check, if your emailto field goes over the 2000 characters, start a new mail message.
I tought outlook also had a maximum of 50 recipients for each message.

50 recipients is mostly not 2000 characters, I think it's even better to make a message every 50 users, or maximize the amount of selectable adresses to 50.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now