Re: Ibm notes

2016-12-02 Thread Vikash Mishra
'''**
'''Function Name:- SendNotesMail() Application independent
'''Function Description:- ''Function: Send a Mail using Lotus Notes
'''Inputs:-   
'''Output :-   Result will -Mail will be sent to all the person
'''Author :-   
'''Date :-
'''Modified by:-   Vikash Mishra 
'''Modified Date:-  14-11-2016
'''Modified Description:-  As pe rrequirement
'''Review:- 
'''**
 
Sub SendNotesMail(Subject , Attachment , Recipient , BodyText , SaveIt )
'Set up the objects required for Automation into lotus notes
Dim Maildb 'The mail database
Dim UserName 'The current users notes name
Dim MailDbName 'THe current users notes mail database name
Dim MailDoc 'The mail document itself
Dim AttachME 'The attachment richtextfile object
Dim Session 'The notes session
Dim EmbedObj 'The embedded object (Attachment)
'Start a session to notes
Set Session = CreateObject("Notes.NotesSession")
'Get the sessions username and then calculate the mail file name
'You may or may not need this as for MailDBname with some systems you
'can pass an empty string
UserName = Session.UserName
MailDbName = Left(UserName, 1) & &";"& Right(UserName, (Len(UserName)
 - InStr(1, UserName, " "))) &&";"& ".nsf"
'Open the mail database in notes
Set Maildb = Session.GETDATABASE("", MailDbName)
'Set Maildb = Session.GETDATABASE("", "mail.box")
If Maildb.ISOPEN = True Then
'Already open for mail .. This wil be fine once the mail box is open, 
if it is not open then will hamper the execution..
Else
Maildb.OPENMAIL
End If
'Set up the new mail document
Set MailDoc = Maildb.CREATEDOCUMENT
MailDoc.Form = "Memo"
MailDoc.sendto = Recipient
MailDoc.Subject =Subject
MailDoc.Body = BodyText
MailDoc.SAVEMESSAGEONSEND = SaveIt
'Set up the embedded object and attachment and attach it
If Attachment<>"" Then
Set AttachME = MailDoc.CREATERICHTEXTITEM("Attachment")
Set EmbedObj = AttachME.EMBEDOBJECT(1454, "", Attachment, "Attachment")
'MailDoc.CREATERICHTEXTITEM ("Attachment")
End If

'Send the document
MailDoc.SEND 0, Recipient
'Clean Up
Set Maildb = Nothing
Set MailDoc = Nothing
Set AttachME = Nothing
Set Session = Nothing
Set EmbedObj = Nothing
End Sub 
''*****

On Friday, December 2, 2016 at 6:16:27 AM UTC+1, sekhar wrote:
>
> please share that code...
>
> On Monday, November 14, 2016 at 4:10:24 PM UTC+5:30, Vikash Mishra wrote:
>>
>> I created the code..pls let me know..if any 1 needed
>>
>> On Saturday, October 15, 2016 at 2:38:36 AM UTC+2, Vikas Mishra wrote:
>>>
>>> Req:-  IBM note as an outlook 
>>> What :- send mail to all using vb script 
>>> What to :- i want to Send mails ( automatically) using IBM notes which 
>>> is similar as an outlook. 
>>> Risk :- not an outlook. 
>>> Result :- please send code if any one used in his /her assignment. 
>>
>>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ibm notes

2016-12-01 Thread sekhar
please share that code...

On Monday, November 14, 2016 at 4:10:24 PM UTC+5:30, Vikash Mishra wrote:
>
> I created the code..pls let me know..if any 1 needed
>
> On Saturday, October 15, 2016 at 2:38:36 AM UTC+2, Vikas Mishra wrote:
>>
>> Req:-  IBM note as an outlook 
>> What :- send mail to all using vb script 
>> What to :- i want to Send mails ( automatically) using IBM notes which is 
>> similar as an outlook. 
>> Risk :- not an outlook. 
>> Result :- please send code if any one used in his /her assignment. 
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ibm notes

2016-11-14 Thread Vikash Mishra
I created the code..pls let me know..if any 1 needed

On Saturday, October 15, 2016 at 2:38:36 AM UTC+2, Vikas Mishra wrote:
>
> Req:-  IBM note as an outlook 
> What :- send mail to all using vb script 
> What to :- i want to Send mails ( automatically) using IBM notes which is 
> similar as an outlook. 
> Risk :- not an outlook. 
> Result :- please send code if any one used in his /her assignment. 

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ibm notes

2016-10-14 Thread Vikas Mishra
Req:-  IBM note as an outlook
What :- send mail to all using vb script 
What to :- i want to Send mails ( automatically) using IBM notes which is 
similar as an outlook. 
Risk :- not an outlook. 
Result :- please send code if any one used in his /her assignment. 

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.