Sending a plain-text message from a post form

H

hpoincare

I'm trying to use an example in the book "outlook programming". I created the
form using the Post template. I have made it as far as creating the "Send
request as plain text" control button.

But I had to change the computer I was working on. I saved the file as
RepairRequest.oft and moved the file to a new computer. I opened it on the
new computer.

My problem is that when I double click on the "Send request as plain text"
control button, it doesn't open a "private sub..."

If it did, I have the vb script that is given in the book to complete this
form.

Thanks
 
S

Sue Mosher [MVP-Outlook]

You must publish the form. An .oft file won't run code in current Outlook
versions.
 
H

hpoincare

Hi Sue,

Love the book. I am trying to mimic your example of a repair request from
your book.

As I mentioned, I'm having trouble with the "Send as Text" command button. I
published the .oft form as you instructed. I then went to Form/design
form/Personal Froms library/Repair Form V.3 and tried once again to double
click on the command button but with no success - nothing happens. I know
there must be some simple facet to this that I'm missing, but what? Do you
have any other suggestions about what I might have overlooked?

I know how double clicking the command button is supposed to work because
I've used it in other examples from the book.

Thanks
 
S

Sue Mosher [MVP-Outlook]

Maybe you're confusing VBA userforms with Outlook custom forms? To enter code
for a Click event for a custom form, in design mode, click the View Code
button or command to display the code window, then type in the entire
procedure.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
H

hpoincare

Hi Sue,

I did sucessfully send the form following your advice. But I find the body
of the message is not including the fields:information that I entered as it
did in the book example. I don't know how much you can help on this because
it may be I just need to read more, but maybe you recognize the issue right
away and can offer some advice??

Thanks
 
S

Sue Mosher [MVP-Outlook]

If you want data in custom fields to appear in the body of a message, then
you need code to take the data from those fields (Item.UserProperties) and
concatenate it into a string, which you then use to set the value of the Body
property of the outgoing message.
 
H

hpoincare

-Thanks Sue,

My ultimate goal is a make-shift ticket system. I would like to create a
script that takes the information from the body of the email on the receiving
end and places the information into fields in an MSAccess database.

From your experience, do you think it's possible to create a script that
will run/process the information or text in the body of the received email
and then extract the user entered data?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top