Public Sub sendmailto(ByVal toemail As MailAddress) Dim reMail As New MailMessage reMail = Me.email reMail.To.Add(toemail) ***then a load of other stuff*** End Sub
Private_mail As New MailMessage Public Property email() As MailMessage Get Return _mail End Get Set(ByVal value As MailMessage) _mail = value End Set End Property
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.