Rob Kennedy wrote: >Jerry wrote: > > >>This is the code, below, for the function I'm using and although it will >>allow me to create and send an e-mail, it is the sending part that is >>causing me trouble. It pops up the e-mail window complete with all fields >>filled out, including the body of the e-mail but it requires the user to >>click on SEND to finally send it. >> >>I need to have no intervention at all and hope some one can help me achieve >>this. >>I feel the problem lies with the flags in this line of code.... >> >> > >You're testing with Outlook, aren't you? I think it was Outlook 2003 >that changed the way it responds to commands from external programs. It >no longer allows programs to send e-mail through it without the user >knowing. I guess it's to prevent e-mail worms from propagating. > >There is a hack available that will disable Outlook's confirmation >measures. I would frown upon, and probably uninstall, software that >installed hacks on my computer, so I can't recommend that you rely on >that patch to make your program work as you intend. > >Instead, you can send the e-mail from within your own program. The code >you posted looked simple (much simpler than I thought MAPI would be, >actually), but if you use Indy's SMTP component, it can be even simpler. >Your program will need to know the user's SMTP settings -- which server >to connect to, the user name, and the password. > > > I had the same problem and i downgraded to an older Outlook (version 2000 SR-(9.0.0.3821) ), and it is working well.
Obviously, i could use a Indy's SMTP component or other, but users have Outlook installed and they use intensively their Outlook mailbox... HTH c.devise _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

