Skip to content

ProSocks v0.6

Latest
Compare
Choose a tag to compare
@Brandon-T Brandon-T released this 18 Aug 23:33

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@gmail.com', 'password', 'SenderName', 'recipient@gmail.com', '', '', '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@gmail.com", "password", "SenderName", "recipient@gmail.com", NULL, NULL, "Subject", "Message", NULL, NULL, NULL);
    SSLSocket_Free(&sock);
}