Results 1 to 4 of 4

Thread: Error sending e-mail using MAPI

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    3

    Error sending e-mail using MAPI

    I am using MAPI controls to send e-mails from my visual basic appplication.
    All these days my e-mails were having only attachments, no message in the
    e-mail body and the application was working fine. Recently I added message
    to e-mail body of about 220 chars in length, from then it is giving following
    error while sending the message from the application.

    An unknown error has ocuured. Subject ...........
    ........., Account:......, Server:......, Protocol: SMTP, Server
    Response: '550 This message contains a broken MIME container (uuencoded
    line length is not a multiple of 4 characters).', Port: 25, Secure(SSL): No,
    Server Error: 550, Error Number: 0x800CCC69

    The above message appears in OUTLOOK EXPRESS Error window.
    Please suggest a solution?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Error sending e-mail using MAPI

    You should post your code when you have a problem that you want someone to fix. It's hard to guess what you have.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    3

    Re: Error sending e-mail using MAPI

    My code is like this
    VB Code:
    1. Private Sub sendMsg()
    2. Private Sub sendMsg()
    3. MAPISess.LogonUI = True
    4. MAPISess.DownLoadMail = False
    5. MAPISess.SignOn
    6. MAPIMess.SessionID = MAPISess.SessionID
    7.  
    8.  
    9. 'Open and Read Sequential File Containing File Name and E Mail Address(Created By another Program)
    10. Open "C:\temp\temp.abc" For Input As #1
    11. Do While Not EOF(1)
    12.     Input #1, file1,file2,email_addr,file_path
    13.            
    14.         'Clear Send Buffer
    15.         MAPIMess.Compose
    16.         MAPIMess.MsgIndex = -1
    17.    
    18.         'Define Recipients Address
    19.         MAPIMess.RecipIndex = 0
    20.         MAPIMess.RecipAddress = email_addr
    21.         MAPIMess.RecipType = 1
    22.        
    23.  
    24.         'Define Attachmanents (Data File)
    25.         MAPIMess.AttachmentIndex = 0
    26.         MAPIMess.AttachmentName = Trim(file1)
    27.         MAPIMess.AttachmentPathName = file_path
    28.         MAPIMess.AttachmentType = mapData
    29.  
    30.         MAPIMess.AttachmentIndex = 1
    31.         MAPIMess.AttachmentName = file2
    32.         MAPIMess.AttachmentPathName = file_path
    33.         MAPIMess.AttachmentType = mapData
    34.        
    35.        
    36.         'Define Subject
    37.         MAPIMess.MsgSubject = "some subject"
    38.  
    39.         MAPIMess.MsgNoteText = "    We herewith attach a file containing " & _
    40.         "Ref. No.: 5658/A57757/13232/1 & _
    41.         " dated " & Format(aDate, "DD/MM/YYYY") & "." & vbCrLf & _
    42.         "We request you to process the file and give us feedback," & vbCrLf & " " & vbCrLf & "Manager," & vbCrLf & "xyz Ltd."
    43.        
    44.         'Send Message
    45.         MAPIMess.Send
    46.     End If
    47. Loop
    48. Close #1
    49. MAPISess.SignOff
    50. MsgBox "Process over"
    51. End Sub

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Error sending e-mail using MAPI


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width