multiple recipients in email in the webMail object

2019-08-23 12:47发布

问题:

How do you add multiple receipients, meaning more than one email in the TO: field using the webMatrix WebMail object? I've messed around with creating a string that combines two emails with a comma or semicolon between them.

回答1:

you do just that, separate multiple recipients in the 'to' property with a semicolon:

http://msdn.microsoft.com/en-us/library/system.web.helpers.webmail.send(v=vs.99).aspx