简体   繁体   中英

How to send email notification to an email address including URL

I have an application It was developed by my colleague, but he has been overloaded and gave it to me, the requester needs a changes. there is a page including text-boxes and dropdown list fields, when user fills all fields and submits the button, while submitting an email notification must be sent to one group (there is the email address of that group) with link of this filled page with full information .

When the user receives the email and opens the link he should be able to see all fields with information which filled by the first user recently, but all fields must be invisible without one ddl, and this second user (which received the email notification) be able to change the ddl data and submit the button. then same procedure should be repeated for the third user like a workflow How to send the URL which has ID (modifySite.aspx?id=453) via link as email notification and how this process continues?

I need you to help me how to do this

Ok, so what I understood is you need to send unique URLs to each group so that they can see only data relevant to them, and by clicking on that URL they can see your form with all the data but some controls should be disabled for them, if I have understood correctly then,

You can do something like this

Every time you want to send email with the link,

  1. You can create encryption key for each and append that in your url, so you url becomes something like domain.aspx?something=sadsad34sa1 (remember to log it in your DB with Id)
  2. On you page load event, get the query string, decrypt it, match it in your DB, now you will get the appropriate Id, based on that you can do your binding stuff in your page.
  3. If you dont find that decrypted key (which your got by query string in #2), then link is invalid.

You can also keep link Expiry Date in your same table where you are keeping encrypted/decrypted keys and just need to add one more condition in your page load.

Hope it helps.

For some related code refer this: Trying to encrypt a random key for password reset functionality

http://www.aspsnippets.com/Articles/Encrypt-and-Decrypt-QueryString-Parameter-Values-in-ASPNet-using-C-and-VBNet.aspx

http://www.c-sharpcorner.com/forums/how-to-encrypt-and-decrypt-the-url-in-asp-net-with-c-sharp-or-vb-net

http://www.dotnetfunda.com/articles/show/748/url-encryption-in-aspnet

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM