Sending Unsubscribe link through mail [Resolved]

Posted by Shoyebaziz123 under Regular Expressions on 3/31/2011 | Points: 10 | Views : 4921 | Status : [Member] | Replies : 2
Hi,

i have written a function to send mail working correctly ... but how can i send some parameter through this mail .. i have use this code to send

message.Append(" To Unsubscribe from the mailing list please click <a href=http://localhost:8943/unsubscribe-mail.aspx?docid= " + docid + "> + Unsubscribe</a> Here");

but in mail i am not getting the docid , even i have pass is there any syntax error ?

while i am clicking unsubscribe in mail

it shows correct page with the browser link

http://localhost:8943/unsubscribe-mail.aspx?docid=
but there is no docid

what is the reason ?

thanks




Responses

Posted by: SheoNarayan on: 3/31/2011 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
Have you declared the docid as variable? Is it in the scope where you have written the email body?

I would suggest to store the complete body of the email in the string and use that string as email body and send email. Your problem is at the time of sending email the docid variable value is empty thats why you are not getting anything as query string.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 3/31/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi Shoyebaziz123


ur docid are going to blank . . chek it in ur code . .what's the way u assign value for docid ... chek it

Best Regard's
Prabhakar

Shoyebaziz123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response