[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

error email attachment VB2010

Posted on 2014-03-20
5
Medium Priority
?
84 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
  • 2
3 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

834 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