|
Post by carlgundel on Jun 7, 2008 9:38:34 GMT -5
Scott and I have added an email sending object to Run BASIC called smtpsender. Here is a quick example of how you would use it to send an email message:
mailServer$ = "mail.myserver.com" pword$ = "donuts321" fromAddr$ = "carlg@libertybasic.com" toAddr$ = "user@gmail.com" subject$ = "Do you want some Pi?" text$ = "Yes please. With vanilla ice cream!"
smtpsender #aSender, mailServer$ #aSender password(pword$) #aSender send(fromAddr$, toAddr$, subject$, text$)
|
|
|
Post by mackrackit on Jun 7, 2008 14:33:50 GMT -5
That is great!
When is it coming out?
|
|
|
Post by StefanPendl on Jun 9, 2008 5:52:21 GMT -5
That is great! When is it coming out? That is really a great feature, which I will use in some upcoming projects. Since RB 1.01 is currently in beta, you might get lucky and it will be included in RB 1.01
|
|
|
Post by Jerry Muelver on Jun 9, 2008 7:33:08 GMT -5
That would be a nice addition to a wiki or to rbCMS, to notify the moderator/owner when files were modified. Gotta have it!
|
|
|
Post by turbov21 on Jun 9, 2008 16:41:30 GMT -5
Cool! Now, how about $httppost?
|
|
|
Post by Carl Gundel - admin on Jun 9, 2008 23:20:58 GMT -5
Cool! Now, how about $httppost? As soon as I can get a round tuit. -Carl
|
|
|
Post by turbov21 on Jun 11, 2008 16:43:42 GMT -5
As soon as I can get a round tuit. -Carl Well, I'll see if I can find you a Round Tuit on eBay if that's what it'll take.
|
|
|
Post by Carl Gundel - admin on Jun 11, 2008 21:35:57 GMT -5
As soon as I can get a round tuit. Well, I'll see if I can find you a Round Tuit on eBay if that's what it'll take. Well, your request has encouraged me to do some research on HTTP POST, so I hope to be able to deliver this functionality in the very near future. -Carl
|
|
|
Post by turbov21 on Jun 13, 2008 9:42:02 GMT -5
Well, your request has encouraged me to do some research on HTTP POST, so I hope to be able to deliver this functionality in the very near future. -Carl I appreciate it, Carl! Being able to POST to other services will fill in the last piece of the puzzle for turning RB into an even more powerful tool for plugging systems together. Thank you!
|
|
|
Post by Carl Gundel - admin on Jun 14, 2008 15:33:13 GMT -5
Well, your request has encouraged me to do some research on HTTP POST, so I hope to be able to deliver this functionality in the very near future. -Carl I appreciate it, Carl! Being able to POST to other services will fill in the last piece of the puzzle for turning RB into an even more powerful tool for plugging systems together. Thank you! Seems to me we will ultimately need to be fancier, but how does the following syntax look? url$ = "http://someplace.com" postThis$ = "first=something&second=somethingelse" response$ = httpput$(url$, postThis$) Can you think of a publicly available resource I can test against for this functionality? -Carl
|
|
|
Post by mikeukmid on Jun 14, 2008 15:54:06 GMT -5
|
|
|
Post by carlgundel on Jun 14, 2008 16:27:45 GMT -5
Hey Mike, Just tried it specifying fname=Carl&lname=Gundel and it responded with the source code for the page. No indication that it did anything interesting with the data I posted so it's hard to tell if it actually worked. I was playing with the following also, with better success except that the response then wanted me to post so some other URL to prove I am not a bot. www.house.gov/ state=MAMassachusetts&zip=01721&zip4=1238 -Carl
|
|
|
Post by mikeukmid on Jun 14, 2008 16:57:59 GMT -5
|
|
|
Post by mikeukmid on Jun 16, 2008 10:15:50 GMT -5
Carl, Back on-line after losing broadband service for many hours...
This is what is returned by the quoted posttest url from a test form. Your httpput$() function should be able to replicate this??
Mike.
|
|
|
Post by turbov21 on Jun 16, 2008 12:42:54 GMT -5
Can you think of a publicly available resource I can test against for this functionality? -Carl If you like, I can write a small PHP script that accepts POST'ed data and returns the key/value pairs as text. Would that be what you need? EDIT: At the risk of underestimating the internal complexity of RunBASIC, would httppost$() command be built on the VisualWorks Smalltalk "HttpRequest" object?
|
|