Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

error email attachment VB2010

Posted on 2014-03-20
5
Medium Priority
?
79 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

636 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