473,326 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

attachment appears as icon VB.Net/System.Web.Mail

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.SmtpServer = "yyy.yyy.com"
Mailmsg.To = "jo*@xxx.com"
Mailmsg.From = "\Joe Blow\"
Mailmsg.BodyFormat = MailFormat.Html
Mailmsg.Subject = "TEST"
Attachment = New MailAttachment("C:\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. I've tried setting
Mailmsg.body = "" and Mailmsg.BodyFormat = MailFormat.Text. Didn't change
anything.

Help very much appreciated !
Jul 21 '05 #1
2 1419
Have you tried to attach some other types files such as **.txt or
**.doc, try it and see the result.

Jul 21 '05 #2
tried various attachments, no difference
It amazes me that this works in VB6.

DotNOT....another example of not ready for prime time garabge produced by
Microsoft.....

"Eric" wrote:
Have you tried to attach some other types files such as **.txt or
**.doc, try it and see the result.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Cutlass | last post by:
Hello I'm using the following code to send mail from VB.NET 2003 oMail.SmtpServer = "xxx.xxx.com" Mailmsg.To = "joe@xxx.com" Mailmsg.From = "\Joe Blow\" Mailmsg.BodyFormat = MailFormat.Html...
0
by: Cutlass | last post by:
Hello I'm using the following code to send mail from VB.NET 2003 oMail.SmtpServer = txtSMTPServer.Text Mailmsg.To = "joe@xxx.com" Mailmsg.From = "\Joe Blow\" Mailmsg.BodyFormat =...
2
by: Cutlass | last post by:
Hello I'm using the following code to send mail from VB.NET 2003 oMail.SmtpServer = "xxx.xxx.com" Mailmsg.To = "joe@xxx.com" Mailmsg.From = "\Joe Blow\" Mailmsg.BodyFormat = MailFormat.Html...
2
by: Cutlass | last post by:
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.