forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


open email client...populate all fields...end-user sends

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Mon Oct 21, 2002 8:48 pm    Post subject: open email client...populate all fields...end-user sends Reply with quote

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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Mon Oct 21, 2002 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Mon Oct 21, 2002 11:26 pm    Post subject: Thanks Dr Dread Reply with quote

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
View user's profile Send private message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Tue Oct 22, 2002 12:48 am    Post subject: Another Question! Reply with quote

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. Confused

Is there another source of reading somewhere? or am I overlooking
it in the VDS Help Files?

Thanks again. nt
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Oct 22, 2002 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group