ASP Email and listserv subscription

A

Andy

Morning All,

I'm looking to put a subscribe feature on my site. The user would just
put their email address into the subscribe box and press go.

The listServer requires the email address in the message body. How do
I get the email address into a hardcoded message?

message: subscribe listname <[email protected]>

Has anyone come across any tutorials about this? I wasn't sure as to
what to call it to do a search.

Thanks,
Andy...
 
R

Ray Costanzo [MVP]

Using CDO on Windows 2000 or 2003, you could do:

<html><body>
<form method="post" action="subscribe.asp">
<input name="emailAddress" type="text">
<input type="submit">
</form></body></html>


subscribe.asp:
<%
Dim sEmail : sEmail = Request.Form("emailAddress")
Dim oCDO : Set oCDO = CreateObject("CDO.Message")
oCDO.From = sEmail
oCDO.To = "(e-mail address removed)"
oCDO.Subject = "Hi server."
oCDO.TextBody = "subscribe listname " & sEmail
oCDO.Send
Set oCDO = Nothing
%>

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top