There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp 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!

Closed Thread
 
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 14 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
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


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 04:47 AM.
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.