Mapi
Mapi
Mapi
Mapi
Mapi
Mapi Mapi Mapi Mapi Mapi Mapi Mapi Mapi
Mapi Mapi
Mapi
Go Back  Xtreme Visual Basic Talk > > > Mapi


Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2010, 09:44 PM
nightwalker83 nightwalker83 is offline
Newcomer
 
Join Date: Jul 2010
Posts: 2
Default Mapi


Edit by Moderator: Split from this thread


Quote:
Originally Posted by DaftasBrush View Post
"By coincidence", I've been having the same problem.....

I need to "simply"... create an email, with recipient, subject, message and possibly an attachment.. but then have it displayed to the user (before sending)
Hi,

I tried you module in my project but I receive an error 11. This is the code I have:

Code:
'Send the message.
  Dim r() As String, a() As MyMapiFile, ret As Long
  ReDim r(1)
  ReDim a(0)
  r(0) = txtTO.Text
  a(0).Filename = Filename
  a(0).PathName = frmAttachments.CDFiles.Filename
  ret = SendMail(r(), txtSubject.Text, txtBody.Text, a())
  If ret <> 0 Then MsgBox "Send Mail Error " & ret
Thanks,


Nightwalker

Last edited by Flyguy; 07-06-2010 at 02:47 AM. Reason: Please don't reply to threads older than 30 days as they are considered archived.
Reply With Quote
  #2  
Old 07-06-2010, 09:25 PM
nightwalker83 nightwalker83 is offline
Newcomer
 
Join Date: Jul 2010
Posts: 2
Default

The problem occurs when there is no file to send! Now to figure out a solution.

Edit:

Using the original code:

http://support.microsoft.com/kb/163216

Doesn't have that problem.

Last edited by nightwalker83; 07-07-2010 at 12:38 AM. Reason: Adding more!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Mapi
Mapi
Mapi Mapi
Mapi
Mapi
Mapi Mapi Mapi Mapi Mapi Mapi Mapi
Mapi
Mapi
 
Mapi
Mapi
 
-->