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:

Bug Report, maybe (1997) [WebDNA] WebDNA Roll Call (2013) Merging databases (1997) target=_blank and form variables (1997) no time stamp & different times from emailer (1998) Still More on EudoraPro Email (1998) Error:Too many nested [xxx] contexts (1997) Problems appending to database (1997) Lost and Recovered. (1998) [format] (1998) Aaron kant add (or whatever it was) (2000) Upload files (2004) [writefile] and CR's (2001) MacWEEK article help needed (1996) Leap Day Triggers? (2000) WebSTAR, OSX, WebDNA permissions problem ... (2005) Multiple fields on 1 input (1997) Add htmlarea 3 to SiteBuilder (2004) Emailer on NT not working. (1999) math on date? (1997)