Hi there,
This is such vague description of problem that likely nobody could help
You need to provide much more details about the error and the invoked code.
Please find the below code which I used to send email from user 2’s account:
Dim smtpClient As New System.Net.Mail.SmtpClient(in_MailServer)
Dim mailMsg As New System.Net.Mail.MailMessage
Dim sender As New System.Net.Mail.MailAddress(in_Sender)
mailMsg.To.Add(in_MailTo)
mailmsg.Body = in_MailMsgBody
mailMsg.Subject = in_Subject
mailMsg.From = sender
mailMsg.IsBodyHtml = True
smtpClient.Port = Integer.Parse(in_MailPort)
smtpClient.Send(mailMsg)
Like the above user has suggested please verify that the imports tab contains System.Net.Mail
Verify that all the arguments being passed to the invoke code are correct and not null values. Even before the invoke print the values and validate if they are right.