Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Send Mail From ToolBook 7 or 8

0 views
Skip to first unread message

Steinberger serge

unread,
Apr 14, 2003, 10:58:14 AM4/14/03
to
Hello,
How can i do to send mail from my application ( the openScript "mailto"
command doesn't work)

thanks for your answers


Steinberger serge

Denny Dedmore

unread,
Apr 14, 2003, 11:30:22 AM4/14/03
to
"mailto" is a web hyperlink command, so it will work if you put it in a
hyperlink.

Try configuring a URL hyperlink to:

"mailto:x...@abc.com"

When the user clicks the TB hyperlink, a browser window will open to execute
the URL hyperlink and the browser should then open your default mail program
in order to allow the user to send an email.

Thanks,

Denny Dedmore
Click2learn, Inc.

serge steinberger

unread,
Apr 15, 2003, 5:10:02 AM4/15/03
to
Thanks,

the first step of the work is done.
the entire problem is that i want to attach a file in the message and send
it each time to a different person.

i don't know any more how to change the value of the _Asym_Hyperlinks
property.


Do you know, if there is an other way witch use the MAPI system, and how
implement it in ToolBook applications.

thanks for your answers


Steinberger serge

Denny Dedmore

unread,
Apr 15, 2003, 11:46:15 AM4/15/03
to
See article Q101571415025020 of the Knowledge Base for information on MAPI.

http://home.click2learn.com/en/support/knowledgebase/kbdisplay.asp?id=Q10157
1415025020

serge steinberger

unread,
Apr 15, 2003, 12:08:19 PM4/15/03
to
Thanks,
but it don't work because it use MAPI and Not MAPI32 .... here is the
problem from the begining.

Serge Steinberger

Chris Bell

unread,
Apr 16, 2003, 11:06:30 AM4/16/03
to
Serge,

My favorite way to send email from ToolBook is via HTTP Post. I post the
applicable information to a web page which then turns it around and
emails it out. It's is clean and reliable. As long as your user has an
internet connection, it is very reliable.

You do need a script on the server to send the mail, but there are
examples of doing this on the web. If the web page is on an MS server,
you could use ASP or ASP.NET to write a pretty easy script to do the
mailing. If it's on a Unix/Linux machine, you can use PERL to write a
cgi script. PERL feels more foreign to me, but it can certainly be done
(we did it!).

I don't know if you have any CDs from the ToolBook and VBTrain.Net
User's Conference, but there are some example scripts on it written in
ASP and PERL of how to do this. Look under my session on communicating
via the Internet with ToolBook.

Thanks,

Chris
-----
Chris Bell
Platte Canyon Multimedia Software Corporation
"Improving the lives of training developers."
http://www.plattecanyon.com

Training
http://www.learningandmastering.com

ToolBook & VBTrain.Net User's Conference
http://www.tbcon.com
-----

> -----Original Message-----
> From: ToolBook Discussion List
[mailto:tool...@LISTSERV.PLATTECANYON.COM]
> On Behalf Of serge steinberger
> Sent: Tuesday, April 15, 2003 9:05 AM
> To: tool...@LISTSERV.PLATTECANYON.COM
> Subject: Re: [TBK] Send Mail From ToolBook 7 or 8
>
> Thanks,

Brian Schmidt/Amigos

unread,
Apr 16, 2003, 11:49:18 AM4/16/03
to
I'll also add that it works well with PHP too if you have that available.
If you need an example, let me know and I can send it to you. I use that
to embed a page into our books for them to compose an e-mail from within
the course and send it to our trainers. PHP will also allow you to upload
files to the server. I do not have that set up at the moment, mainly
because we don't need it, but I can send you an example of how that would
work as well. It's all fairly simple and straight-forward.

HTH,
Brian

Chris Bell
<cbell@PLATTECANY To: tool...@LISTSERV.PLATTECANYON.COM
ON.COM> cc:


Subject: Re: Send Mail From ToolBook 7 or 8

04/16/2003 10:04
AM

Brian Sullivan

unread,
Apr 16, 2003, 12:17:23 PM4/16/03
to
> Serge,
>
> My favorite way to send email from ToolBook is via HTTP Post.
> I post the
> applicable information to a web page which then turns it around and
> emails it out. It's is clean and reliable. As long as your user has
an
> internet connection, it is very reliable.

I assume this script on the server is only available to authenticated
users and not available to any internet user that cares to relay mail?

John R. Hall

unread,
Apr 16, 2003, 12:59:15 PM4/16/03
to

I'm betting he has relaying turned off and only the host machine can
generate the smtp message. I would.

Jeff Rhodes

unread,
Apr 16, 2003, 1:02:09 PM4/16/03
to
At 12:15 PM 4/16/03 -0400, you wrote:
>> Serge,
>>=20
>> My favorite way to send email from ToolBook is via HTTP Post.=20

>> I post the
>> applicable information to a web page which then turns it around and
>> emails it out. It's is clean and reliable. As long as your user has
>an
>> internet connection, it is very reliable.
>
>
>
>I assume this script on the server is only available to authenticated
>users and not available to any internet user that cares to relay mail?

Good question. In our ASP and ASP.NET scripts, we typically include recipient email address in ASP page itself. For example, we do this for beta testers for our Learning & Mastering products. The testers can hit a control key combination to bring up a comments window, and then post the comment right then. Our ASP page takes the page name/number, comment, etc. and then emails it to us. In other cases, we allow the user to specify an email address but the ASP page sends a copy to an administrator. Your point is well taken, though, that you wouldn't want to just have a relay page. Having a special authentication parameter would be one solution to that.

Thanks,

Jeff Rhodes


Platte Canyon Multimedia Software Corporation

"Improving the Lives of Training Developers"
http://www.plattecanyon.com

serge steinberger

unread,
Apr 17, 2003, 4:44:09 AM4/17/03
to
sorry,
but i don't understand your answer.
i'm just a toolbook developer and have no knowledge about ASP and HTTP
........ HELP HELP HELP.

----- Original Message -----
From: "Jeff Rhodes" <jrh...@PLATTECANYON.COM>
To: <tool...@LISTSERV.PLATTECANYON.COM>
Sent: Wednesday, April 16, 2003 6:58 PM
Subject: Re: Send Mail From ToolBook 7 or 8

Jeff Rhodes

unread,
Apr 17, 2003, 8:07:49 AM4/17/03
to
The basic idea is that you use the Actions Editor or OpenScript to send an HTTP Post to a particular web page. You first send the parameters and then the post itself. For the example code on the ASP.NET page (from my VBTrain.Net book), the parameters that you send are email, name, and location. You then have an ASP.NET page (uses Visual Basic .NET or another .NET language) or ASP page (uses VBScript) like this one:

Imports System.Web.Mail

Public Class mailViaPost
Inherits System.Web.UI.Page

' Web Form Designer Generated Code

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim messageID As New MailMessage()
Dim emailAddress As String = Request.Form("email")
Dim userName As String = Request.Form("name")
Dim userLocation As String = Request.Form("location")

With messageID
.BodyFormat = MailFormat.Text
.To = emailAddress
.From = "your...@vbtrain.net"
.Priority = MailPriority.Normal
.Subject = "Message sent in response to VBTrain.Net request"
.Body = String.Concat("Hello ", userName, ". You said that your location is ", userLocation, ". We hope that you are finding VBTrain.Net useful!")
End With
' Following only needed when running "localhost"
SmtpMail.SmtpServer = "PLATTE-2K1"
SmtpMail.Send(messageID)
Response.Write(String.Concat("An e-mail has been sent to your mailbox (", emailAddress, ")."))
End Sub
End Class

In ToolBook, the return value from the HTTP Post will be the "An e-mail has been sent ..." string. If you are using Visual Studio.NET to make your page, be sure to strip ALL the HTML out of your page except for the bit that is inside the <% and %> tags. Otherwise, you will see that in the return value as well.

Hope this makes it a little bit clearer.

Jeff Rhodes
Platte Canyon Multimedia Software Corporation
"Improving the Lives of Training Developers"
http://www.plattecanyon.com

ToolBook & Visual Basic .NET Training Classes
http://www.learningandmastering.com

The ToolBook & VBTrain.Net User's Conference
http://www.tbcon.com

0 new messages