Solved

Setting email priority in access97 vba code

Posted on 2000-04-13
3
284 Views
Last Modified: 2012-05-04
I have this piece of code I use in Access97 which sends an email to Groupwise5.5 and it works just fine. What I would like to do is add a priority to the mail being sent but I do not know what the line of code is. I have tried
oMessage.Priority.High and oMessage.Priority = High
nether works. Also, what is the line of code for putting a mail address in the CC box?

Set oApp = CreateObject("NovellGroupWareSession")
Set oAcct = oApp.login("", "")
Set oMessages = oAcct.Mailbox.Messages
'create new message
Set oMessage = oMessages.Add()
'get mail address
oMessage.Recipients.Add ToYou
oMessage.Recipients.Add ToCC
'get subject for message
oMessage.Subject = Subj
'get message text
oMessage.BodyText = Mess
'get attachement if any
oMessage.attachments.Add AttchFile
'send it out
oMessage.Send

thanks for any help
bobh




0
Comment
Question by:bhynes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Believer earned 75 total points
ID: 2714485
Unfortunately, when you use the following method to set object references:
   Set oApp = CreateObject("NovellGroupWareSession")
you don't get intelli-sense or object model.
Have you tried, therefore, setting a reference (tools... references) to the GroupWise object model so you can use intelli-sense or, better yet, review the object model (view...object browser or simply F2)?
0
 

Author Comment

by:bhynes
ID: 2717986
The answer was the long way around and took me a long time to figure out when all I needed was oMessage.Priority = 3. Even so, thanks for the help it did get me to an answer.
0
 
LVL 7

Expert Comment

by:Believer
ID: 2723030
You're welcome, but sorry it turned out to be the long way around :(
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question