Solved

error email attachment VB2010

Posted on 2014-03-20
5
27 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now