Getting User Email Settings
Dan Shafer
revdan at danshafer.com
Thu Jan 27 19:43:38 EST 2005
Ouch.
I was afraid of that.
Oh, well, back to the drawing board.
Yeah, revMail won't do the job here because we need to be able to send
HTML mail and attachments. Shao Sean's libEmail/libSmtp combo works
great and does exactly what I need but requires the user's SMTP info to
send the email.
So for now at least it appears I can't automate this. That's after
spending about six hours getting all the libSmtp stuff working.
Oh, well, I'm sure the learning will come in handy someday!
dan
On Jan 27, 2005, at 2:05 PM, Mark Wieder wrote:
> Dan-
>
> Wednesday, January 26, 2005, 10:59:40 PM, you wrote:
>
> DS> Is there a way in Rev to retrieve from the user's settings files
> DS> somewhere the name or IP address of the user's default SMTP
> server? I
> DS> need a solution for both Windows and Mac (OS9 and OS X).
>
> DS> On OS X, I am looking further to see if perhaps this information is
> DS> always in the same place in Preferences but on Windows I suspect
> I'm
> DS> going to have to dig into the Registry (shudder), for which I don't
> DS> seem to find any Rev code.
>
> There's *nothing* in the Windows registry that would give you this.
> It's application dependent - you'd have to figure out the default mail
> app and then get the app-specific info from that. You *can* do that
> through the registry if you need it, but it's less than generic. I
> take it you need something that the standard revMail commands or a
> mailto: url won't do for you?
>
> FWIW, my smtp server can be extracted from the default user stored in
> HKEY_CURRENT_USER\Software\RIT\The Bat!\Default mailto User
>
> The default application ("M:\thebat.exe" %1) is in
> HKEY_CLASSES_ROOT\mailto\shell\open\command
>
> but getting from here to there absent any other information is
> anything but a slam dunk. Note that my mail app is stored on a network
> drive rather than locally, just to throw another monkey wrench into
> the works.
>
> --
> -Mark Wieder
> mwieder at ahsoftware.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list