I have a problem that is only happening on Delphi unicode when using JCL (I have made sure to use newest) MAPI code.
I get General MAPI failure
TmpEmail := TjclEmail.Create;
TmpResolve := False;
try
TmpResolve := TmpEmail.ResolveName(TmpStr_Name, TmpStr_Email, True);
except
// new code for Delphi unicode... Also gives mapi failure
end;
if TmpResolve then
TmpEmail.Recipients.Add(TmpStr_Email)
else
TmpEmail.Recipients.Add('smtp:' + TmpStr_Email)
;
TmpEmail.Recipients[0].Name := TmpEmail.Recipients[0].Address;
TmpEmail.Subject := 'bla bla';
TmpEmail.Send(True);
This code works Delphi 2007, same JCL, Thunderbird, but not when using e.g. Delphi 2010. I have already tried apply what I could of general JCL/MAPI workarounds. Any ideas? :)