Has anyone had any problems, adding people to the Listserv part of imail?  I wrote an ASP script that would take the results of an HTML form and then add that person to the Listserv.  My problem is, that this works great but the person I am subscribing to the Listserv gets a message saying that they are already a member of the Listserv. The following is the ASP code that I used to add the person to the Listserv:

<%
' Define Default List Information
DefaultList = "Newsletter"
ListservAddress = "[EMAIL PROTECTED]"
'
Set MailBody Equal To Form Response
if request("action")="subscribe" then
MailBody = "subscribe " & DefaultList & " " & Request("Name")
session("Action") = "User Successfully Added"
end if
if request("action")="unsubscribe" then
MailBody = "unsubscribe " & DefaultList & " " & Request("Name")
session("Action") = "User Successfully Deleted"
end if
' Set Variables To Use CDONTS To Send Subscribe Message
Dim SendMail
Set SendMail = CreateObject("CDONTS.NewMail")
SendMail.From = Request("Email")
SendMail.To = ListservAddress
SendMail.Subject = ""
SendMail.BodyFormat = 0
SendMail.MailFormat = 0
SendMail.Body = MailBody
SendMail.Send
set SendMail = nothing
referer = request.servervariables("http_referer")
response.redirect referer
%>
 
 
Thanks for everyone's help,
 
 

Reply via email to