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:

Variable Sizes, Widths and Colors (2000) Help on how to store calculated value (2002) searching for items that begin with a number (2004) Multiple Pulldowns (1997) WebCommerce: Folder organization ? (1997) WebDNA on Red Hat Enterprise Linux 4 x64 (2006) Re:WebDNA Writer Needed (1997) Trouble with formula.db (1997) Slightly OT: [sendmail] help (2003) Interesting speed comparison .. (2003) Searchable WebCat (etc.) Docs ? (1997) Shipcost lookup? (1997) Date search and sendmail (1997) CyberCash, Authorize.net, or ??? (2000) killing white space (1998) Hiding Email Addresses (2003) WebCat2 Append problem (B14Macacgi) (1997) [showif] with ! (2000) [Sum] function? (1997) [math] show=F exists? (1997)