Mail attachment appears as icon

G

Guest

Hello
I'm using the following code to send mail from VB.NET 2003

oMail.SmtpServer = "xxx.xxx.com"
Mailmsg.To = "(e-mail address removed)"
Mailmsg.From = "\Joe Blow\"
Mailmsg.BodyFormat = MailFormat.Html
Mailmsg.Subject = "TEST"
Attachment = New MailAttachment(sDirectory & "\manifest.txt")
Mailmsg.Attachments.Add(Attachment)
oMail.Send(Mailmsg)

The attachment shows up as an icon in the message body when viewed in
Outlook. How do I make the attachment appear in the "header" and not as
an icon in the body? I need the body to be blank.

Help very much appreciated !
 
B

Bernie Yaeger

Hi Cutlass,

I never experienced this. My guess is you should set mailmsg.body to " "

HTH,

Bernie Yaeger
 

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