You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SmtpClient::sendMessage() closes the message body stream and deallocates its data structure but the pointer to it still persists in the stream property of the object. If the method is called twice, it will use a dangling pointer the second time.