Home > Domino Tips > Administrator > E-mail > E-Mailing A Database To A User
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

E-MAIL

E-Mailing A Database To A User


David Slatter
09.14.1999
Rating: -4.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


If your users are like our user, getting them to add a new replica copy to
their desktop is a major phone call. And E-Mailing a large database is not the
answer. E-Mail then a Database Shell! After you have created a new Replica
Copy but before you replicate, you will have a Database shell or (Blank Icon)
on your desktop. it is about 176K bytes in size. Attach that shell to an E-Mail
and send that to your user. Have them Detach to the Notes Data directory and
then replicate it with the home server. One Step better!! Add a button to the
e-mail with the following Script and the button will load it to the proper
location for them.
You can also set the replication setting of the shell before you send it.

Code

Sub Click(Source As Button)
Dim session As New notessession
Dim ws As New notesuiworkspace
Dim uidoc As notesuidocument
Dim doc As notesdocument
Dim object As notesembeddedobject
Dim filename As String
Dim rtitem As Variant
Dim pathName As String

path = session.GETENVIRONMENTSTRING("Directory",True)
Call session.SETENVIRONMENTVAR("FileDlgDirectory",path,True)

Set uidoc = ws.currentdocument
Set doc = uidoc.document
Set rtitem = doc.getfirstitem("Body")
If(rtitem.type = RICHTEXT) Then
Forall o In rtitem.Embeddedobjects
If ( o.type = EMBED_ATTACHMENT ) Then
pathName$ = path & "" & o.source
fileName$ = Dir$(pathName$, 0)
If fileName$ = "" Then
Call o.extractfile( path & "" & o.source )
Else
Messagebox "The Database(s) " & filename$ & " is already on your System.
",64,"Finished"
End If

Call ws.adddatabase("",o.source)
End If
End Forall
End If
Messagebox "The Database(s) have been added to your Desktop. Please Replicate
before using.",64,"Finished"

End Sub

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
E-mail
Secure Lotus Notes/Domino 8.x from mail to unknown recipients
Domino server setting and email policy tricks admins must know
Top 10 Lotus Notes/Domino administration tips of 2008
Can Lotus Notes/Domino and Microsoft SharePoint play nice together?
Using Formula language code to sort Lotus Notes messages by subject
LotusScript action button manages Lotus Notes mail files
Exploring Lotus Notes Domino 8.0.1 and beyond
LotusScript agent moves tagged spam email to junk mail folder
Send SMS text messages between Lotus Notes 7 and mobile devices
Update to Exchange Server 2003 Connector for Lotus Notes

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts