Newbies chloe Posted December 22, 2004 Newbies Posted December 22, 2004 Hello, I have a field (let's name it : usermail) and a button that when i click on it, i want it to open my email program, new mail, and put the field usermail in the To: i tried via open url and sendmail but it doesn't seem to work the way i want to. what kind of script could i use ? and how to use it? Thanks for all
GerryGerry Posted December 22, 2004 Posted December 22, 2004 Hi, The URL button specification should look like this: "mailto:" & table_name::email_address_field Not only can you put the usermail into the "To:" but also you could put the "Subject" and even the body of the email, like this: "mailto:" & table_name::email_address_field & "?subject=" & table_name::subject_field & "&body=" & table_name::body_field See attached file for an example. It works on my XP machine with FP7 and Outlook. Enjoy, -GerryGerry simple_email_test.zip
GerryGerry Posted December 22, 2004 Posted December 22, 2004 Hi, I just thought of three things... 1.- We are in the ScriptMaker forum, so I should have created a script with the above mentioned specification instead of making a button. Anyway, it works exactly the same way. 2.- I should have mentioned that I to checked "Perform without dialog" (Button or ScriptMaker), saves one click. 3.- I don't like "Send Mail" because (on my machine) it asks me for a profile, then opens a plain-text Outlook window. This window seems to be a child of the FMP window because I cannot access FMP unless I close the child window (which can't be minimized). This doesn't happen with "Open URL"; it opens an independent html-text Outlook window and I can access FMP without a problem. That's it for now, -GerryGerry.
Recommended Posts
This topic is 7279 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now