Solved

error email attachment VB2010

Posted on 2014-03-20
5
56 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 500 total points
ID: 39949927
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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
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 how to dynamically set the form action using jQuery.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

732 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