Sorry, i messed up with the previous mail..

Please find some vb source as follows::

Dim objSession As MAPI.Session
Dim objMessage As MAPI.Message
Dim objOneRecip As MAPI.Recipients

sub cmdsend_click()
Dim oOutLookApp As New Outlook.Application
Dim oOutlookNameSpace As Outlook.NameSpace
Dim newMail As Outlook.MailItem
   
Set oOutlookNameSpace =OutLookApp.GetNamespace("MAPI")
    
Set newMail = oOutLookApp.CreateItem(olMailItem)
With newMail
      .Subject = "Sample..."
      .Body = "Test Mail..."
      With .Recipients.Add("[EMAIL PROTECTED]")
         .Type = olTo
         If Not .Resolve Then
            MsgBox "Unable to resolve address."
            Exit Sub
         End If
      End With
     .Send
End With

        
Unload Me
exit sub

This code works for me in VB. 

can't there be a corresponding code in asp using
vbscript?






   Regards,  Aswin.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to