Welcome to WebmasterWorld Guest from 54.145.13.215

Forum Moderators: ocean10000

Message Too Old, No Replies

cdonts+email

     
2:47 pm on Jun 29, 2005 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


i have created a small list of clients and i wish to send email to them from my db. To do this and i click on their email via a web page and this then sends to email.asp where the cdonts script is together with the parameter of "Email".
All is fine so far, but i want them should they wish to be removed to click a link that sends them a page i have already prepared but sends the email too.
so as example www.test.co.uk/?email=blog@co.uk
i have tried many dirrent ways but i cant get it too work, can anyone help here?

strHTML = "<html><head><title>Email List</title></head>"
strHTML = strHTML & "Remove Me From Mail List <BR>"
strHTML = strHTML & "<a href=""http://www.test.co.uk/customerinfo/leave.asp?Email="""
strHTML = strHTML & ">Click Here</A>"
strHTML = strHTML & "</body></html>"

10:34 pm on June 30, 2005 (gmt 0)

New User

10+ Year Member

joined:May 21, 2005
posts:21
votes: 0


Hi stevelibby,

I'm not exactly sure what you're trying to do, but if you're trying to pass the email address as part of the querystring, you're missing one part... (see bolded text)

strHTML = "<html><head><title>Email List</title></head>"
strHTML = strHTML & "Remove Me From Mail List <BR>"
strHTML = strHTML & "<a href=""http://www.test.co.uk/customerinfo/leave.asp?Email=" & strEMAIL & """>Click Here</A>"
strHTML = strHTML & "</body></html>"

11:42 pm on June 30, 2005 (gmt 0)

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
posts:636
votes: 0


do i need to declare stremail?
1:50 pm on July 1, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 24, 2005
posts:965
votes: 0


<form method="get" action ="http://www.test.co.uk/customerinfo/leave.asp">
Email address:<input type="text" name="email"><br><input type="submit" value="Remove Me From Mail List"></form>