Hello everybody,
OK, here's the thing, I know how to send the email, problem is, when I try to add the DEFAULT signature.
If I leave it as is, the body doesn't show up, and when I get it to show the body of the message, the signature won't come up.
Can't seem to figure out how to do this, I've been trying all day, looked in the internet in many many sites, and always have the same result as with my code.
If I change the order slightly, I get it to open the email (and I can see the signature there) for a split second, and then, the body is replaced with my sting.
Is there a way to add my string without loosing the default signature?
Thank you in advance.
Cheers!
OK, here's the thing, I know how to send the email, problem is, when I try to add the DEFAULT signature.
If I leave it as is, the body doesn't show up, and when I get it to show the body of the message, the signature won't come up.
Code:
Sub Mail1()
Dim OApp As Object
Dim OMail As Object
Dim strbody As String
Set OApp = CreateObject("Outlook.Application")
Set OMail = OApp.CreateItem(0)
strbody = "<B>Hello World!</B></H3>" & _
"Goodbye"
On Error Resume Next
With OMail
.display
.To = ""
.CC = ""
.BCC = ""
.Subject = ""
.HTMLBody = strbody & "<br>" & .HTMLBody
.send
End With
On Error GoTo 0
Set OMail = Nothing
Set OApp = Nothing
End Sub
Can't seem to figure out how to do this, I've been trying all day, looked in the internet in many many sites, and always have the same result as with my code.
If I change the order slightly, I get it to open the email (and I can see the signature there) for a split second, and then, the body is replaced with my sting.
Is there a way to add my string without loosing the default signature?
Thank you in advance.
Cheers!