NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: DonRidley on January 05, 2012, 11:03:08 AM
-
I'm pretty sure this can be done. In fact, I think I did it a few years ago with a NetTalk web application but I cannot remember how I did it?
I want to have a button on a form
Clicking the button will call the default email client - Outlook, Outlook Express, whatever.
When the email client opens I want to automatically attach a file of my choice.
I can call the default mail client now but I have not figured out the attachment part of it.
Thanks,
Don
-
If you google
HTML mail to attachment
You'll get some good info.
The short answer is that you can pass parameters with the mailto URL, but ultimately it is he mail client program that interprets those parameters and operates on them. So mileage may vary from one email client to the next.
Attachments (if they do work) are going to be limited to what the mail program can see - ie files on the LAN, not the wan.
Cheers
Bruce
-
Yeah, I Google'd the heck out of it. I guess I should have asked, is, how to add the "attachment" parameter within the context of a NetTalk button?
Thanks,
Don
-
just add the parameters to the URL for the button. I haven't tried this myself, but it seems fairly straight-forward.
Let me know if you don't come right.
cheers
Bruce
-
I have tried that but I think I'm getting the syntax wrong. However, I got to thinking about what you said:
"Attachments (if they do work) are going to be limited to what the mail program can see - ie files on the LAN, not the wan."
That is an important point. It may be more trouble than it's worth to provide this functionality.
I liked the idea of the user using his/her own email program with their own contact list to send emails.
Thanks,
Don
-
How do you get the email address into the default email client?
I am NOT doing this froma button but on the On Click properties of a field on a browse. Calls the email client up but does not put the address in.
Also on the same vein, tried same with URLbut this does nothing. Is this broken?
IOW call the field a type email or URL but URL does nothing.
Thanks
John
-
It doesn't look broken as far as I can tell.
Try the Hyperlinks example, email column. that's set to "field contains an email address".
If you want more control over the URL (or, for example, you want to show the name, and link to the email address) then tick the option off, and insert the URL directly; for example
'mailto: someone@nowhere.com?subject=hello'
Cheers
Bruce