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:

FAX orders (1996) I've got a Bad Case of the DreadedÊÊÊÊs! Hel (2002) WebCat2b13MacPlugin - nested [xxx] contexts (1997) [regexp] will be renamed to [grep] in next release (2000) RequiredFields template (1997) carriage returns in data (1997) Email notification to one of multiple vendors ? (1997) Weird Math and SV (1997) Stumpted Again (1997) Bug Report, maybe (1997) Postprocessing CCs (2000) Jimmy (1998) insecuretextvars preference doesn't work (2000) Silly problem!!! (2001) WebCat2.0 [format thousands .0f] no go (1997) Re2: Calculating multiple shipping... (1997) Re:Comments Convertion-part2 (1998) [ot] Raid Cards for RH ES (2004) emailer (1997) WebMerchant 1.6 and SHTML (1997)