PC Review


Reply
 
 
SS
Guest
Posts: n/a
 
      31st Jul 2006
Can anyone point me in the right direction for a script that sends to an
access database and email please?

I've searched but not luck except with cdonts.

Thanks Shona


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      31st Jul 2006
You are going to have write a custom script that does both.

In your IE address bar type:

? Sending Email with CDOSYS

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


"SS" <(E-Mail Removed)> wrote in message news:eakkld$64m$(E-Mail Removed)...
> Can anyone point me in the right direction for a script that sends to an
> access database and email please?
>
> I've searched but not luck except with cdonts.
>
> Thanks Shona
>
>



 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      31st Jul 2006
Thanks I have a custom script which are both fine if done separately but put
together I get an error message appear. That is why I thought I would
hopefully find a link and start from scratch but most of the links appear to
be about CDONTS if to both or only to mail if cdosys or cdo.

Cheers Shona


 
Reply With Quote
 
Mike Mueller
Guest
Posts: n/a
 
      31st Jul 2006
Whats the error message?

"SS" <(E-Mail Removed)> wrote in message
news:eal7ef$p12$(E-Mail Removed)...
: Thanks I have a custom script which are both fine if done
separately but put
: together I get an error message appear. That is why I
thought I would
: hopefully find a link and start from scratch but most of
the links appear to
: be about CDONTS if to both or only to mail if cdosys or
cdo.
:
: Cheers Shona
:
:


 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      1st Aug 2006
Thanks for getting back to me

The error is

Microsoft VBScript compilation error '800a0400'

Expected statement

Softwareanddatabase.asp, line 73

Option Explicit
^Although the only place Option Explicit is on the first lineCheers
Shona"Mike Mueller" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Whats the error message?
>
> "SS" <(E-Mail Removed)> wrote in message
> news:eal7ef$p12$(E-Mail Removed)...
> : Thanks I have a custom script which are both fine if done
> separately but put
> : together I get an error message appear. That is why I
> thought I would
> : hopefully find a link and start from scratch but most of
> the links appear to
> : be about CDONTS if to both or only to mail if cdosys or
> cdo.
> :
> : Cheers Shona
> :
> :
>
>



 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      1st Aug 2006
For using CDO see http://www.interlacken.com/winnt/tip...ow.aspx?tip=46

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPa...3/Default.aspx
_____________________________________________


"SS" <(E-Mail Removed)> wrote in message news:eamt2p$59v$(E-Mail Removed)...
| Thanks for getting back to me
|
| The error is
|
| Microsoft VBScript compilation error '800a0400'
|
| Expected statement
|
| Softwareanddatabase.asp, line 73
|
| Option Explicit
| ^Although the only place Option Explicit is on the first lineCheers
| Shona"Mike Mueller" <(E-Mail Removed)> wrote in message
| news:%(E-Mail Removed)...
| > Whats the error message?
| >
| > "SS" <(E-Mail Removed)> wrote in message
| > news:eal7ef$p12$(E-Mail Removed)...
| > : Thanks I have a custom script which are both fine if done
| > separately but put
| > : together I get an error message appear. That is why I
| > thought I would
| > : hopefully find a link and start from scratch but most of
| > the links appear to
| > : be about CDONTS if to both or only to mail if cdosys or
| > cdo.
| > :
| > : Cheers Shona
| > :
| > :
| >
| >
|
|


 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      1st Aug 2006
OK great thanks got that to work but when I try to add the create a database
connection it comes up with

An error occurred accessing your Windows SharePoint Services site files.

Unfortunately we are not allowed to use this

Any suggestions would be welcome

Cheers Shona


"Stefan B Rusynko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> For using CDO see

http://www.interlacken.com/winnt/tip...ow.aspx?tip=46
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> To find the best Newsgroup for FrontPage support see:
> http://www.frontpagemvps.com/FrontPa...3/Default.aspx
> _____________________________________________
>
>
> "SS" <(E-Mail Removed)> wrote in message

