[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Untitled Attachment in outlook when using system.web.mail namespace

Posted on 2003-11-10
3
Medium Priority
?
1,240 Views
Last Modified: 2007-12-19
Hello there,
I got following situation here:
I am dynamically creating an *.mht file on my server which send needs to be send to a recipient by e-mail. So I'm creating the e-mail on the server with following code
Dim msg As New System.Web.Mail.MailMessage
Dim smtp As System.Web.Mail.SmtpMail
smtp.SmtpServer = mailsvr
msg.To = "..."
msg.From = "..."
....
msg.Attachments.Add(New System.Web.Mail.MailAttachment(strMhtPath)
msg.Send()

The Message arrives at the recipient. It does have an Attachment, but without name i.e. an "Untitled Attachment". When I open the file I can see the contents of the mht. So it is transmitted correctly. However, I absolutely need to have the file Name to show up. I can't sell it like this to my boss :-)
The filename is included in the mail's header, so that seems a little bit weird to me.
Hope someone can help me out here
0
Comment
Question by:rizzimanni
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 9723039
I don't know if this will help you, but I have VS.NET 2003, and I ran this with an attachment, and the file name was present in the attachment.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10256723
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: TheLearnedOne {http:#9723039}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question