I'm wondering if it's possible to put a foreach loop inside a href?
The reason is because I want a link to be able to link to multiple emails and I don't know how to do it otherwise.
I'm using HTML, Razor
I tried doing like this:
@foreach (var syv in syvs)
{
<a href="mailto:@syv.ePost" target="_top">@syv.ePost</a>
}
But now it displays all the mails. What I want is one link that mails to all.
I need something that only loops the mails inside the link, but I can't figure out how. I want to send email to multiple people when clicked.