Suddenly unable to send large emails from C# application

Hi can anyone help?
I have started to receive :
System.IndexOutOfRangeException: Index was outside the bounds of the array.
 at System.Net.Base64Stream.EncodeBytes(Byte[] buffer, Int32 offset, Int32 count, Boolean dontDeferFinalBytes, Boolean shouldAppendSpaceToCRLF)
   at System.Net.Base64Stream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Mime.MimePart.Send(BaseWriter writer)
   at System.Net.Mime.MimeMultiPart.Send(BaseWriter writer)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
When a large email is sent from a C#app on .NET4
I read that there is a hotfix for this issue, but I can't see to find it - all I get from MS Connect site is Page Not Found, can anyone help?

Hi john,
Thank you for posting in MSND forum.
Since
this forum is to discuss: Visual
Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
Based on your issue, it is related to the C# application,
so
I’m afraid that it is not the correct forum
for this issue.
To help you find the correct forum support this issue,
could you please tell me which kind of application you create using C# language? Is it a c# console application or others?
If possible, I suggest you could share the detailed coded about your issue so that we will better support this issue.
Thanks for your understanding.
Best Regards, 
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Upgraded to Mountain Lion a week ago suddenly unable to receive incoming emails from Mail.6

    Upgraded to Mountain Lion a week ago.  Suddenly unable to receive incoming emails from Mail.6
    Can successfully send outgoing messages. 
    Have completed following tasks to no avail:
    1)          When click on "Take all accounts online" and entering password for gmail / looking at Mail Connection Doctor: Got Green light, Mail was able to connect to the Internet. But…
    "Trying to log in to this Goggle Imap account failed.  Verify username and password are correct."
    I have verified username and password being correct. 
    2)          System Preferences > Mail, Contacts and Calendars typed in name, email address & gmail password and got this message.
    "Unable to verify account name and password."
    3)          Mail> preferences>account>password.  Confirmed correct password, name, email address and imap "address" Then to Advanced & confirmed correct port . Restarted computer.
    "lay person terms" appreciated. 
    Thanks!
    Laila

    Found solution, Yeay!   No coincidence.  Mountain Lion (osx 10.8, upgraded) is not compatible with Gmail if one has 2-step verification set up on their gmail security settings. 
    There are 2 options to solving problem
    1)   https://discussions.apple.com/message/19109209#19109209) 
    This will take you through the process to disable 2-step security feature on gmail security page. Thank You  iPatA.
    2)   http://support.google.com/accounts/bin/answer.py?hl=en&ctx=ch_b/0/SmsAuthConfig& answer=185833
    This will take you through the process of assigning an "application specific password" to upgraded Mail 6.0 for successful communication between Mail 6.0 Mountain Lion while keeping a 2 step verification process if you prefer. 
    Thanks for you energy & effort rkaufmann87.
    Sincerely, much appreciated. 
    I love this Apple community.

  • Unable to send any email from my brand new ipad 2 and my iphone 3gs lately

    Lately I found that my Iphone & my brand new ipad2 are unable to send out any email. it keep mentioning about the outgoing setting.."the connection to the outgoing server"webmail..." failed.Additional Outgoing mail servers can be configures in setting, bla bla bla
    .I try look for some advices from apple suport communities seems doesn't work for me...pls help...>_<

    Anyone can help?

  • Can't send large email from iphoto

    When trying to send a large photo from iphoto using the email button it asks for the the size but no matter what size I choose the email always sends in the smallest size.
    The larger sizes seem to flash by an I end up with a low resolution.
    I tried changing my iphoto preferences to use Entourage and it works as it should.
    This problem is not unique to my computer since a friend was having the same problem with her macbook so I was able to duplicate it on my imac.
    I am using  OS X 10.6.7

    Make a temporary, duplicate copy of the library and try the fix below :
    1 - delete  the iPhoto preference file, com.apple.iPhoto.plist, that resides in your Home/Library/Preferences folder. 
    2 - delete iPhoto's cache file, Cache.db, that is located in your Home/Library/Caches/com.apple.iPhoto folder. 
    3 - reboot, launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding the the Option key.  You'll also have to reset the iPhoto's various preferences.
    As a workaround you can set iPhoto to use Mail and then select one of Mail's photo stationary themes. Then you can select the size in the size menu at the bottom of the email window.
    Click to view full size
    That should let your file size stick.
    OT

  • Why am i suddenly unable to send/recieve email on LG Spectrum?

    I've had LG Spectrum for about a month.  All going well.  As of last night, can't send/recieve email. 

    Maybe you can help me out also. My brother has got the LG Spectrum and we cannot figure out a fix. Here's the steps we're trying to do to compose an email with Gmail and attach a photo file.
    Open Gmail app, get the inbox.
    Tap compose and get a compose email screen.
    Add a contact to send to.
    Tap the attach selection.
    Select Gallery. (Selecting Pictures only gives him pics which were transferred from his older phone by the Verizon rep.)
    Select a pic from the Gallery, but it opens the pic full screen.
    Tap the pic and it give the options to Delete, Share or More.
    This is where we are stumped. Why would it not just attach the pic when he tapped on it to select it and then take him back to the compose screen where he can send the email? It appears that the other generic 'Mail' program is taking over somehow. I could not find any way to set the Gmail app association on his 2.3.6 software version phone. He has no App Association selection available like I do with my HTC One phone.
    Any ideas?

  • Whts size limit of UTL MAIL VARCHAR2 can i send large mail from utl mail?

    hi
    i like to send email from oracle as attachment
    is there any facility to send large email from oracle UTL MAIL utlity
    and i want to attach my file to email which is on server at particular
    can i attach file directly from server?

    See, http://www.psoug.org/reference/utl_mail.html
    might help you.

  • Sending An email from BSP

    Hi All
    i need to send an email  from BSP application when check box is clicked .
    I have the details such as pernr of an employeee by using this i need to retrieve email id of that employee and have to send an email to that employee with some text
    1. How  to retireve email id of an employee using pernr 
    2.How to send email from bsp application
    Thanks

    Hi ,
    <b>To get the Email for the given PERNR:</b>
    * Get the Communication detail from Infotype 0105
          SELECT
           USRID_LONG
           FROM PA0105 INTO
             RECEIVER_EMAIL
           WHERE PERNR = PERNR AND
                 BEGDA <= SY-DATLO     AND
                 ENDDA >= SY-DATLO     AND
                 SUBTY = '0010'
    <b>Look at this code which will send a email from BSP..</b>
    DATA:
       SEND_REQUEST       TYPE REF TO CL_BCS,
       DOCUMENT           TYPE REF TO CL_DOCUMENT_BCS,
       SENDER             TYPE REF TO CL_SAPUSER_BCS,
       RECIPIENT          TYPE REF TO IF_RECIPIENT_BCS,
       EXCEPTION_INFO     TYPE REF TO IF_OS_EXCEPTION_INFO,
       BCS_EXCEPTION      TYPE REF TO CX_BCS,
       WA_MESSAGE TYPE BAPIRET2.
      DATA:
       LEN   TYPE I,
       TEXTLENGTH TYPE SO_OBJ_LEN,
       ITAB_MESSAGE TYPE SOLI_TAB,
       WA_SOLI TYPE SOLI.
    *Load class defnitions
      CLASS CL_CAM_ADDRESS_BCS DEFINITION LOAD.
      CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
    * Create persistent send request
      TRY.
          SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
    * Format the message content to be sent into internal table
          IF NOT MESSAGE IS INITIAL.
            WA_SOLI-LINE = MESSAGE.
            APPEND WA_SOLI TO ITAB_MESSAGE.
          ELSE.
            WA_MESSAGE-MESSAGE = `Enter some Message and then Click "Send Your Message" button.`.
            APPEND WA_MESSAGE TO RETURN.
            ERROR = 'X'.
            RETURN.
          ENDIF.
          LEN = STRLEN( MESSAGE ).
          TEXTLENGTH = LEN.
    * Create document
          CALL METHOD CL_DOCUMENT_BCS=>CREATE_DOCUMENT
            EXPORTING
              I_TYPE    = 'RAW'
              I_SUBJECT = SUBJECT
              I_LENGTH  = TEXTLENGTH
              I_TEXT    = ITAB_MESSAGE
            RECEIVING
              RESULT    = DOCUMENT.
    * Add document to send request
          CALL METHOD SEND_REQUEST->SET_DOCUMENT
            EXPORTING
              I_DOCUMENT = DOCUMENT.
    * Get sender object
          CALL METHOD CL_SAPUSER_BCS=>CREATE
            EXPORTING
              I_USER = SY-UNAME
            RECEIVING
              RESULT = SENDER.
    * Add sender
          CALL METHOD SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = SENDER.
    * Create recipient
          CALL METHOD CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS
            EXPORTING
              I_ADDRESS_STRING = RECEIVER
            RECEIVING
              RESULT           = RECIPIENT.
    * Add recipient with its respective attributes to send request
          CALL METHOD SEND_REQUEST->ADD_RECIPIENT
            EXPORTING
              I_RECIPIENT  = RECIPIENT
              I_EXPRESS    = ' '
              I_COPY       = ' '
              I_BLIND_COPY = ' '.
          SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
    * Send document
          CALL METHOD SEND_REQUEST->SEND
            RECEIVING
              RESULT = SENT.
          IF SENT IS NOT INITIAL.
            COMMIT WORK.
            WA_MESSAGE-MESSAGE = 'Your Message sent Successfully!!!'.
            APPEND WA_MESSAGE TO RETURN.
          ELSE.
            ERROR = 'X'.
            WA_MESSAGE-MESSAGE = 'Your Message could not be sent. Please try again later'.
            APPEND WA_MESSAGE TO RETURN.
          ENDIF.
        CATCH CX_ADDRESS_BCS .
        CATCH CX_SEND_REQ_BCS.
        CATCH CX_DOCUMENT_BCS.
          WA_MESSAGE-MESSAGE = 'Your Message could not be sent. Please try again later'.
          APPEND WA_MESSAGE TO RETURN.
          ERROR = 'X'.
      ENDTRY.
    Raja T

  • Can i send a email from application without using exchange server?

    Hello
    I am developing a 3 tier application using EJB, JSP....and i want to incorporate the mail sending facility.
    Can i send a email from the application without using exchange server?
    plzz help!!!!
    Pavan

    You will require some kind of SMTP server to be able to send mail from your app (not necessarily M$ exchange.) Just look for mail servers for the platform of your choice.
    Vijayan

  • On my imac, All of a sudden I am unable to send original emails with any attachments.  I can attach the file but when I try to send it, it won't send.  Also, if I am emailing back and forth as it gets longer, it no longer transmits

    On my imax, all of a sudden I am unable to send original emails with attachments of any size.  I can attached the file but when I try to transmit, it will not go.
    Also, if I am emailing back and forth, once there gets to be several threads, it will no longer transmit.  Any suggestions. I am using gmail in the apple mail system

    Mike,
    Are any of your other applications going wonky, or is it just Logic?
    I'm afraid I've never heard of this particular problem before, but if it were happening to me the first thing I would do is delete my "com.apple.logic.express.plist" file in Library>Preferences, then repair permissions in Disc Utility, and finally restart my computer.  Then I would launch Logic and see if the problem has been corrected.  It's amazing how much these two steps can accomplish.
    If that doesn't resolve the issue I would launch Logic and go to Preferences>Audio Units Manager to see if all my plug-ins are properly validated.

  • TS4009 before upgrading to Lion, I switched from MobileMe to iCloud.  At that time I used my MobileMe user name and password.  I purchased additional storage space to 20GB.  I was unabl to send any emails during this time.  After researching, I upgraded t

    before upgrading to Lion, I switched from MobileMe to iCloud.  At that time I used my MobileMe user name and password.  I purchased additional storage space to 20GB.  I was unable to send any emails during this time.  After researching, I upgraded to Lion and changed my icloud mail usuer name and password from the original I used from mobileme.  How do I get my upgraded storage to my new account.  I intend to delete the first one.
    Please help!

    Welcome to the Apple Community.
    Unfortunately you can't, the additional storage belongs to your first account, you can't transfer it.

  • I am unable to send e-mails from my Outlook

    Everything was working ok, for ages. Suddenly I am unable o send e-mails from my Outlook.
    "The message I get is: 'Unable to send the message. Please verify the e-mail Address in your account properties'.
    When I 'Send a Test Message' from Outlook, Tools, Accounts. All actions are completed besides sending a test message when I also get the instruction.

    Hi
    If it happened suddenly so possibly it was a virus?
    I dont know why you are not able to send the e-mails.
    I think you should check the email account properties. Check the data of you POP3 and SMTP server.
    Im not a outlook expert but this options should be found somewhere in the email account properties.
    The last possibility would be deleting of the email account under outlook and then a new creation of the new account.

  • Unable to send out emails via outlook express since 06/29/2010

    Task '[email protected]" - Sending' reported error (0x80042109) : 'Outlook is unable to connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'        This is a copy/paste of error message from Office Outlook  2003
    Our household has been unable to "send" outgoing emails since 06/29/2010.  This includes a wireless laptop and a PC. We both lost the ability to send emails same day.  We changed NOTHING and did not share emails with each other that would have corrupted our system. During this time I have had 2 Verizon techs dance around in the PC doing all the same things I did as well as what  the automated assistant did.  The last tech said the Outlook Express 6.0 was corrupted, and to unistall it and then reinstall;  this time 2 hours later, I think he just gave up).  That did not work either.  I tried using the Outlook Office and still got an error message for outging. Everything is set up as it was when it was working until 06/29/2010.  I was told that there was a new server being installed and that things wold be working by 07/02/2010... I have tried taking down the firewall, turning off virus protection (McAfee), changing from outgoing.yahoo.verizon.net to just outgoing.verizon.net, checking boxes, unchecked boxes. SMPT is set to 587.  We get incoming fine.  I hate using the "Verizon email site" as too much monkey motion to get to mail, but that's what we have been doing.  I even tried setting up a GMail account, again got mail still could not send.  Any ideas?

    Thank you for your response!  I even tried sending an email via dos prompt  with Telnet, got past "HELO", but when trying to get a  "RCPT TO"  (using outgoing.yahoo.verizon.net)  I got an "authorization required" response and then was dropped.  I have been passed around without a solution. I am about ready to change ISP, but really hate to as most of the time (years now) this has been a decent ISP. If Verizon is having a problem just say so, I can handle it, honesty would be nice, refreshing and not wasting so much of my time as well as the techs!

  • I cannot send Yahoo eMail from iPad or iPhone, but I can receive

    I cannot send Yahoo eMail from iPad or iPhone, but I can receive.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

  • Sending encrypted emails from the iPad is not working

    I can't get sending encrypted emails working on my iPad3 running iOS 8.0.2
    Let me explain what I did:
    1. I created S/MIME certificates for 2 email addresses on my iMac in Keychain Access. One email address exists only on the iMac the other only on the iPad.
    2. I set "When using this certificate" to "Always Trust" in both certificates.
    3. I exported 1 S/MIME certificate (p12) and installed it on the iPad. Then I deleted this certificate and its private&public keys in iMac Keychain Access
    4. I exchanged public certificates between the 2 devices. I installed one certificate in iMac Keychain Access and the other in iPad/Settings/General/Profiles.
    5. On the iMac in the iPad certificate I set "When using this certificate" to "Always Trust"
    6. I tested whether I can send and receive signed and/or encrypted emails
    Results:
    1. From the iMac I can send signed and/or encrypted emails to the iPad.
        On the iPad I can read the encrypted emails. The signature is not trusted
    2. On the iPad I can send signed messages to the iMac. On the iMac the signature is trusted.
        I cannot send encrypted emails from the iPad to the iMac. The iPad doesn't know about the public certificate in iPad/Settings/General/Profiles
    So much for the straight forward part. Now it gets a bit more complicated and confusing.
    1. I deleted the iMac certificate in the iPad/Settings/General/Profiles. Then in iPad Mail I opened the signed mail coming from the iMac.
        I viewed the untrusted certificate in Mail and installed it. From this point on all signed emails from the iMac are trusted.
        Strangely the by this method installed certificate doesn't appear in iPad/Settings/General/Profiles.
        Furthermore I still cannot send encrypted messages to the iMac. This certificate installation seems to be used only to check trust worthiness of the signature.
        Installing on top the iMac public certificate in iPad/Settings/General/Profiles doesn't enable to send encrypted messages from the iPad either.
    To be sure that this problem relates to the iPad certificate management and is not related to an error by me I did the following:
    1. I transferred a p12 file for a certificate that I created in my iMac to a PC running Windows7.
    2. I transferred a p12 file plus its public key (.pem) that I created in my iMac to another iMac into Keychain Access. (I have not tested if the pem is needed).
    3. On the other iMac and the PC I made sure that the certificates are trusted.
        On the PC that means in the Certificate Manager the p12 needs to be in the "Personal" folder and in the "Trusted Root Certification Authorities" folder.
        The public keys need to be in the "Trusted People" folder and the "Other People" folder. One can just copy/paste the certificates.
    4. In both cases I deleted the certificate and public/private keys on my iMac.
    5. I exchanged public certificates between the devices.
    6. I tested exchanging signed and/or encrypted emails between my iMac and the PC and my iMac and the other iMac.
    Result:
    1. I can send signed and/or encrypted emails to the other iMac and the PC
    2. The PC and the other iMac trust the signature from my iMac and can read the encrypted emails
    3. My iMac can read encrypted emails from the PC and the other iMac
    4. My iMac trusts emails with signatures from the PC and the other iMac.
    Everything is working as it should.
    After the above test I wanted to see whether I can set up encrypted email exchange between the iPad and the PC. Strangely iPad Mail recognized the public certificate from the PC installed in iPad/Settings/General/Profiles and allowed me to send an encrypted email to the PC. However, on the PC I was unable to read the encrypted email. And the other way around, encrypted emails send from the PC to the iPad cannot be read on the iPad.
    My conclusion from all this testing is that iPad mail encryption is still "under construction".

    I was able to resolve the above described problem to some degree. Setting up sending and receiving encrypted emails between iOS and OSX I have working.
    What is still not working is reading encrypted emails on the iPad/iOS8 received from Windows 7 PC. And sending encrypted emails to Windows 7 PC.
    The details about how I solved part of the problem are described here.

  • E72- Unable to send e-mail from work mailbox

    I am unable to send e-mails from my work e-mail through my E72 although it receives perfectly. I have been in contact with Nokia via e-mail for the last 2 weeks and they have sent several suggestions to solve the issue but nothing is working. I have set-up my work e-mail on my husbands Blackberry  with the same settings and can receive and send perfectly. From that I conclude there is no issue with the settings I have or my work e-mail but with
    Nokia!! The latest 'help' I have received was to download a patch but I have no idea how to do this and get it onto my phone. So far Nokia have not replied to me.
    Any suggestions how to get this to work would be greatly appreciated

    If you're using a much older firmware, updating the phone would be a good idea.  Find the Software Updates section of nokia.com and type your phone model.  If you can't do an over-the-air update, download and install either the OVI Suite or the standalone Software Updater.  This may hard reset the phone, so back up anything important with OVI Suite first.
    Ignoring firmware for now, IMAP and URL's are like apples and oranges.  If you work for a small company, the server may always be called " mail.mycompany.com", but IMAP will never use an HTTP or HTTPS prefix.  URL's are typically associated with Microsoft Exchange servers.  Within the email program, check Options -> Settings -> Mailbox settings -> Mailbox settings -> Advanced mailbox settings.  Are "Outgoing email settings" set to something like
    User authentication: Same as for incoming
    Outgoing mail server: <compare to the setting for the Incoming server name; in a small company this will likely be the same>
    Since you're getting far enough for the mail sever to reject your connection, the other settings should be fine as-is.
    It does look like an authentication issue, so I'd say you're either hitting the wrong server or there's a bad username or password in there somewhere.  If the Blackberry works with an IMAP connection, then you should be using the same server name(s), and user/password.
    If all else fails, you can always try removing and readding the mailbox completely.  Choose Menu -> Applications -> Email -> Settings -> <highlight your work account> -> Options -> Remove mailbox.  And then set it up from scratch.  I hope that helps a little!