news:eamt2p$59v$(E-Mail Removed)...
> | Thanks for getting back to me
> |
> | The error is
> |
> | Microsoft VBScript compilation error '800a0400'
> |
> | Expected statement
> |
> | Softwareanddatabase.asp, line 73
> |
> | Option Explicit
> | ^Although the only place Option Explicit is on the first lineCheers
> | Shona"Mike Mueller" <(E-Mail Removed)> wrote in message
> | news:%(E-Mail Removed)...
> | > Whats the error message?
> | >
> | > "SS" <(E-Mail Removed)> wrote in message
> | > news:eal7ef$p12$(E-Mail Removed)...
> | > : Thanks I have a custom script which are both fine if done
> | > separately but put
> | > : together I get an error message appear. That is why I
> | > thought I would
> | > : hopefully find a link and start from scratch but most of
> | > the links appear to
> | > : be about CDONTS if to both or only to mail if cdosys or
> | > cdo.
> | > :
> | > : Cheers Shona
> | > :
> | > :
> | >
> | >
> |
> |
>
>



 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      2nd Aug 2006
Hi

I think I'm nearly there and have now changed some of the scripting. I now
get the information to go to the database and the mail arrives with the
field names but not the information that was typed into the fields !

Do hope someone can help?



<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->

<%


Dim sTextBody
Dim sName



Set cdoConfig = CreateObject("CDO.Configuration")


sTextBody = sTextBody & "Name: " & Request("sName") & VbCrLf



With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "rb-smtp-int.bosch.com"
.Update
End With



Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")
'Set key properties
objMail.From = "(E-Mail Removed)"
objMail.To = "(E-Mail Removed)"
objMail.Subject = "Software Required"
objMail.TextBody = sTextBody


objMail.Send



' End If

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>


<%
Session("FP_OldCodePage") = Session.CodePage
Session("FP_OldLCID") = Session.LCID
Session.CodePage = 1252
Err.Clear

strErrorUrl = ""

If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
If Request.Form("VTI-GROUP") = "0" Then
Err.Clear

Set fp_conn = Server.CreateObject("ADODB.Connection")
FP_DumpError strErrorUrl, "Cannot create connection"

Set fp_rs = Server.CreateObject("ADODB.Recordset")
FP_DumpError strErrorUrl, "Cannot create record set"

fp_conn.Open Application("Name_ConnectionString")
FP_DumpError strErrorUrl, "Cannot open database"

fp_rs.Open "Results", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic,
adCmdTable
FP_DumpError strErrorUrl, "Cannot open record set"

fp_rs.AddNew
FP_DumpError strErrorUrl, "Cannot add new record set to the database"
'Dim arFormFields0(8)
' Dim arFormDBFields0(8)
' Dim arFormValues0(8)


arFormFields0(4) = "sName"
arFormDBFields0(4) = "sName"
arFormValues0(4) = Request("sName")


FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0


fp_rs.Update
FP_DumpError strErrorUrl, "Cannot update the database"

fp_rs.Close
fp_conn.Close

FP_FormConfirmation "text/html; charset=windows-1252",_
"Form Confirmation",_
"Thank you for submitting the following information:",_
"sendmail1.asp",_
"Return to the form."

End If
End If

Session.CodePage = Session("FP_OldCodePage")
Session.LCID = Session("FP_OldLCID")

%>

<p>&nbsp;</p>
<p>&nbsp;</p>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveDatabase" SuggestedExt="asp" S-DataConnection="name"
S-RecordSource="Results" U-Database-URL="../fpdb/name.mdb"
S-Form-Fields="sName" S-Form-DBFields="sName" -->
<p>
<input type="text" name="sName" size="20"></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><input type="submit" value="Submit" name="B1"><input type="reset"
value="Reset" name="B2"></p>
</form>

Thanks Shona


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<script>window.opener.location.href='MyPage.aspx';</script> Chetana Microsoft Dot NET 0 14th Feb 2008 11:23 AM
How would you write a script to add and apply a group policy in Active Directory? Script could be VBscript arpitaashokadessai@gmail.com Microsoft Windows 2000 Active Directory 1 14th Feb 2007 09:07 PM
BUG: Script blocking strips script parameters during script authorization Jonathan K. Shay Spyware Announcements 3 2nd May 2005 06:18 PM
Problem in executing a script on the server side ! Script found but nothing executed ! Cédric Rossé Microsoft ASP .NET 1 9th Nov 2004 09:43 AM
Logon script running a Kixtart script doesn't map drives when logging on from XP AcKBaR[KAC] Microsoft Windows 2000 Networking 0 25th Feb 2004 05:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:17 PM.