Hello
I'm using the following code to send mail from VB.NET 2003
Imports System.Web.Mail
..
..
Dim oMail as System.Web.Mail .SmtpMail
Dim Attachment as System.Web.Mail .MailAttachment
Dim Mailmsg as New System.Web.Mail .MailMessage
oMail.SmtpServe r = "yyy.yyy.co m"
Mailmsg.To = "jo*@xxx.co m"
Mailmsg.From = "\Joe Blow\"
Mailmsg.BodyFor mat = MailFormat.Html
Mailmsg.Subject = "TEST"
Attachment = New MailAttachment( "C:\manifest.tx t")
Mailmsg.Attachm ents.Add(Attach ment)
oMail.Send(Mail msg)
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. I've tried setting
Mailmsg.body = "" and Mailmsg.BodyFor mat = MailFormat.Text . Didn't change
anything.
Help very much appreciated !