| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have created a custom control panel for a client to select all of their contact's emails or just a couple from their database. All of the code is correct and everything works except for the mailto: which would put all of the email addresses into the To field of a blank email message. However, I did some checking and there is a limit on how long a url can be. There are too many characters for the email link to work since my client has so many email contacts. I have already invested a lot of time into the project and I am looking for an easy solution, if possible. Right now I have an asp page where you can select which contacts you would like to email. When you click the generate email button, it goes to a new page, sending the email addresses with it and generates the mailto: url from all of the email addresses. Is there a different way to generate a blank email with the addresses in it besides a mailto url? Or any other solutions? The only thing I cam up with is to list all of the email addresses on the page instead of the url and require the client to copy them and paste them into outlook.
|
|
#2
|
||||
|
||||
|
I had to do something like this before. What I ended up doing was creating an HTML form where the user could select contacts, enter the subject and message of the email. After clicking submit, I would loop through a number of contacts, say 50 at a time or so, and send the email using SMTP. In the end I rewrote it with .NET. Here is how you can send an email with ASP.
<% Dim objCDO, MailBody set objCDO = Server.CreateObject("CDO.Message") Set objCDO.Configuration = Session("Config") objCDO.To = "email@domain.com" objCDO.CC = "email@domain.com" objCDO.From = "myemail@domain.com" objCDO.Subject = "Submect" objCDO.HTMLBody = "Body" objCDO.Send set objCDO = nothing %> Hope this gives you some ideas. |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > URL Limitation & mailto: help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|