Jump to content

Recommended Posts

Posted

Hiya,

 

hoping someone here will know the answer to this. We use some software, that based on a certain word in the subject line of an email (say, for example if my subject starts with Domain1), it will attach a Domain1 email template. If I use Domain2 in subject, a different template is used.

What I'm looking for now is a bit of software, or VBscrript, that could run on a user's machine... what should happen is that when someone clicks on send, it will pop up, and ask which word to insert into subject, and offer them 2 or more options.

 

Anyone come across anything like this by any chance?

 

Adam

Posted

I'm sure you could do it in VBA but I'm not really sure what you're trying to do :-)

 

The code below is pretty trivial but it might show you something about what you can do.

When you send an email it will pop up message boxes showing you the message, recipients and subject.

 

It then sticks the word "Checked:" at the start of subject and sends the message.

 

Not sure if this will get you started as to how you can change the message when it's sent???

 

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)


MsgBox Item.Body
For Each x In Item.Recipients
   MsgBox x
Next
MsgBox Item.Subject
Item.Subject = "Checked: " & Item.Subject

End Sub


Posted

Hi,

 

thanks for your reply... what you'be got for me there is not far off from what I need, so I'm hoping you can modify this for me slightly - I have zero skills in this kind of coding.

So, let's say I click Send in outlook. I would like a popup box to appear, which says something like:

 

"Is this an UM or MP email?"

 

And then user is presented with two buttons, UM and MP. If they click UM, the word UM: is inserted into subject line automatically, or if they click MP, MP: is inserted into subject line.

 

Really genuinly hope you can help with this!

 

Adam

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...