Send Mail error


i use D11 (in designtime, components):

frMail: TfrxMailExport

frTonerAnnuale: TfrxReport

frPDF: TfrxPDFExport

the code:

     frEmail.UseMAPI := MAPI;

    frEmail.Address:='Recepient Name <' + Trim(uContatti.FieldByName('EMAIL').AsString) + '>';

     frEmail.ExportFilter:=frPDF;

     frEmail.FilterDesc:='PDF per E-Mail';

     frEmail.FromMail:='Sender Name <m.......gmail.com>';

     frEmail.Login := '';

    frEmail.Password := '';

     frEmail.Subject:='SERN: Bozza di contratto di servizio';

     frEmail.Lines.Add('Buongiorno, ' + #13#10#13#10 + 'in allegato quanto in oggetto.');

     frTonerAnnuale.Export(frEmail);

Error: MAPI access denied

I ask, kindly, if you can help me find a solution. Thank you

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.