I'm using MAPI to send e-mail with attachments on our Novell network (GroupWise E-mail). Works fine as long as I don't send anything to the internet - the message goes thru but the attachments are lost (unless they are text files). It seems as if a pointer is attached instead of the actual file. Here's the code I'm using:
Private Sub cmdExit_Click()
Private Sub cmdSend_Click()
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.MsgIndex = -1
' MAPIMessages1.RecipDisplayName = "PEOPLE@OURDOMAIN.OURPO" 'This works fine
MAPIMessages1.RecipDisplayName = "gwia:" + """" + "firstname.lastname@example.org" + """" 'This will not keep attachments unless text
MAPIMessages1.MsgSubject = "This was done with vb"
MAPIMessages1.MsgNoteText = "This e-mail generated and sent entirely with vb....."
MAPIMessages1.AttachmentPathName = "c:\filename.htm"
MAPIMessages1.AttachmentName = "filename.htm"
Private Sub Form_Load()
MAPISession1.UserName = "Novell Default Settings"
I've tried MAPIMessages1.AttachmentType = 0, 1 and 2 to no avail. The only type of file that seems to go thru to the internet is text. I need to send HTML attachments. Any ideas?