Help with macro to create new message

  • Thread starter Steven M (remove dirt to reply)
  • Start date
S

Steven M (remove dirt to reply)

I have a macro in Outlook 2000 that automatically opens a spam
complaint message. A simplified version is included at the bottom of
this message.

The words "nanas" and " are for spam sightings posted via email
to the Usenet group, news.admin.net-abuse.sightings. The actual body
is much longer than this, and not relevant here.

I can't say I understand every detail, especially the first three
lines, but it works.

However, it could be better.

One, I send all spam complaints using a "From" address that is not my
default email. How can I set up the new message that is being
created, to use a different "From:" address? Several times I've
finished writing my complaint and pressed Send, using my default
address, and accidentally exposing that address to spammers.

Two, the default message that is created with this macro is in RTF
format. I try to send using Plain Text, but I have not been able to
get the macro to convert the new message to that format before sending

Thanks for any suggestions.


' ================================================
Sub NewLart()

Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem
Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.To = "nanas"
.Subject = "[Email] "
.Body = "The message below is unsolicited advertising email."
End With
myOLItem.Display

End Sub
' ================================================
 
L

Leon Mayne

Steven said:
Two, the default message that is created with this macro is in RTF
format. I try to send using Plain Text, but I have not been able to
get the macro to convert the new message to that format before sending

If you are using Office XP/2003 then you can put:
..BodyFormat = olFormatPlain
In your with statement. Otherwise you'll have to change your default message
format to plain text
 

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