P
Philip Morgan
I have run into a new problem sending a CDONTS email from Access
because it appears our local SMTP servers (on the workstations) are
not connected to the Outlook Exchange servers which ultimately deliver
the mail.
We know our CDONTS code is functional because it works fine on the
server side ASP pages (hence the servers must be connected to the
Exchange servers because it delivers into Outlook).
However, I have been unable to figure out how to call/send the CDONTS
code at the server level from Access.
If I include "Server" in the CreateObject line, I get an error back
indicating the server can't send the object and points to the send
line (e.g. Set userMail = Server.CreateObject("CDONTS.NewMail")). If I
remove the server part, it reports it cannot create the object.
So I have been trying to call an ASP page as an Access Data Page, but
it won't recognize the .asp suffix (requires HTML?).
The code is not the issue... but here it is anyways (stripped down
test version)
Dim userMail
Set userMail = Server.CreateObject("CDONTS.NewMail")
userMail.To = "(e-mail address removed)"
userMail.From = "(e-mail address removed)"
userMail.Subject = "test"
userMail.Body = "test"
userMail.Send
Set userMail = Nothing
Question: How can you call an ASP page from within Access, or (b) get
the CDONTS code working at the local level?
Many thanks for any assistance that you could provide.
Phil Morgan
because it appears our local SMTP servers (on the workstations) are
not connected to the Outlook Exchange servers which ultimately deliver
the mail.
We know our CDONTS code is functional because it works fine on the
server side ASP pages (hence the servers must be connected to the
Exchange servers because it delivers into Outlook).
However, I have been unable to figure out how to call/send the CDONTS
code at the server level from Access.
If I include "Server" in the CreateObject line, I get an error back
indicating the server can't send the object and points to the send
line (e.g. Set userMail = Server.CreateObject("CDONTS.NewMail")). If I
remove the server part, it reports it cannot create the object.
So I have been trying to call an ASP page as an Access Data Page, but
it won't recognize the .asp suffix (requires HTML?).
The code is not the issue... but here it is anyways (stripped down
test version)
Dim userMail
Set userMail = Server.CreateObject("CDONTS.NewMail")
userMail.To = "(e-mail address removed)"
userMail.From = "(e-mail address removed)"
userMail.Subject = "test"
userMail.Body = "test"
userMail.Send
Set userMail = Nothing
Question: How can you call an ASP page from within Access, or (b) get
the CDONTS code working at the local level?
Many thanks for any assistance that you could provide.
Phil Morgan