| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Mon Oct 21, 2002 8:48 pm Post subject: open email client...populate all fields...end-user sends |
|
|
Within VDS...need start up code for:
1. Opening End-user Email Client
2. Send text to body of message
3. send text to subject
The end-user fills in recipients email address and sends it.
Is it possible to do this within VDS?
All feedback welcomed, and thank you in advance. |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Oct 21, 2002 9:22 pm Post subject: |
|
|
You could try something like this:
| Code: | | shell open,"mailto:receiver@foo.com?subject=New Mail&body=This is body text!" |
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Mon Oct 21, 2002 11:26 pm Post subject: Thanks Dr Dread |
|
|
Thanks Dr Dread for the kick start!
The snippet works great great!
Is there a way to use word wrap within the Prog
with long email body messages?
As in...not having a large BODY message run
for 36 inches to the right of vds margin?
Thanks again, nt |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Tue Oct 22, 2002 12:48 am Post subject: Another Question! |
|
|
I have looked all thru the index and the search
options for code provided by Dr Dread:
| Code: |
shell open,"mailto:receiver@foo.com?subject=New Mail&body=This is body text!"
|
and can find ref to Shell open...but can find no info on Email specifics.
Is there another source of reading somewhere? or am I overlooking
it in the VDS Help Files?
Thanks again. nt |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue Oct 22, 2002 5:42 am Post subject: |
|
|
Hi, noveltech
Actually this code snippet has very little to do with VDS... 'shell open' sure enough, but mailto is a system command
to call the user's default mail program. You can use mailto in a DOS prompt in exactly the same way.
There is no direct way of having word wrap here - everything must be in the same line. But you may build the
various parts in variables, like this:
| Code: | %b = "This is the body text"
%b = %b", and here is some more."
%b = %b" Just so that the VDS line does not goes 36 inches off the screen!"
%r = "receiver@foo.com"
%s = "New mail"
shell open,mailto:%r?subject=%s&body=%b |
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|