A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Sending mail with attachment from my vb6 addin



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 12th 06, 02:40 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 1
Default Sending mail with attachment from my vb6 addin

Hi,

i've programmed an addin in VB6 which is sending mail from our CRM
system automatically.

The addin works fine, that means that it's doing what I want it to do.

When the addin is installed on a system with outlook 2000 (SMTP/POP3)
the attachment arrives at the recipient correct but when outlook 2003
(SMTP/POP3) is installed, the attachment is sent as winmail.dat and of
course some systems are not able to open it.

When the addin is installed on a system with outlook 2003 in
combination with Exchange 2000/2003 the attachment is correct again.

Here is an example of my code:
---------------------------------------------------------------------------------------------------------
Set olMsg = m_olApp.CreateItem(olMailItem)
olMsg.Subject = ls_Subject

olMsg.To = ls_Name + "" + ls_Address + ""
olMsg.Body = m_sMailBody + vbNewLine + vbNewLine

If Left(m_olApp.Version, 2) = "11" Then
olMsg.BodyFormat = 1 'PlainText
End If

olMsg.Save
olMsg.Attachments.Add ls_FileName, olByValue, Len(olMsg.Body) - 1

olMsg.Send
---------------------------------------------------------------------------------------------------------

Thanks a lot for your help and answers.

Henrik

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending custom form item as mail attachment to person outside org DougMunday Outlook - Using Forms 4 April 13th 06 09:02 PM
Help sending a 2.4 MB video attachment Glenda Outlook Express 5 April 6th 06 08:43 PM
Addin HELP - Preview Pane, where is the mail event? Joey Outlook - Using Forms 0 March 17th 06 01:29 AM
(Noob) VB6 COM Addin Question Mike K Add-ins for Outlook 2 March 15th 06 05:33 PM
sending exel file as attachment Rami Outlook - Installation 1 February 23rd 06 03:51 PM


All times are GMT +1. The time now is 11:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.