Jump to content
Fivewin Brasil

Programa que recebe Email.


kapiaba

Recommended Posts

http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22543&p=120700#p120215


// Testing FiveWin new Internet incoming mail (POP3 protocol) Class

#include "FiveWin.ch"

static oWnd

//----------------------------------------------------------------------------//

function Main()

local oBar

DEFINE WINDOW oWnd TITLE "Receiving Internet Mail from FiveWin"

DEFINE BUTTONBAR oBar _3D OF oWnd

DEFINE BUTTON OF oBar ACTION GetMail() TOOLTIP "Get Mail"

SET MESSAGE OF oWnd TO "Ready" NOINSET DATE TIME KEYBOARD

ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//

function GetMail()

local oInMail

local cIp

if WsaStartup() == 0

cIp := gethostbyname( "pop.gmail.com" )

WsaCleanUp()

endif

oWnd:SetMsg( "Geting Internet email..." )

oInMail = TPop4():New( cIp,, "miusuario", "miclave" )

oInMail:bConnecting = { || oWnd:SetMsg( "Connecting to " + cIp ) }

oInMail:bConnected = { || oWnd:SetMsg( "Connected" ) }

oInMail:bDone = { || ReadEmails( oInMail ) }

oInMail:GetMail()

return nil

//----------------------------------------------------------------------------//

function ReadEmails( oInMail )

local n, cTxt := ""

MsgInfo( "Total emails: " + Str( Len( oInMail:aMsgs ) ) )

for n = 1 to Len( oInMail:aMsgs )

cTxt += oInMail:aMsgs[ n ] + CRLF + "--- FINAL DE ESTE MAIL ---" + CRLF

next

memowrit( "email.txt", cTxt )

return nil

//----------------------------------------------------------------------------//

id=code>id=code>

João Santos - São Paulo.

kmt_karinha@pop.com.br

joao@pleno.com.br

Fone: (11) 3106-2832 / 8243-5632 - TIM

FWH 2.7 - xHARBOUR WorkShop.Exe

dentinho.jpg?rnd=0.830315402649066

Link to comment
Share on other sites

http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22543&p=120700#p120215


// Testing FiveWin new Internet incoming mail (POP3 protocol) Class

#include "FiveWin.ch"

static oWnd

//----------------------------------------------------------------------------//

function Main()

local oBar

DEFINE WINDOW oWnd TITLE "Receiving Internet Mail from FiveWin"

DEFINE BUTTONBAR oBar _3D OF oWnd

DEFINE BUTTON OF oBar ACTION GetMail() TOOLTIP "Get Mail"

SET MESSAGE OF oWnd TO "Ready" NOINSET DATE TIME KEYBOARD

ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//

function GetMail()

local oInMail

local cIp

if WsaStartup() == 0

cIp := gethostbyname( "pop.gmail.com" )

WsaCleanUp()

endif

oWnd:SetMsg( "Geting Internet email..." )

oInMail = TPop4():New( cIp,, "miusuario", "miclave" )

oInMail:bConnecting = { || oWnd:SetMsg( "Connecting to " + cIp ) }

oInMail:bConnected = { || oWnd:SetMsg( "Connected" ) }

oInMail:bDone = { || ReadEmails( oInMail ) }

oInMail:GetMail()

return nil

//----------------------------------------------------------------------------//

function ReadEmails( oInMail )

local n, cTxt := ""

MsgInfo( "Total emails: " + Str( Len( oInMail:aMsgs ) ) )

for n = 1 to Len( oInMail:aMsgs )

cTxt += oInMail:aMsgs[ n ] + CRLF + "--- FINAL DE ESTE MAIL ---" + CRLF

next

memowrit( "email.txt", cTxt )

return nil

//----------------------------------------------------------------------------//

id=code>id=code>

João Santos - São Paulo.

kmt_karinha@pop.com.br

joao@pleno.com.br

Fone: (11) 3106-2832 / 8243-5632 - TIM

FWH 2.7 - xHARBOUR WorkShop.Exe

dentinho.jpg?rnd=0.830315402649066

Link to comment
Share on other sites

citação:

Bom dia Kapiaba!!!

Não está faltando a classe TPOP4 ?

Sds

Sds

José Carlos - ZECA

fwh612(Free)-clipper52e-blinker 7.0 - six 3.02 - Windows XP


