Belmontes
3 months agoNew Contributor
SendMail input string not in the form for an e-mail address
Hello everyone, We recently made the jump from version 7 to 9, and a rule that was previously working is now throwing an error. We are trying to use the BRApi.Utilities.SendMail functionality after ...
- 3 months ago
Dim requestor As UserInfo = BRApi.Security.Authorization.GetUser(si, userName) 'Dim userEmail As String = requestor.User.Email Dim emails As New List(Of String) ' Support mailbox emails.Add("support@company.com") emails.Add("user1@company.com") emails.Add("user2@company.com") ' Requestor email If Not String.IsNullOrWhiteSpace(userEmail) Then emails.Add(userEmail) End If ' Optional: additional fixed recipients BRApi.ErrorLog.LogMessage(si, "Email Recipients: " & String.Join(";", emails)) Dim mailThread As New Thread(Sub() Try BRApi.Utilities.SendMail( si, "OneStreamEmail", emails, emailSubject, mailBody.ToString(), True, Nothing )Try with above