Maybe you are looking for

  • CUP MSMP Work flow in GRC 10.0

    Hi GRC Experts, I am working on a MSMP Work flow requirement in GRC 10.0 and would appreciate any guidance/inputs on this. As per my requirement we would have to design a CUP Work flow in GRC 10.0 to decommission a user in 24-hours if the user has no

  • Organizing music with iTunes Problem

    Hi, I had downtime today at work, and I decided to organize my iTunes library. However, some tracks are showing up on the same album, but not grouped together. I have selected every option possible in the Get Info menu. I have done all I can think of

  • RFC PROBLEM IN ST03

    Hi experts when executing the transaction ST03N it is executing in expert mode but when i click on Detailed analasys>Last Minute's Load>Total right side i given all inputs like client no,user id and time after clicking enter it showing the below erro

  • How to make a thread NOT get interrupted by the CPU?

    Hello. Ok, maybe this might sound trivial, or may expose a fundamental lack in my understand of concurrency... But heres my problem. I have 2 threads running, both of the same type. After hours of breaking my head, I found out that the reason my prog

  • SPAM Update 30 Problem

    Hello! I have a little problem with my SPAM Update. I have two new installed ECC 6.0 systems (ABAP Stacks), one is the DEV system and the other one is the QAS system. The DEV system is the transporthost. On the DEV system all SPs are imported. Now I