Forum Moderators: phranque
My web app allows the user to select from various filters to produce a list of email addresses. Once built dynamically through ASP, I use a location.href=mailto:<the list> command to open the mail client and send mail.
This works great with moderate sized lists. I ran into a situation where the list was over 3000 characters, exceeding the 2083 characters allowed by IE (http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q208427&).
Has anyone come across a way to beat this? Or, is there a better way of sending the email from the webapp? I don't want to send it through the SMTP server since the return address needs to be a registered user with the mail server to avoid relaying issues.
Any ideas appreciated.
So how about still doing it on the server, but filling in the Reply-To field [ietf.org] when you send?
You can find the details on the CDONTs object on the Microsoft web site [msdn.microsoft.com]. So, untested, you could do this:
' strBody set in advance for message body
Dim objNewMail
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.Value("Reply-To") = "The Boss<myemail@microsoft.com>"
objNewMail.Send "myemail@microsoft.com", _
"myreports@microsoft.com", _
"Reorganization", strBody, 2 ' high importance
Set objNewMail = Nothing