Hi,
this is the only code you use?
The SMTP client objects uses the server settings by default.
I think there is the Gmail-Account set in the server or application settings.
Try the following code:
Dim SmtpObj As New System.Net.Mail.SmtpClien
SmtpObj.Host = "smtp.mailserver.com"
SmtpObj.Credentials = New System.Net.NetworkCredential("user", "password")
SmtpObj.EnableSsl = True
SmtpObj.Port = 587
SmtpObj.Send(mail)
Regards,
Andi