Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual basic script in a 3rd party environment

Status
Not open for further replies.

cuneyt2020

Technical User
Joined
Mar 9, 2004
Messages
147
Location
TR
Hi we have Genesys CTI environment ,using for call center. And there is a reporting program which has action wizards using VB codes.
There are some thresholds for agents in call center, and using VB scripts we want to send mail via lotusnotes about these thresholds

Here is the VB script that works properly in Genesys environment.

[tt]
SendMail

Sub SendMail

Dim sDatabase, sServer,Session ,DataBase ,Document

sServer = "OPCDMN1/YKB"
sDatabase = "mail\cevliyaogl.nsf"


Set Session = CreateObject("Notes.NotesSession")


Set DataBase = Session.GETDATABASE(sServer, sDatabase)


Set Document = DataBase.CREATEDOCUMENT()

Document.Form = "Memo"


Document.SendTo = "cevliyaoglu@ykb.com"
Document.Subject = "Test OLE automation"
Document.Body = "Testing OLE"
Document.From = Session.COMMONUSERNAME
Document.SaveMessageOnSend = True
Document.Send True

end sub

[/tt]

But now, we want to send an attachment and actually i don't know how i can do this.
Would you please help me converting this code to the attachment based one.
NOte:I'm not a vb developer, i'm a pbx/voice engineer , so i need a detailed help getting the code,So i can test it

Thank you so much
Rgrds.
 
hmmm I only know that you probably need to define MIME types.

You'll need to write a email header. I do this in PHP. To send mail with php.

check the web for writing MIME headers with visual basic.

greets.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top