bhynes
asked on
Setting email priority in access97 vba code
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("NovellGroupW areSession ")
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
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("NovellGroupW
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome, but sorry it turned out to be the long way around :(
ASKER