Updated SMTP call to work with PascalScript Strings.
Pascal:
var
S: SSLSocket;
begin
S.Init();
S.SetVerbose(True);
S.SetSecurityPolicy(false, false, true);
S.SMTP('smtps://smtp.gmail.com', '[email protected]', 'password', 'SenderName', '[email protected]', '', '', 'Subject', 'Message', '', '', '');
S.Free();
end.
C:
#include <SSLSocket.h>
int main(int argc, const char * argv[])
{
SSLSocket sock = {0};
SSLSocket_Init(&sock);
SSLSock_SetVerbose(&sock, true);
SSLSocket_SetSecurityPolicy(&sock, false, false, true);
SSLSocket_SMTP(&sock, "smtps://smtp.gmail.com", "[email protected]", "password", "SenderName", "[email protected]", NULL, NULL, "Subject", "Message", NULL, NULL, NULL);
SSLSocket_Free(&sock);
}