There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
Sending Email from MS Access through Lotus Notes


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
jim4004's Avatar
Member with 92 posts.
 
Join Date: Feb 2006
Location: USA
Experience: Advanced
11-Sep-2006, 11:06 AM #1
Sending Email from MS Access through Lotus Notes
I have an application that sends a report as an email when the user clicks on the send button. It assembles the report and sends it the the default email app (Lotus Notes). Unfortunately I have one user that gets the file converted from HTML to XLS and it attaches it to the email. I've tried every option I can think of (associations, Lotus setup, etc..) and nothing seems to work. Something about the setup of this particular machine makes it impossible to insert the HTML into the email. Of course this user is the primary user of the application. I'm hoping someone has run into a similar error or has some experience with using the Lotus Notes OLE interface (another option).

Here's my code for using the MS Access control:
Code:
Private Sub cbEmail_Click()
On Error GoTo Err_cbEmail_Click
    
    ' This routine will use the current default email program to send a message - inserting an HTML report in the body
    ' of the message
    ' Note that the report "Requests" is reading the form for it's filtering criteria after the button starts the report
    
    Dim stDocName As String 'Report Name
    Dim stSubject As String 'Email Subject
    Dim stEmailTo As String 'Email addresses
    Dim stEmailBody As String 'Email Text - if any
    '
   
    'Report name
    stDocName = "Requests"
    
    'Insert the Move_Type, Request Number, Receipt date, Description and Status into Subject line of email
    stSubject = Me.Move_Type.Column(1) & _
    " Request Number:" & Me.RequestID & _
    " Date:" & Format(Me.Receipt_Date, "MMDDYY") & _
    " - " & Me.RequestDescription & _
    " [" & Me.Status.Column(1) & "]"
    
    'Email Addresses - 1 owner, 1 Requestor
    stEmailTo = Me.Env_Owner.Column(1) & ", " & _
    Me.Env_Requestor.Column(1) 
    
    'Email Body
    stEmailBody = "Status Message: " & Me.Status.Column(2)
    
    'MsgBox (stSubject) ' debug
    
    DoCmd.SendObject acReport, stDocName, "HTML(*.html)", stEmailTo, "", "", stSubject, stEmailBody, True, ""



Exit_cbEmail_Click:
    Exit Sub

Err_cbEmail_Click:
    MsgBox Err.Description
    Resume Exit_cbEmail_Click
    
End Sub
I'm considering using the Lotus OLE interface, but I'm not sure how I can insert the HTML report into the Lotus message using OLE.
kickboxer's Avatar
Junior Member with 13 posts.
 
Join Date: Jul 2008
Location: Stourbridge, West Midlands
Experience: Lotus Notes guru
07-Jul-2008, 03:01 PM #2
Check this persons settins in the domino name and address book. On the Basics tag check their format preference for incoming mail. They probably have it set to Prefers MIME, change to keep in senders format and it should work properly
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:23 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.