Generate Basket URL

Hello Everyone,

I want to generate a basket URL with articles added to it by me, which can be accessed by any customer and redirects to cart page with all those articles in it.
How can i implement that?

Thanks

with foreach.