Re: revMail fails on some Macs
Thanks to everyone for pointing out the not-so-obvious -- I would never have thought to look in mail.apps prefs. But, I decided to "transcend the local configuration" as the prospect of mentoring 20-30 team players through getting their system set up correctly was way too scary. Many still don't know Mac: "Finder? What do you mean by "Finder?" Windows: " I see three different "My Documents" folders. Which should I use? How will I know if I am in the same one later?" (and a lot more our windows users require 85% more support than our mac users) So, created a very simple xTalk CGI on our web server and will have my app do an HTTP Post to this cgi. This should be rock solid. If their browser works, this works... simple. #!/usr/local/bin/revolution # Send email to admin ## ## this CGI reads form input from a form web page or any ## correctly urlEncoded name=value pairs posted from ## a rev app ## and then sends the email out on startup if $REQUEST_METHOD is "POST" then repeat until length(tDataIn) >= $CONTENT_LENGTH read from stdin until empty put it after tDataIn end repeat split tDataIn by "&" and "=" put "/usr/sbin/sendmail -t" into mprocess open process mprocess for write write "From:" && (urlDecode (tDataIn["from"]))& cr to process mprocess write "To:" && "[EMAIL PROTECTED]" & cr to process mprocess write "Subject:" && (urlDecode (tDataIn["subject"])) & cr & cr to process mprocess write(urlDecode (tDataIn["body"])) & cr to process mprocess close process mprocess Put "Email was sent successfully." into tResponse put "Content-Type: text/html" & cr put "Content-Length:" && the length of tResponse & cr & cr put tResponse end if end startup Sannyasin Sivakatirswami Himalayan Academy Publications at Kauai's Hindu Monastery [EMAIL PROTECTED] www.HimalayanAcademy.com, www.HinduismToday.com www.Gurudeva.org www.Hindu.org On Jan 19, 2005, at 8:55 AM, Ken Norris wrote: OOPS! Sorry, forgot to change-out the RE header, Hi David, Sivakatirswami, et al. Sivakatirswami wrote: What exactly does the Mac need to ensure that there is an email client automatically will be invoked by revMail? I can't find any preference in OS X for "default mail app" that requires setting. ?? Very simple. Panther: 1) Open Mail and select Preferences from the menu. 2) From the Prefs window, select the "General" icon at top left. 3) Click the Default Email Reader popup and choose select. 4) You should get a list of applications. Choose the email reader you want (assuming it is installed). HTH, Ken N. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revMail fails on some Macs
OOPS! Sorry, forgot to change-out the RE header, Hi David, Sivakatirswami, et al. Date: Tue, 18 Jan 2005 21:56:02 -0700 From: David Squance <[EMAIL PROTECTED]> Subject: Re: revMail fails on some Macs On Jan 18, 2005, at 9:38 PM, Sivakatirswami wrote: What exactly does the Mac need to ensure that there is an email client automatically will be invoked by revMail? I can't find any preference in OS X for "default mail app" that requires setting. ?? Very simple. Panther: 1) Open Mail and select Preferences from the menu. 2) From the Prefs window, select the "General" icon at top left. 3) Click the Default Email Reader popup and choose select. 4) You should get a list of applications. Choose the email reader you want (assuming it is installed). HTH, Ken N. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revMail fails on some Macs
On 1/19/05 11:28 AM, "J. Landman Gay" <[EMAIL PROTECTED]> wrote: > On 1/18/05 10:38 PM, Sivakatirswami wrote: > >> What exactly does the Mac need to ensure that there is an email client >> automatically will be invoked by revMail? I can't find any preference in >> OS X for "default mail app" that requires setting. No more internet >> config and apple has this bizarre requirment to set the default browser >> from within Safari, > > In Panther, they've done the same idiotic thing for email -- you have to > set the default email reader from within Apple's Mail app. > > Jaguar was better, these settings were in the System prefs. That information is in the LaunchServices.plist file... the problem is that you can only get the company identifier (ilike "com.apple.mail" and not the *true* app name easily - I think the rest is obfuscated. Here's what I've used in the past, but it only supports Apple Mail, Entourage, and QuickMail, otherwise it returns "Other": function stsDefaultMailClient -- Mac OS X only local tIdentifier,tPrefData put url("file:~/Library/Preferences/com.apple.LaunchServices.pList") into tData put lineOffset("U:mailto",tData) into tLine if tLine <> 0 then put lineOffset("",tData,tLine) into tEndLine if tEndLine <> 0 then put line (tLine+1) to (tLine+tEndLine) of tData into tChunk get matchText(tChunk,"(.*?)",pIdentifier) get matchText(tChunk,"(?s)(.*?)",tPrefData) put base64Decode(tPrefData) into tPrefData replace null with "" in tPrefData set the itemDel to numToChar(18) put item 2 of tPrefData into tPath put charToNum(char 1 of tPath) into tLength delete char 1 of tPath put char 1 to tLength of tPath into pPath switch pIdentifier case "com.microsoft.entourage" return "Entourage" break case "com.apple.mail" return "Mail" break case "com.outspring.quickmail" return "QuickMail" break default return "Other" break end switch end if end if return "" end stsDefaultMailClient HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revMail fails on some Macs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You can also use the "More Internet" preference pane; see: http://www.monkeyfood.com/software/moreInternet/ On Jan 19, 2005, at 12:28 PM, J. Landman Gay wrote: On 1/18/05 10:38 PM, Sivakatirswami wrote: What exactly does the Mac need to ensure that there is an email client automatically will be invoked by revMail? I can't find any preference in OS X for "default mail app" that requires setting. No more internet config and apple has this bizarre requirment to set the default browser from within Safari, In Panther, they've done the same idiotic thing for email -- you have to set the default email reader from within Apple's Mail app. Jaguar was better, these settings were in the System prefs. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - --- Frank D. Engel, Jr. <[EMAIL PROTECTED]> $ ln -s /usr/share/kjvbible /usr/manual $ true | cat /usr/manual | grep "John 3:16" John 3:16 For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life. $ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFB7p5b7aqtWrR9cZoRAhduAJ9ceUlp1Mwo1ULhRCA622Tey3LeoQCfSmme bCjthy+W4hmkMiqpF4LGVnE= =X2yf -END PGP SIGNATURE- ___ $0 Web Hosting with up to 120MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revMail fails on some Macs
On 1/18/05 10:38 PM, Sivakatirswami wrote: What exactly does the Mac need to ensure that there is an email client automatically will be invoked by revMail? I can't find any preference in OS X for "default mail app" that requires setting. No more internet config and apple has this bizarre requirment to set the default browser from within Safari, In Panther, they've done the same idiotic thing for email -- you have to set the default email reader from within Apple's Mail app. Jaguar was better, these settings were in the System prefs. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revMail fails on some Macs
On Jan 18, 2005, at 9:38 PM, Sivakatirswami wrote: What exactly does the Mac need to ensure that there is an email client automatically will be invoked by revMail? I can't find any preference in OS X for "default mail app" that requires setting. No more internet config and apple has this bizarre requirment to set the default browser from within Safari, which one has to boot to say, choose Firefox... but I don't see any option to set a default email app that the scripting extensions would use. and I also don't know exactly what to test for to determine with other missing parts there may be... possible the GURL even is not handled on his machine? But I though apple script and events would be auto loaded by default for anyone using OSX. There may be a similarly bizarre connection with OS X Mail. Check the preferences for it. There's a place there to set the default email reader. I know if affects which email program Safari uses, but beyond that, I can't say if that will help. Dave ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
revMail fails on some Macs
I'm upgrading a stack used in an application by remote collaborators. When they finish work on some data, the stack uploads it to our server here and I've added an email notification feature which grabs info about the upload and then emails it to me by invoking the user's default email client, auto inserting my email address and subject and body. The user then has only to click send. A further confirmation uses revGoURL to load the data from our server into their browser (these are XML files) so they can also see immediately if the upload was complete. Now, testing here on my own mac OS X... it works fine, email is invoked and immediately revGoURL activates my browser... I sent the new stack out to test the new function to another Mac user with OSX also installed, but on his machine the script uploads the data, then skips through the revMail as if it was not even in the script and boots his browser and shows the file. i.e. the line "revMail tRecipient,,tSubject,tBody" fails and there is no error message and it does not cause any problem... it jus doesn't happen. What exactly does the Mac need to ensure that there is an email client automatically will be invoked by revMail? I can't find any preference in OS X for "default mail app" that requires setting. No more internet config and apple has this bizarre requirment to set the default browser from within Safari, which one has to boot to say, choose Firefox... but I don't see any option to set a default email app that the scripting extensions would use. and I also don't know exactly what to test for to determine with other missing parts there may be... possible the GURL even is not handled on his machine? But I though apple script and events would be auto loaded by default for anyone using OSX. I have yet to get a report from Windows users if this will work... Note, this stack is being driven by a splash screen standalone "player" and I did include the "common library" which would be required... and if revGoURL works, one assumes this is proof the common library is present. So, it must be something else. TIA Sannyasin Sivakatirswami Himalayan Academy Publications at Kauai's Hindu Monastery [EMAIL PROTECTED] www.HimalayanAcademy.com, www.HinduismToday.com www.Gurudeva.org www.Hindu.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution