Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Harish77 (Programmer)
1 Mar 02 3:28
Dear All,

Need help. The scenario is given below

MACHINES LAYOUT: The deployment server machine where the SMTP is configured and ASP files are hosted) is connected to a Win NT Domain Controller . This domain Controller is connected to another Windows NT Server which runs the Lotus notes email server... All these machines are connected using a 48 point HUB... There are several other Windows NT Workstations and Windows NT servers in this network... One of such Windows NT Server is acting as a proxy server for internet connection.

 

MESSAGING SETUP: According to need, the deployment server has the SMTP configured. The ASP files are not able to shoot the mails to the Intranet email addresses. How to configure the SMTP to enable this email to run through freely using the mail ID generated through Lotus notes?

Please advice

Regards

Harry
peterve (IS/IT--Management)
7 Mar 02 4:59
so on your NT domain controller, you are running IIS ? are you using the IIS SMTP service ? If so, then create a new default local smtp domain, and give it the fqdn of your machine,
then create a new remote smtp domain,
'route domain' : fill in the email domain name (e.g. mydomain.com)
and select 'allow incoming mail to be relayed to this domain'


Now select 'Default SMTP Site, right click and choose properties'
go to the 'delivery' tab
fill in the domain name (mydomain.com) in 'Fully Qualified Domain name'
Smart host : [ip_address_of_your_remote_smtp_Server]
-> between [  ]  !!!

restart smtp service and try again...



--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------

Harish77 (Programmer)
7 Mar 02 7:08
Dear Peter,

Can we use ASP to send mails to notes rather than i try smtp to send the mails ?? What Say?

Please help . iam meeting a deadline soon.

Harry
peterve (IS/IT--Management)
7 Mar 02 8:56
yes, you can use the IIS smtp server service on your webserver, and use some very simple asp code to send the emails via smtp, to your Domino server, and so on...

are you interested in the .asp code to send a mail ?

--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------

Harish77 (Programmer)
8 Mar 02 9:36
Hi Peter,

Iam exactly looking for the ASP Page code. I have done some coding never seems to be working .

Please help

Thanx in advance

Harry
peterve (IS/IT--Management)
8 Mar 02 9:49
This should do the trick...


<%
'send email
dim bodytext
set objMail = CreateObject("CDONTS.NewMail")
objMail.from = "webmaster@yourdomain.com"
objMail.To = "client@clientdomain.com"
objMail.subject = "Testmail"
bodytext="This is a test &  vbCrLf
bodytext=bodytext & "This is line 2"           objMail.body=bodytext
objMail.Send
set objMail=nothing
%>

--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
If this post was helpfull, please click below to let me know !  

Harish77 (Programmer)
9 Mar 02 6:47
Dear Mr. Peter,

Thank you for the code. But i know that code, I was asking you some code for sending mails from Active Server Pages to lotus notes using Notes.Notessession. I think you got my point. Using ASP page to look in to the notes db and send mail to that user db, thats it.

Regards

Harry
peterve (IS/IT--Management)
12 Mar 02 2:15
hmmm never tried it, but maybe this might put you in the right direction :
(it is written in vbscript)


Dim s 'As New NotesSession
Dim db 'As NotesDatabase
Dim v 'As NotesView
Dim vn 'As NotesViewNavigator
Dim e 'As NotesViewEntry
Dim doc 'As NotesDocument
Dim personName
Dim personValue
 
' == Create and initialise NotesSession
Set session = CreateObject("Lotus.NotesSession")
Call session.initialize
 
Set db = session.GetDatabase("", "names.nsf")
Set v = db.GetView("People")
Set vn = v.CreateViewNav()
Set e = vn.GetFirstDocument()
 
'== Loop through documents
While Not (e Is Nothing)
 set doc = e.Document
 set personName = doc.GetFirstItem("FirstName")
 personValue =personName.Values
 msgbox personValue(0), , "Persons FirstName"
 Set e=vn.GetNextDocument(e)
Wend



--------------------------------------------------------------------
How can I believe in God when just last week I got my tongue caught in the roller of an electric typewriter?
---------------------------------------------------------------------
If this post was helpfull, please click below to let me know !  

Harish77 (Programmer)
12 Mar 02 4:02
Public Sub ProcessLotusMail()
Dim conICI As New ADODB.Connection
Dim rsLotusPo As New ADODB.Recordset
Dim SQLGetMailsfromTbl$
Dim Connectionstr$
Dim Session As Object
Dim MailDoc As Object
Dim rTItem As Object
Dim TimeofficeDB As Object
'''Dim mObjAtt As Object

On Error GoTo errDesc:
Connectionstr = "Driver={SQL Server}; Server=axonws; Database=ICI_TEST; UID=sa; PWD=axondb"

conICI.Open Connectionstr

SQLGetMailsfromTbl = "Select * from ICI_LotusPo"

rsLotusPo.Open SQLGetMailsfromTbl, conICI, adOpenDynamic, adLockBatchOptimistic, adCmdText

If Not (rsLotusPo.EOF Or rsLotusPo.BOF) Then
   
Do Until rsLotusPo.EOF
    'create notes session
    Set Session = CreateObject("Notes.NOTESSESSION")
    'getting the timeoffice database
    Set TimeofficeDB = Session.GETDATABASE("HARRYSYS/Axondm", "Mail\mharish.nsf")
    Set MailDoc = TimeofficeDB.CREATEDOCUMENT
    'doc type is memo
    MailDoc.Form = "Memo"
    MailDoc.sendto = rsLotusPo("IL_RecieverEMail")
    MailDoc.CopyTo = "Suresh"

  'mail send from timeoffice
    MailDoc.principal = "Harish"
    MailDoc.Subject = rsLotusPo("IL_MsgSubject")
    Set rTItem = MailDoc.CREATERICHTEXTITEM("Body")
    Call rTItem.APPENDTEXT(rsLotusPo("IL_MsgBody"))
    'for attachment
    '    Set mObjAtt = rTItem.EMBEDOBJECT(1454, "", )
    Call MailDoc.SEND(False)

    Set rTItem = Nothing
    Set MailDoc = Nothing
    Set TimeofficeDB = Nothing
    Set Session = Nothing
    
    rsLotusPo.MoveNext
Loop
    
    End If
    
Exit Sub

errDesc:
    SendMail = Err.Number & " - " & Err.Description



End Sub


The above code iam using in VB . But the body is actually a html code. now the code is geeting refelecte as the HTML code it self whil i try to viee in notes client. Any idea how to solve this.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close