id=quote>id=quote>

Olá, não testei ainda, mas mesmo assim, perguntei ao autor do programa, vamos esperar...

Abs,

João Santos - São Paulo.

kmt_karinha@pop.com.br

joao@pleno.com.br

Fone: (11) 3106-2832 / 8243-5632 - TIM

FWH 2.7 - xHARBOUR WorkShop.Exe

dentinho.jpg?rnd=0.830315402649066

Link to comment
Share on other sites

citação:

citação:

Bom dia Kapiaba!!!

Não está faltando a classe TPOP4 ?

Sds

Sds

José Carlos - ZECA

fwh612(Free)-clipper52e-blinker 7.0 - six 3.02 - Windows XP


id=quote>id=quote>

Olá, não testei ainda, mas mesmo assim, perguntei ao autor do programa, vamos esperar...

Abs,

João Santos - São Paulo.

kmt_karinha@pop.com.br

joao@pleno.com.br

Fone: (11) 3106-2832 / 8243-5632 - TIM

FWH 2.7 - xHARBOUR WorkShop.Exe

dentinho.jpg?rnd=0.830315402649066


id=quote>id=quote>

Blz!!!

Uma piadinha infame. Voce sabia que o STEVE JOBS é brasileiro?

Sds

José Carlos - ZECA

fwh612(Free)-clipper52e-blinker 7.0 - six 3.02 - Windows XP

Link to comment
Share on other sites

citação:

http://br.answers.yahoo.com/question/index?qid=20111006040531AAPIXE4

João Santos - São Paulo.

kmt_karinha@pop.com.br

joao@pleno.com.br

Fone: (11) 3106-2832 / 8243-5632 - TIM

FWH 2.7 - xHARBOUR WorkShop.Exe

dentinho.jpg?rnd=0.830315402649066


id=quote>id=quote>

Não Cara!!!

Steve Jobs criou Iphone,Ipad,ipod....

Estou desconfiado que foi ele quem descobriu o AIPIM.

Diante disto chego a conclusão que ele é brasileiro

Sds

José Carlos - ZECA

fwh612(Free)-clipper52e-blinker 7.0 - six 3.02 - Windows XP

Link to comment
Share on other sites

Parece ter uma arquivo TPOP4.OBJ para compilar... alguem conhece e/ou tem para compartilhar ?

citação:

http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22543&p=120700#p120215


// Testing FiveWin new Internet incoming mail (POP3 protocol) Class

#include "FiveWin.ch"

static oWnd

//----------------------------------------------------------------------------//

function Main()

local oBar

DEFINE WINDOW oWnd TITLE "Receiving Internet Mail from FiveWin"

DEFINE BUTTONBAR oBar _3D OF oWnd

DEFINE BUTTON OF oBar ACTION GetMail() TOOLTIP "Get Mail"

SET MESSAGE OF oWnd TO "Ready" NOINSET DATE TIME KEYBOARD

ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//

function GetMail()

local oInMail

local cIp

if WsaStartup() == 0

cIp := gethostbyname( "pop.gmail.com" )

WsaCleanUp()

endif

oWnd:SetMsg( "Geting Internet email..." )

oInMail = TPop4():New( cIp,, "miusuario", "miclave" )

oInMail:bConnecting = { || oWnd:SetMsg( "Connecting to " + cIp ) }

oInMail:bConnected = { || oWnd:SetMsg( "Connected" ) }

oInMail:bDone = { || ReadEmails( oInMail ) }

oInMail:GetMail()

return nil

//----------------------------------------------------------------------------//

function ReadEmails( oInMail )

local n, cTxt := ""

MsgInfo( "Total emails: " + Str( Len( oInMail:aMsgs ) ) )

for n = 1 to Len( oInMail:aMsgs )

cTxt += oInMail:aMsgs[ n ] + CRLF + "--- FINAL DE ESTE MAIL ---" + CRLF

next

memowrit( "email.txt", cTxt )

return nil

//----------------------------------------------------------------------------//

id=code>id=code>

João Santos - São Paulo.

kmt_karinha@pop.com.br

joao@pleno.com.br

Fone: (11) 3106-2832 / 8243-5632 - TIM

FWH 2.7 - xHARBOUR WorkShop.Exe

dentinho.jpg?rnd=0.830315402649066


id=quote>id=quote>

Perfil.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...