WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE and Outlook
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Outlook Reply-To in OLE

Keywords: 	 Send Mail Outlook OLE Reply-To

Question:

I wrote a script based on the "How to Send Mail from Outlook using OLE" article (ID: W14391). This works great!

Now I would like to fill-in the "Reply-To"-field. How can I do that with OLE?

REPLY 1

What do you need to do? Reply to an existing email in your inbox???

You will need to see the OLE Automation documentation for Outlook.

The Visual Basic for Applications Help file for Microsoft Outlook contains valuable information about the methods, properties, and objects that the Microsoft Outlook 97 object model supports. This Help file, VBAOUTL.HLP, is included in the ValuPack\MoreHelp folder on the Microsoft Office 97 CD-ROM. The Help file is also available for download.

For more information about downloading the Visual Basic for Applications Help file for Microsoft Outlook 97, please see the following article in the Microsoft Knowledge Base:

Q162671 OL97: Visual Basic Help File for Microsoft Outlook Available http://support.microsoft.com/support/kb/articles/Q162/6/71.ASP

This might help....

REPLY METHOD
Creates a reply, pre-addressed to the original sender, from the journal entry
or mail message. Returns the reply as a MailItem object.

Syntax

expression.Reply

expression An expression that returns a JournalItem or MailItem object.

Again, I'm not sure what you're asking for but you can send the email message ON BEHALF OF another mailbox, provided you're DELEGATED to do so.

; make it look like EXAV mailbox sent it, so that replies go there...and send it

omsg.sentonbehalfofname = "EXAV"

(this is from a wbt script.) just add this line in before you send the message.

(omsg = message object)

This way all replies to the email are sent to the above mailbox instead of yours.

RESOULTION

I had trouble in setting the From field to something other than my own profile name.

I had to resort to

objOutlookMsg.SentOnBehalfOfName = "othername@xyz.com"

which seemed to do the trick.



Article ID:   W14684
Filename:   Outlook Reply-To in OLE.txt
File Created: 2001:01:23:14:07:22
Last Updated: 2001:01:23:14:07:22