Pawan Agrawal
Pawan Agrawal

Reputation: 432

Get email account id in email on clicking link in email

I have created a email template with a link on clicking the link its opens a url from which I identify which user has clicked on the link.

But when I have some other user in the cc or bcc of this mail they also get the same link and when they click on it shows as person in :to click on link.

Is their any way I can find our which exact user clicked on link.

Example:
To: [email protected]
cc: [email protected],[email protected]
Body
Link: <a href='[email protected]'>Click here</a>

All three user will receive the same link, how can I find out which user has clicked on the link. Is their any way I can find out the current mail account id in my email template.

I am using .Net SMTP class for sending the mail.

Upvotes: 1

Views: 2769

Answers (1)

Snazzy Sanoj
Snazzy Sanoj

Reputation: 802

In your case, since you're using SMTP, you can send individual emails to all of the recipients with specific links, instead of using CC or BCC.

Example:
To: [email protected]
Body Link: <a href='[email protected]'>Click here</a>
To: [email protected]
Body Link: <a href='[email protected]'>Click here</a>
To: [email protected]
Body Link: <a href='[email protected]'>Click here</a>

But, you can't detect the clicker by just using a static link.

Hope this helps. :)

Upvotes: 2

Related Questions