.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Send Mail Promting throw out-look

Posted By: Ajesh Rawat     Posted Date: April 01, 2010    Points:2   Category :Windows Application
Dear all,
> I have done a Outlook Automation in my program. using these codes:

> loOutlook = Create('Outlook.Application')
> loSpace = loOutlook.GetNameSpace('Mapi')
> loInbox = loSpace.GetDefaultFolder(6)
> loNewItem = loOutLook.CreateItem(0)
> With loNewItem
> .subject = mhdg
> .To = schhdr.emailid
> .Attachments.Add(docname)
> .cc = ' && carbon copy here
> .Send

> When I run this program in Outlook XP it gives 'A program is trying to automatically send email on your behalf. Do you want to allow this?'. How to remove this Dialog box?. Please help me.

Author: Sagar Pardeshi             
Posted Date: April 02, 2010     Points: 5   

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend