sending mail works on my pc to my gmail, but not from my friends pc
i have a program that sends a string to my gmail, so far it works without issue on my pc, however when i had my friend run it on his pc it showed this error.
heres the code thats used to send

heres the code thats used to send

Code:
String^ regkey = gcnew String(readme.c_str()); // convert readme to system::string named regkey
MailMessage^ mail = gcnew MailMessage("*****@gmail.com", "*****@gmail.com", "MXS from: " + username, "key: " + *****);
SmtpClient^ client = gcnew SmtpClient("smtp.gmail.com");
client->Port = 587;
client->Credentials = gcnew System::Net::NetworkCredential("*****188", "*****");
client->EnableSsl = true;
client->Send(mail);
Console::WriteLine("Mail sent");

