New topic: Sending endofline via HTTPSocket.Get
<http://forums.realsoftware.com/viewtopic.php?t=48031> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message dgdavidge Post subject: Sending endofline via HTTPSocket.GetPosted: Fri May 31, 2013 5:11 pm Joined: Fri Jun 02, 2006 1:43 pm Posts: 208 Location: Santa Ynez, CA Having experienced a lot of trouble sending emails with RS, mostly due to ISPs blocking ports 25 and 587, I wrote a PHP program that gets the email address, subject and body via HTTPSocket.Get from my RS program. It works fine except that my attempts to force a linefeed in the body have all failed. I have tried: 1. Using the RS EndOfLine in the body. Result is the PHP programs reports the message was not sent. 2. Using \n in the body. This works in PHP scripts I have written for sending emails, but in this case, it just prints the \n as part of the message rather than as a line feed/carriage return. 3. Using %0d in the body. This seems a natural since I have to use %20 in place of all the spaces between words. It works if I copy the URL string to the clipboard and paste it into my browser. However it does not work if the same URL string is sent from RS with the HTTPSocket.Get function. The result is the email address and subject are sent, but the body of the email is blank. I suspect that RS is sensing the %0d (the ASCII carriage return character) as the end of the message. I also tried %0a, the ASCII line feed character, with the same results. Does anyone have a suggestion as to how to get around this problem? Top charonn0 Post subject: Re: Sending endofline via HTTPSocket.GetPosted: Fri May 31, 2013 6:49 pm Joined: Mon Apr 02, 2007 2:08 am Posts: 1224 Location: San Francisco, CA, USA Just a guess, but try using EndOfLine.Unix in places you need the \n (0x0A) character. _________________ Boredom Software Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
