thanks for your answers
Steinberger serge
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.
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
http://home.click2learn.com/en/support/knowledgebase/kbdisplay.asp?id=Q10157
1415025020
Serge Steinberger
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,
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
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?
I'm betting he has relaying turned off and only the host machine can
generate the smtp message. I would.
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
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