I am trying to set up an emailprogram, the first code that I try to compile is this where I set an emailTo and emailFrom in the arguments of MailMessage.
When I compile this code, I have an errormessage that says.
'System::Net::Mail::MailMessage' : class does not have a copy-constructor
What does this meen, am I doing this wrong ?
using namespace System::Collections::Generic;
using namespace System::Web;
using namespace System::Net::Mail;
using namespace System::Threading;
String^ EmailRecipient = "testTo@hotmail.com";
String^ EmailFrom= "testFrom@hotmail.com";
MailMessage mm = gcnew MailMessage(EmailRecipient, EmailFrom);