Re: Solution help needed

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21771
interpreted = N
texte = >As part of a project I am developing, my client wants to be able to >provide email services for the registered users of the system, somewhat >like hotmail does (i think). I want to build the interface with WebCat >giving them the ability to check mail, send mail, etc. from the browser. >Each user will have their own email account. Has anyone tried this? Any >suggestions?You can play with the following template. Not guaranteed to work, but it's a start. It even does APOP encrypted passwords to your mail server. Make sure you use it on an email account that is for testing, not your real account! [text]host=your.mail.server[/text] [text]user=yourusername[/text] [text]pass=yourpassword[/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]
Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Solution help needed (charles kline 1998)
  2. Re: Solution help needed (charles kline 1998)
  3. Re: Solution help needed (charles kline 1998)
  4. Re: Solution help needed (PCS Technical Support 1998)
  5. Re: Solution help needed (Rob Marquardt 1998)
  6. Re: Solution help needed (PCS Technical Support 1998)
  7. Re: Solution help needed (Dave MacLeay 1998)
  8. Re: Solution help needed (Mark Anderson 1998)
  9. Solution help needed (charles kline 1998)
>As part of a project I am developing, my client wants to be able to >provide email services for the registered users of the system, somewhat >like hotmail does (i think). I want to build the interface with WebCat >giving them the ability to check mail, send mail, etc. from the browser. >Each user will have their own email account. Has anyone tried this? Any >suggestions?You can play with the following template. Not guaranteed to work, but it's a start. It even does APOP encrypted passwords to your mail server. Make sure you use it on an email account that is for testing, not your real account! [text]host=your.mail.server[/text] [text]user=yourusername[/text] [text]pass=yourpassword[/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]
Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Not really WebCat- (1997) I give up!! (1997) Help! WebCat2 bug (1997) [WebDNA] HTTP Streaming - POSSIBLE! (2010) Plugin or CGI or both (1997) [tcpsend] (2001) ReturnRaw context (1997) Generating unique SKU from [cart] (1997) Searching - FIELDNAMEtype=date FIELDNAMEtype=time (2004) Running _every_ page through WebCat ? (1997) Close-to Comparison Code (1998) WebCat2b12 CGI Mac - [shownext] problem (1997) Squares instead of spaces (2001) Protect (1997) Incompatibility with WebCat 3 templates ... (2000) snicker, snicker (1997) Solution help needed (1998) Problems with SELECT MULTIPLE (1999) Error 551 (2000) Multiple fields on 1 input (1997)