I am sending notification mails to all the registered users in the site with an Unsubscribe link. Currently I am lopping through all users in the db and sending mail to each user. For the Unsubscribe link i am adding the user email to differentiate between each users when they click the link. Everything except the Unsubscribe link is same in the email.
Is there any way to send mail to all users at once without looping and get the Unsubscribe link for each user different, so that i can differentiate between each user when they click the link
Simply said: No
Two emails can either be identical or not - if they have different links in them, they are not. There is no mechanism to send different emails to different users in one go.