Page 1 of 1

Mozilla Thunderbird

Posted: Fri May 24, 2013 2:17 pm
by ltorres
Señores

Estoy usando el Rpreview, el cual tiene un botón que permite enviar la impresión por correo, pero solo lo envía a través de Microsoft Outlook, yo uso Mozilla Thunderbird, quisiera me ayuden con el código si es que ya hicieron este cambio.
Gracias de antemano.

Luis

Code: Select all

      #ifdef __WMPDF__
         DEFINE TBBUTTON OF oBar ;
         ACTION  MSGRUN( "Exportando...",, {|| SaveAsPdf(MEMVar->DirTem+MEMVAR->cNomReport+".PDF",::oDevice:aMeta, ::oWnd )} )  ;
         TOOLTIP Strtran( TXT_SEND_PDF, "&", "" ) ;
         MESSAGE TXT_SEND_PDF
*        ACTION  MSGRUN( "Exportando...",, {|| pdf2mail( ::oDevice:aMeta, ::oWnd )} )  ;
         DEFINE TBBUTTON OF oBar ;
         ACTION  MSGRUN( "Exportando...",, {|| SaveAsPdf(MEMVar->DirTem+MEMVAR->cNomReport+".PDF",::oDevice:aMeta,,.F.),shellexecute(,"Open","outlook.exe","/c ipm.note /a "+MEMVar->DirTem+MEMVAR->cNomReport+".PDF",,1)}) ;
         TOOLTIP Strtran( TXT_SEND_MAIL, "&", "" ) ;
         MESSAGE TXT_SEND_MAIL

      #endif
 

Re: Mozilla Thunderbird

Posted: Sat May 25, 2013 10:27 am
by Antonio Linares

Re: Mozilla Thunderbird

Posted: Mon May 27, 2013 1:27 pm
by StefanHaupt
If Thunderbird is your default email client, you can use TMapi to send mails with Thunderbird.

Code: Select all

 DEFINE MAIL oMail ;
      SUBJECT ::cInfoHead ;
      TEXT ::cMailText;
      FILES cFile, ::cMailDescription  ;
      TO ::cMailAdr ;
      FROM USER ;
      RECEIPT

  ACTIVATE MAIL oMail

  nError := oMail:nRetCode
 

Re: Mozilla Thunderbird

Posted: Mon May 27, 2013 2:50 pm
by Antonio Linares
Stefan,

Very good, thanks! :-)

Re: Mozilla Thunderbird

Posted: Mon May 27, 2013 4:04 pm
by ltorres
Revisando,

Gracias