I have seen a lot of messages about this, but nothing that I can put my
finger on yet. So that no one says "Are you running IIS4?" "Is your computer
turned on?" I will make this lengthy, but fairly complete.
I'm running NT4, IIS4, Exchange 5.5. Everything is up and running like a
dream otherwise. I am getting, sending, running ASPs, etc.
All I want to do is send a damn e-mail from an ASP page. I would think it
would be quite simple, however here is what I have, and here is what comes
out:
<%
Dim eMail
Dim HTML
Set eMail = Server.CreateObject("CDONTS.NewMail")
eMail.From="I fill in their name here"
eMail.To="I fill in recipient here"
eMail.Body="I fill in a message here"
eMail.Subject="A Postcard Awaits for YOU!"
eMail.Send
set eMail=nothing
Response.Write "Your message has been sent"
%>
And the result:
error '80070003'
The system cannot find the path specified.
/frink98/cdotest2.asp, line 14
Line 14 corresponds to the eMail.Send. I have tried with both just
CreateObject and Server. as shown.
I don't know if I can use any third party software, nor do I really want
to.. I am hosting multiple domains on this box, and am using exchange simply
for SMTP/POP3 services. I don't know if the "other" email POP3 third party
things will do multiple domains.
Apparently, you cannot install the IIS4 SMTP service if you are running
Exchange. I have looked many many places to find the information, but I'm
running on about 8 hours of searching and testing, and am coming to wits
end.
Thanks for your time, any input / solutions / resources are greatly
appreciated.
Aaron
I'm far from an expert on this, but my understanding is that the CDONTS
object model is supported by the SMTP service which is an optional component
of IIS4.0. The CDO object model is supported by Exchange Server.
I guess I don't understand why you are using CDONTS. Did you install the
SMTP service for IIS? Is the service running?
Bill Ackerman
aaron wrote in message <#CLS7lc2...@uppssnewspub04.moswest.msn.net>...
snip
>I guess I don't understand why you are using CDONTS. Did you install the
>SMTP service for IIS? Is the service running?
Bill,
The reason that I was trying CDONTS is because I'm an idiot. I have no clue
as to what I'm doing when it comes to Exchange and the MAPI session because
I've never done that before.
If I can get that to work (I'm at the aspmess URL that you sent), I will be
able to rest in peace.. I hate Exchange, but it's the demon I gotta live
with! :)
If you have any code example, that would be fantastic... I'm at the point
where I'm just tired from this problem... grrrrr!
Thanks for your help, sir.
Aaron
PS Should I remove NOSPAM from your email? LOL
The code examples in the URL I pointed you to are pretty much what I used.
Here are a couple of hints:
1. The whole first part of the document in that URL is a discussion on
security. I ignored it and went straight to the code example. Big mistake.
Exchange will reject your ASP's CDO logon request unless Exchange and IIS
security are correctly configured.
2. I installed Outlook 98 on the IIS machine to make sure it had the latest
version of CDO. I'm not sure this was necessary, but what the heck.
3. I'm having one problem: I haven't been able to get line breaks (CR+LF) to
show up in the message text. Even though I insert vbCRLF ASCII codes into
the message text, when the message arrives at the destination, all of the
text runs together. If you manage to get this work, please let me know.
Regards,
Bill Ackerman
aaron wrote in message ...
Try this. I'm going to be trying this in the morning, so I'm not 100%
certain this will work:
Create a mailbox for the user you want as the "sender". In the "Primary NT
Account" field on the General Tab, set it to "DOMAIN\AnonUser". In your ASP,
your logon profile mailbox (strMailbox), should be set to the "sender". Let
me know if this works. I think it should.
Regards,
Bill Ackerman
aaron wrote in message >Now if I could only mask who the sender is... I
don't like the AnonUser
>example. Too queer when it's received!
>
>Thanks again!
>
>Aaron
>
>
Thank you for that reference,... it is a GodSend..
I have a form that a user fills out to register on my site. After submitting the information, I would like to generate a response email confirming the successful registration. Email address is one of the fields on the form, so I have that value. My question is whether I can fill in: eMail.To="I fill in recipient here" with a variable name, so that the response email will automatically go to the person registering.
Thanks,
Adam
eMail.Body=" " & variablename & " "
And if you can How ?
Thanks Gene
With VBScript you only can use
'On Error Resume Next'
to prevent stopping in the case of an error.
You may do it like this:
Set objConnection = Server.CreateObject("ADODB.Connection")
objConnection.Open "DETECON"
If CLng(Err.Number) <> 0 Then
'an error while opening the connection (Server down?)...
HTH
Rainer
--
Raine...@bonn.detecon.de
PGP 5.0 Public Key. Send Mail with Subject: SendPublicKey
"Mögest Du verflucht sein, in einer interessanten Zeit zu leben" - Confuzius