Fun With [TCP Connect]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 22115
interpreted = N
texte = Hello,I got this little bit of code from Grant that would open a connection with my eamil server and write all the mail out to a form field. This is cool, but not what I want to do in the end. Take a look:[text]host=ipaddress[/text] [text]user=username[/text] [text]pass=password[/text]
[tcpconnect host=[host]&port=110] [text show=t]response=<[middle startafter=<&endbefore=>][tcpsend end=%0D%0A][/tcpsend][/middle]>[/text][tcpsend end=%0D%0A]APOP [user] [encrypt method=APOP][response][pass][/encrypt][UnURL]%0D%0A[/UnURL][/tcpsend] [text show=t]stats=[tcpsend end=%0D%0A]STAT[UnURL]%0D%0A[/UnURL][/tcpsend][/text][listwords words=[stats]&delimiters= ][showif [index]=2][text show=t]numEmails=[word][/text][/showif][/listwords] messages[tcpsend end=%0D%0A.%0D%0A]LIST[UnURL]%0D%0A[/UnURL][/tcpsend] [tcpsend end=%0D%0A.%0D%0A]UIDL[UnURL]%0D%0A[/UnURL][/tcpsend] [ShowIf [numEmails]>0] [loop start=1&end=[numEmails]][/loop] [/ShowIf] [tcpsend end=%0D%0A]QUIT[UnURL]%0D%0A[/UnURL][/tcpsend] [/tcpconnect]
I made some changes and am writing it out to a database so I can use the mail. I am trying to create a hotmail kind of experience. So this is what I did. Notice that I am now writing this out to a database using the append tag instead of the to show the output and I am also using [interpret]. So here is what I am getting in the database from this. This #011# is showing up here, but it looks like an upside down ? in bbedit. I can't figure out what it is and the other thing is how do I break this mail up? Does anyone know how to grab the senders email address and the subject as well as the return address?So here is the Email.db contents: Name ttttestttinnnngggg#011##011#_______________________________________________________ ________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 2#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 3#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 4#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 5#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# dfdf#011# Any help would be appreciated.Thanks,Charles -- _______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 Associated Messages, from the most recent to the oldest:

    
  1. Fun With [TCP Connect] (charles kline 1998)
Hello,I got this little bit of code from Grant that would open a connection with my eamil server and write all the mail out to a form field. This is cool, but not what I want to do in the end. Take a look:[text]host=ipaddress[/text] [text]user=username[/text] [text]pass=password[/text]
[tcpconnect host=[host]&port=110] [text show=t]response=<[middle startafter=<&endbefore=>][tcpsend end=%0D%0A][/tcpsend][/middle]>[/text][tcpsend end=%0D%0A]APOP [user] [encrypt method=APOP][response][pass][/encrypt][unurl]%0D%0A[/UnURL][/tcpsend] [text show=t]stats=[tcpsend end=%0D%0A]STAT[unurl]%0D%0A[/UnURL][/tcpsend][/text][listwords words=[stats]&delimiters= ][showif [index]=2][text show=t]numEmails=[word][/text][/showif][/listwords] messages[tcpsend end=%0D%0A.%0D%0A]LIST[unurl]%0D%0A[/UnURL][/tcpsend] [tcpsend end=%0D%0A.%0D%0A]UIDL[unurl]%0D%0A[/UnURL][/tcpsend] [ShowIf [numEmails]>0] [loop start=1&end=[numEmails]][/loop] [/ShowIf] [tcpsend end=%0D%0A]QUIT[unurl]%0D%0A[/UnURL][/tcpsend] [/tcpconnect]
I made some changes and am writing it out to a database so I can use the mail. I am trying to create a hotmail kind of experience. So this is what I did. Notice that I am now writing this out to a database using the append tag instead of the to show the output and I am also using [interpret]. So here is what I am getting in the database from this. This #011# is showing up here, but it looks like an upside down ? in bbedit. I can't figure out what it is and the other thing is how do I break this mail up? Does anyone know how to grab the senders email address and the subject as well as the return address?So here is the Email.db contents: Name ttttestttinnnngggg#011##011#_______________________________________________________ ________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 2#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 3#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 4#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# test 5#011##011#_______________________________________________________________#011#Charles Kline ckline@macsultants.com #011# #011##011#MacSultants#011#Professional Solutions for Computer Systems#011##011#Phone# 609-273-3255#011#Fax# 609-273-3721#011##011# dfdf#011# Any help would be appreciated.Thanks,Charles -- _______________________________________________________________ Charles Kline ckline@macsultants.com MacSultants Professional Solutions for Computer SystemsPhone# 609-273-3255 Fax# 609-273-3721 charles kline

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebMerchant Question (1998) forming a SKU (1999) WebMerchant and PCAuthorize (1998) Further tests with the infamous shipCost (1997) TCP Connect over SSL? (2000) random images (1997) using showpage and showcart commands (1996) Mac WebCat 4.0 Day Planner Hang (2000) Associative lookup style? (1997) Training Tapes Improved (1998) I give up!! (1997) [WebDNA] Crashing Database (2011) Wanted: More Math Functions (or, Can You Solve This?) (1997) [OT] Robust order processing (2003) [date] problem with %d%m%Y (1998) carriage returns in data (1997) RE: Languages (1997) WC Database Format (1997) OT: Typhoon (1998) [lineitems] and [writefile] (1998)