Problem with sending mail
Good evening All,
I tried to use the TfrxMailExport component but it seems it doesn't work and I am not the first who has this problem.
Anyway, as i built my own client mail with Indy before using FR I 'd like to use it within FR instead of using TfrxMailExport component. Instead of loading the FR mail form in the preview when I click on the mail button I'd like to load my own client mail which is located in a .DLL file.
In my application I load the client mail as this :
For the declaration :
For the call :
Can I write that code where FR mail form is called ?
Thanks.
I tried to use the TfrxMailExport component but it seems it doesn't work and I am not the first who has this problem.
Anyway, as i built my own client mail with Indy before using FR I 'd like to use it within FR instead of using TfrxMailExport component. Instead of loading the FR mail form in the preview when I click on the mail button I'd like to load my own client mail which is located in a .DLL file.
In my application I load the client mail as this :
For the declaration :
Procedure fmMail(HandleApp :Integer;);StdCall;External MyDll.dll';
For the call :
var
Handle : THandle;
Ptr : TFarProc;
Begin
HandleApp:=Application.Handle;
Handle := LoadLibrary ('MyDll.dll');
Ptr := GetProcAddress (Handle,  'fmMail');
If Ptr <> NIL Then
  Begin  fmMail(HandleAppl);
  Ptr := Nil;
  End;
End;
Can I write that code where FR mail form is called ?
Thanks.
Comments
It works fine !!!
Thank you very much gpi [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />) Best Regards[/img]