Resolver qué? Ejemplo de hacer qué? En cualquier caso te dejo un código para ENVIAR correos desde este servidor (gmail, claro), dime si esto es lo que querías. Nos vemos
Código:
String Servidor = "smtp.gmail.com";
int Puerto = 465;
TIdSMTP* smtp = new TIdSMTP( NULL );
TIdSSLIOHandlerSocketOpenSSL* ssl = new TIdSSLIOHandlerSocketOpenSSL( NULL );
TIdMessage* men = new TIdMessage( NULL );
try {
//Configuracion de componentes
ssl->DefaultPort = 0;
ssl->Destination = Servidor + ":" + String( Puerto );
ssl->Host = Servidor;
ssl->MaxLineAction = maException;
ssl->Port = Puerto;
smtp->IOHandler = ssl;
smtp->Host = Servidor;
smtp->Port = Puerto;
smtp->UseTLS = utUseImplicitTLS;
smtp->ConnectTimeout = 15000;
men->AttachmentEncoding = "UUE";
men->ConvertPreamble = true;
men->Encoding = meDefault;
men->Clear();
men->FromList->EMailAddresses = "MiCorreo@gmail.com";
men->Recipients->EMailAddresses = "CorreoAEnviar@gmail.com";
men->Subject = "Asunto";
men->Body->Text = "Mi mensaje, lalalala";
smtp->Username = "MiUsuario";
smtp->Password = "MiPas";
//Enviando
smtp->Connect();
smtp->Send( men );
smtp->Disconnect();
}
__finally {
delete smtp;
delete ssl;
delete men;
}
Pd. Hay que ser más claros en las preguntas.