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


Top 5 Contributors of the Month
david stephan

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
> ENDWITH
>

> 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.

Responses
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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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