Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help with Mail w/multiple people -Thanx in advance

Status
Not open for further replies.

nufather

Programmer
Mar 18, 1999
29
US
Here's the deal I have several people that I am sending an email to off of this website. The issue is this, If I select 6 and under I'm fine it will list all people in the To: and will display a body. The problem is that I'm wanting to send to about 30+ people at a time. and if I select 7 or more, it will only display the 1st 7 people and it will not display the body. When I echo it out I see everyone there in a string but , when I say yes put in mail it loses them. Anyone have a clue?

<?php
echo $Body;
echo $mail;
echo $Subject;
echo
&quot;<html>
<head>
<script language='javascript'>
function autosubmit(){
document.form1.submit()
}
onload=autosubmit;
</script>
</head>
<body>
<form name='form1' method='post' action='mailto:$mail?Body=$Body'>
</form>
</body>
</html>&quot;
?>

Thanx,
nufather

 
Your problem may be that there is a limit to the length of a URL, and the additional email addresses may be making it exceed that length. My suggestion would be to put your values into hidden form variables. That way they won't be part of the url, and there is not limit (that I know of) on the length of data sent via post. Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
tsdragon - Thanks for the idea. I tried it and it didn't work. Is there a limitation to opening a mail document and posting information automatically. (<- sorry not sure how to word that.) That's what it looks like. depending on the length of the address's and the number. It will put in several address's but if there too long then it wont put a cc or a bcc address or a body etc.....
 
It sounds like you are running into a length limitation. I don't know of one specifically applying to mailto, but that's what the problem seems to be. I'd guess your only alternative in this case is to use a server-side cgi program to send the email. Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Hi nufather,

I'm replying to your post because I find myself in the same predicament. I am curious to find out if you have resolved your problem, and if so, what solution did you come up with? I know that tsdragon suggested the server-side cgi program to send the email, but I am not sure that this solution might work for me... I'm working on an application for our company's intranet, using ASP, Javascript and VBScript as languages, and SQL Server 7.0 as backend.

Thanks for any information you might provide!

xman71.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top