Tra71
asked on
Is there anyway to increase the size limit on a "mailto" function
Hi,
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?
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;
}
else
{
location.replace('mailto:&bcc=' + emailto);
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.