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:

Round up prices (2000) Speaking of () Emailer not working (1998) Include vs. lookup-opps (1998) Counting downloads (1998) Capitalize special cases (2000) Problem with [math] (2000) Performance Issue (2000) Need relative path explanation (1997) RE: pricing continued (1998) [WebDNA] [OT] Multiple SSL certs on same server? (2014) WC Database Format (1997) [TaxableTotal] - not working with AOL and IE (1997) RE: IIS4b2 and WebCatalog b19 (1997) Format question WC Mac f3 (1997) Question re: FlushDatabases (1997) Pass a form (2003) calculating tax rates, mail order solutions and version 2 (1997) Latin Characters (1998) TCPSend GET vs POST (2007) [format 40s]text[/format] doesn't work (1997)