?
Solved

error email attachment VB2010

Posted on 2014-03-20
5
Medium Priority
?
71 Views
Last Modified: 2016-05-19
I have been trying to solve a very perplexing problem I am experiencing with Visual Studio 2010 Net 4.5 using VB.NET code.

I am simply trying to send an email with an attachment to a single recipient.  The attachment must end with .sbd  as I am using it with the Iridium Satellite Network. This is no problem.  The .NET application is an assortment of .aspx files.  When I fire up the email client it accurately sends the mail and the attachment to any or all OTHER addressees except the Iridium addressee spits back a message

"The following mobile-terminated message was not queued for delivery:

IMEI: 300234010309710
Time: Thu Mar 20 17:39:38 2014

Reason: Attachment filename is missing

This behavior is VERY strange.  I have tried everything.  But to no avail.  Hope someone can help me solve this one.

I have included the source in the attachment.  No pun intended!

Thanks...
Attachment-Code.txt
0
Comment
Question by:planetarygrid
[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
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39948865
Does it work if you change this

testMessage.Attachments.Add(data)

to

testMessage.Attachments.Add("FilePath")

or

testMessage.Attachments.Add(New Attachment("FilePath"))

?
0
 

Author Comment

by:planetarygrid
ID: 39949018
No, it does NOT work!!!  As you may have noticed in my code, I am creating the attachment from a Stream.  Again, this DOES work and is recognized and received properly by other mail servers, but not the Iridium mail server.  I believe the attachment must be encoded Base64, however I cannot find any way to do that with .NET smtpClient namespace....
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 39949927
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

771 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