Why code:

client->Credentials = gcnew NetworkCredential("username", "password");

doesnt work for me?

Error	1	error C2061: syntax error : identifier 'NetworkCredential'

Recommended Answers

All 2 Replies

Do you have using namespace System::Net; at the top?

Ehh..thought that System::Net:Mail
Will be enough :) Thx once again..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.