Outlook E-mail Forms?

N

Neil

Does Outlook have an e-mail "form" or "template" where the body of an e-mail
can be created, and just certain fields can be filled in, as particular to
the recipient?

What I am needing to do is create such a form (if possible), open Outlook
through Automation, and then populate certain fields with the data, and then
send the e-mail (or leave open for the user).

We are using Office XP, but may go to Office 2007 soon.

Thanks!

Neil
 
G

Guest

You can create boilerplate text by using Signatures and then just select the
one you want by choosing Insert, Signatures.
 
S

Steven M (remove wax and invalid to reply)

Does Outlook have an e-mail "form" or "template" where the body of an e-mail
can be created, and just certain fields can be filled in, as particular to
the recipient?

What I am needing to do is create such a form (if possible), open Outlook
through Automation, and then populate certain fields with the data, and then
send the e-mail (or leave open for the user).

I'm no expert, but I have been able to do this for my personal (not
company) installation of Outlook. One example: for spam complaints.
I click one button and a new email pops up, with a couple of addresses
already filled in and the words "Spam report:" in the subject line. I
do it without templates, just an Outlook macro.

It's a lot more difficult since Outlook doesn't have a macro recorder
(version 2000, anyway) like Word and Excel do, but I was able to find
some code online and modify it.



--
Steven M - (e-mail address removed)
(remove wax and invalid to reply)

"It ain't what folks don't know that gets 'em in trouble; it's
knowing so many things that ain't so."
-- Kin Hubbard, American humorist, 19th cent.
 
N

Neil

Thanks to both of you. I would be doing this from outside Outlook (through
Automation), and I would need to place text within the body of the e-mail,
e.g.:

Dear [ ]

Thank you for your [ ].

Regards,

[ ]

And so on.
 
S

Steven M (remove wax and invalid to reply)

I'm not sure about Automation, but here's what my VBA macro does to
generate my generic spam complaint. When I click a button, I get a
new email that includes the following in the body, plus a CC to the
FTC. It's followed here by the VBA code that creates it. Note that
the body text is assigned to the property "Body", and the CC address
is the "CC" property.

=== === === ===
The message below is unsolicited commercial email (spam).
It advertises the sale of prescription drugs.

Sending IP:

Web site promoted in spam:
Contact email listed in spam:

Hosted by:

Domain registration:

Original message, including full headers.
=== === === ===


Sub NewLart()

Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem

Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.CC = "(e-mail address removed)"
.Subject = "Spam report: "
.Body = "The message below is unsolicited commercial email
(spam)." & Chr(13) & _
"It advertises the sale of prescription drugs." & Chr(13) & _
Chr(13) & _
"Sending IP:" & Chr(13) & _
Chr(13) & _
"Web site promoted in spam:" & Chr(13) & _
"Contact email listed in spam:" & Chr(13) & _
Chr(13) & _
"Hosted by:" & Chr(13) & Chr(13) & _
"Domain registration:" & Chr(13) & Chr(13) & _
"Original message, including full headers."
End With
myOLItem.Display

End Sub




Thanks to both of you. I would be doing this from outside Outlook (through
Automation), and I would need to place text within the body of the e-mail,
e.g.:

Dear [ ]

Thank you for your [ ].

Regards,

[ ]

And so on.


Steven M (remove wax and invalid to reply) said:
I'm no expert, but I have been able to do this for my personal (not
company) installation of Outlook. One example: for spam complaints.
I click one button and a new email pops up, with a couple of addresses
already filled in and the words "Spam report:" in the subject line. I
do it without templates, just an Outlook macro.

It's a lot more difficult since Outlook doesn't have a macro recorder
(version 2000, anyway) like Word and Excel do, but I was able to find
some code online and modify it.



--
Steven M - (e-mail address removed)
(remove wax and invalid to reply)

It is criminal to steal a purse, daring to steal a fortune,
a mark of greatness to steal a crown. The blame
diminishes as the guilt increases.
-- Johan Christoph Friedrich von Schiller
 
N

Neil

Thanks. Yeah, that would work. But what I'm needing is something the user
can create (via a form or whatever) and apply formatting to, etc. Thanks for
your help.

Neil


Steven M (remove wax and invalid to reply) said:
I'm not sure about Automation, but here's what my VBA macro does to
generate my generic spam complaint. When I click a button, I get a
new email that includes the following in the body, plus a CC to the
FTC. It's followed here by the VBA code that creates it. Note that
the body text is assigned to the property "Body", and the CC address
is the "CC" property.

=== === === ===
The message below is unsolicited commercial email (spam).
It advertises the sale of prescription drugs.

Sending IP:

Web site promoted in spam:
Contact email listed in spam:

Hosted by:

Domain registration:

Original message, including full headers.
=== === === ===


Sub NewLart()

Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem

Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.CC = "(e-mail address removed)"
.Subject = "Spam report: "
.Body = "The message below is unsolicited commercial email
(spam)." & Chr(13) & _
"It advertises the sale of prescription drugs." & Chr(13) & _
Chr(13) & _
"Sending IP:" & Chr(13) & _
Chr(13) & _
"Web site promoted in spam:" & Chr(13) & _
"Contact email listed in spam:" & Chr(13) & _
Chr(13) & _
"Hosted by:" & Chr(13) & Chr(13) & _
"Domain registration:" & Chr(13) & Chr(13) & _
"Original message, including full headers."
End With
myOLItem.Display

End Sub




Thanks to both of you. I would be doing this from outside Outlook (through
Automation), and I would need to place text within the body of the e-mail,
e.g.:

Dear [ ]

Thank you for your [ ].

Regards,

[ ]

And so on.


"Steven M (remove wax and invalid to reply)"
Je Thu, 12 Jul 2007 19:42:26 GMT, "Neil" <[email protected]> skribis:

Does Outlook have an e-mail "form" or "template" where the body of an
e-mail
can be created, and just certain fields can be filled in, as particular
to
the recipient?

What I am needing to do is create such a form (if possible), open
Outlook
through Automation, and then populate certain fields with the data, and
then
send the e-mail (or leave open for the user).

I'm no expert, but I have been able to do this for my personal (not
company) installation of Outlook. One example: for spam complaints.
I click one button and a new email pops up, with a couple of addresses
already filled in and the words "Spam report:" in the subject line. I
do it without templates, just an Outlook macro.

It's a lot more difficult since Outlook doesn't have a macro recorder
(version 2000, anyway) like Word and Excel do, but I was able to find
some code online and modify it.



--
Steven M - (e-mail address removed)
(remove wax and invalid to reply)

It is criminal to steal a purse, daring to steal a fortune,
a mark of greatness to steal a crown. The blame
diminishes as the guilt increases.
-- Johan Christoph Friedrich von Schiller
 

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