And I can not put the first method from within the second one, because of some problems.
Please help me.
I am writting the following code to send email:
Dim smtpC As New System.Net.Mail.SmtpClient("smtp.gmail.com", 587)
Dim message As New System.Net.Mail.MailMessage("email@example.com", "firstname.lastname@example.org", "gopunjabi.com", "hi")
smtpC.Credentials = New System.Net.NetworkCredential("email@example.com", "mypassword")
You should look into the help provided in Google to setup Gmail Account with an Email Client. I believe the SMTP port number for SSL is different than the default (25). Check it and try to use that port number while sending email through gmail. But I am not sure where you could send emails through Google's SMTP server.
Castle Rider What if I freeze??? Don't forget to breath...
GMAIL SMTP Server requires an authentication in the form of username and password.
The reason, it is giving you this error message is because you have set UseDefaultCredentials to false.
Just set this to true, and it should work like a charm.
Conceptually, should not be a whole lot different. If I recall, ODP.NET is just about as straightforward as ADO.NET. Been a while since I've done anything Oracle-wise. You may be better off telling the interviewer that you come from the SQL Server side, and are researching (expanding your knowledge) other databases such as Oracle, and other databases. If the gig is meant to be for you, they will appreciate your honesty and hopefully see that you are someone who is willing to learn new things on the job.
Good luck with your interview
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon