Mozilla Thunderbird

Post Reply
ltorres
Posts: 42
Joined: Mon Jan 17, 2011 3:44 pm
Location: Lima - Peru

Mozilla Thunderbird

Post 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
 
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Mozilla Thunderbird

Post 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
 
kind regards
Stefan
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Mozilla Thunderbird

Post by Antonio Linares »

Stefan,

Very good, thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
ltorres
Posts: 42
Joined: Mon Jan 17, 2011 3:44 pm
Location: Lima - Peru

Re: Mozilla Thunderbird

Post by ltorres »

Revisando,

Gracias
Post Reply