> I have try but not working.
Then maybe you should show us what you currently have...
Main Topics
Browse All Topicshello expert...
i want to know the way how i can send an email via notes mail server using asp. what i need to configure to make this thing running. I have try but not working. please help me.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
that i need to install something to the server. Matt my situation is like this. My asp is in the one server let say it call Developement server. And my notes mail server is in other server. so how i can connect this 2 server so i can send an email. did u know how this thing can be done. the OS i'm using is windows 2000. when i used CDOSYS it not work. the mail cannot be send. so please anybody that know about this thing.
ok
<%
Const cdoSendUsingMethod = _
"http://schemas.microsoft.
Const cdoSendUsingPort = 2
Const cdoSMTPServer = _
"http://schemas.microsoft.
Const cdoSMTPServerPort = _
"http://schemas.microsoft.
Const cdoSMTPConnectionTimeout = _
"http://schemas.microsoft.
Const cdoSMTPAuthenticate = _
"http://schemas.microsoft.
Const cdoBasic = 1
Const cdoSendUserName = _
"http://schemas.microsoft.
Const cdoSendPassword = _
"http://schemas.microsoft.
Dim objConfig ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields
' Get a handle on the config object and it's fields
Set objConfig = Server.CreateObject("CDO.C
Set Fields = objConfig.Fields
' Set config fields we care about
With Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "219.94.22.21"
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPConnectionTim
.Item(cdoSMTPAuthenticate)
.Item(cdoSendUserName) = ""
.Item(cdoSendPassword) = ""
.Update
End With
Set objMessage = Server.CreateObject("CDO.M
Set objMessage.Configuration = objConfig
With objMessage
.To = "khairul@thtech.com.my"
.From = "khairul@thtech.com.my"
.Subject = "SMTP Relay Test"
.TextBody = "SMTP Relay Test Sent @ " & Now()
.Send
End With
Set Fields = Nothing
Set objMessage = Nothing
Set objConfig = Nothing
%>
but not work.
For 50 points? Hmmm...
Anyway, what I think is happening is that by using CDOSYS all you're doing is sending a mail message from your IIS machine to the Notes mail server. This is not the same thing as sending mail to the outside world via Notes.
I know very little about Notes but I would've thought that you'd need a COM object to connect to the Notes machine, login, then generate your mail message. This is how it works with Exchange for example.
My question is do you really need to send mail via Notes? Why can't you just send them from IIS using CDOSYS? My guess is that the reason you can send mails internally via CDOSYS but not externally is simply because of a firewall issue. The IIS machine is probably prevented from making connections on the appropriate SMTP port (25??).
If you want to use CDOSYS for mails to the outside world talk to your network admins.
ok what happen is my office used Notes server for mailling. and the server is diffrent. IIS and mail server is in the diffrent server. Ok i'll increase the point as long i get the solution for this problem.
if i need to used a com object please tell me. if can, can u guide me how to do this thing. thank you.
> ok what happen is my office used Notes server for mailling.
> IIS and mail server is in the diffrent server.
I understand that. But do you actually need to send emails via the Notes machine? Or so you simply want to send emails from the IIS machine?
If you want to send emails via the Notes machine then I don't really think I can help you because my knowledge of Notes is very limited.
If you just want to send emails from the IIS machine then the CDOSYS code you posted should work fine. It's more a matter of having your network configured in such a way as to allow the IIS box to make SMTP connections to the internet.
You'll need the Lotus Domino Object (domobj.tlb) and Lotus Notes automation classes (notes32.tlb) on the IIS Server, the easiest is to install the notes client on the server.
<%
Dim session
Dim db
Dim doc
Set session = CreateObject("Lotus.NotesS
Call session.Initialize("passwo
- or -
Call session.InitializeUsingNot
Set db = session.GetDatabase("","")
call db.OpenMail()
If db.IsOpen() Then
Set doc = db.create()
call doc.ReplaceItemValue("Form
call doc.ReplaceItemValue("Send
call doc.ReplaceItemValue("Subj
call doc.send()
call doc.save(True, False) ' If required
End If
%>
Business Accounts
Answer for Membership
by: mrGreenPosted on 2004-02-04 at 02:57:40ID: 10269802
you could see if this component works:
nual.html
http://www.aspemail.com/ma
cheers
Matt