Originally Posted by
Brandon
P.S. Prosocks can also send emails.
Ok I understand how plugins work with Simba now. I tried to use your function in Prosocks v0.5 but I can't get it to work.
Simba Code:
{$loadlib prosocks}
var
S: SSLSocket;
url, user, pwd, name, recipient, cc, bcc, subject, body, bodymime, filename, filemime: string;
begin
S.Init();
S.SetVerbose(true);
S.SetSecurityPolicy(false, false, true);
url := 'smtps://smtp.gmail.com'#0;
user := ''#0;
pwd := ''#0;
name := 'TestName'#0;
recipient := ''#0;
cc := ''#0;
bcc := ''#0;
subject := 'TestSubject'#0;
body := 'This is just a test'#0;
bodymime := 'text/plain; charset=UTF-8'#0;
filename := ''#0;
filemime := 'application/x-msdownload; charset=UTF-8'#0;
writeln(S.SMTP(@url, @user, @pwd, @name, @recipient, @cc, @bcc, @subject, @body, @bodymime, @filename, @filemime));
S.Free();
end.