PDA

View Full Version : Custom ReplyTo Form



andrewc
03-15-2007, 03:06 PM
Hi Guys,
First post here, hopefully someone can give me a hand!

This is what i need to do.

Client has two foreign accounts - both delivered to outlook via POP3 account.
Wants to have 'reply' always from whichever was the target, not the host account address.

In short, im thinking of a custom ReplyTo form, with some outlook object model code behind it to make the selection/change.

Can anyone offer some suggestions on how to go about this?

Cheers,
Andrew

andrewc
03-21-2007, 04:59 AM
well i think ive found what i need to do, but the only thing im unsure of is the line in red, i dont know what the objects are called?

public newMail as object
Private Sub myOlInspectors_NewInspector(ByVal Inspector As Outlook.Inspector)
If myInsp.CurrentItem.Class = olMail Then
Set newMail = myolApp.CreateItem(olMailItem)
sendFromAccount=receivedAddressAccount
End if
End Sub

Can anyone offer any suggestions?