|
-
August 20th, 2004, 03:28 AM
#1
Microsoft Oulook
Hi,
I have a problem with sending mail via Microsoft Outlook. When I click Send button my app sends mail to recipient, but e-mail have been stuck in Outlook's Outbox. When I click on Send&Receive, in Outlook, e-mail will be send to recipent's address. Can I avoid that process? I would have to send mail automatically from my app without pressing on Send&Receive button in Outlook.
Regards,
Jovan
Option Explicit
-
August 20th, 2004, 05:20 AM
#2
There have been quite a few postings here re VB and Outlook, so you may find something here.
Have you looked at CDO?
JP
Please remember to rate all postings. 
-
August 20th, 2004, 06:17 AM
#3
jp140768; please do not make useless postings such as the one above.. if you cannot propose a solution, then saying "the solution is probably here somewhere" is not appropriate. this forum does not need a bellhop or welcomer, thanks..
-
August 20th, 2004, 06:20 AM
#4
Hi Jovan,
Just to check some code with you, are you using a reference to Micrsoft Outlook or are you using the MAPI Controls in VB ?
Below is example of code I use , using the reference to the MS Oulook Library.
Code:
Dim ol As Outlook.Application
Dim m_Item As Outlook.MailItem
Set m_Item = ol.CreateItem(olMailItem)
m_Item.Subject = "Email Subject"
m_Item.Body = "This is an example Email"
m_Item.Recipients.Add "Ken Judge"
m_Item.Send
Set m_Item= Nothing
Set ol = Nothing
One thing I have noticed is when I was checking this code, If I was in the Outbox and highlighted an email waiting to be sent, it would change it from being Italic to Standard, thought nothing of it, until I noticed the email was never sent until I re-clicked the Send/Receive button. Just something I noticed ....
-
September 23rd, 2004, 10:22 PM
#5
Re: Microsoft Oulook
 Originally Posted by Judgey
Hi Jovan,
Just to check some code with you, are you using a reference to Micrsoft Outlook or are you using the MAPI Controls in VB ?
Below is example of code I use , using the reference to the MS Oulook Library.
Code:
Dim ol As Outlook.Application
Dim m_Item As Outlook.MailItem
Set m_Item = ol.CreateItem(olMailItem)
m_Item.Subject = "Email Subject"
m_Item.Body = "This is an example Email"
m_Item.Recipients.Add "Ken Judge"
m_Item.Send
Set m_Item= Nothing
Set ol = Nothing
One thing I have noticed is when I was checking this code, If I was in the Outbox and highlighted an email waiting to be sent, it would change it from being Italic to Standard, thought nothing of it, until I noticed the email was never sent until I re-clicked the Send/Receive button. Just something I noticed ....
I've tried this, but when VB tried to execute this code, it doesn't know what Outlook.Application is nor the olMailItem
I've added the Project Refernces to the Microsoft Outlook Object Library.
-
September 23rd, 2004, 11:27 PM
#6
Re: Microsoft Oulook
Are you using Outlook or Outlook express? If it's express, there is an option under "Tools"->"Options"->"Send"-."Send emails imediately" that you may need to check.
I can't find the option, if it exists, in Outlook, but maybe this helps a little.
-
September 24th, 2004, 02:04 AM
#7
Re: Microsoft Oulook
Here is a usefull thread in this forum:
http://www.codeguru.com/forum/showth...hreadid=209216
You could also check the FAQ from this forum
notice that Outlook will still say that another application wants to send an e-mail on your behalf. If u want that gone too there is some more work to be done and requires a dll to be registered. Pls. post here if you want more details regarding this.
Hope it helps!
You liked it? Please show your gratitude and rate it!
There is no 'patch' for stupidity.
-
September 24th, 2004, 10:26 AM
#8
Re: Microsoft Oulook
Hi VMA,
If you know how to stop those popups I'd appreciate the information. I tried creating an add-in which would scan my mail and remove all mails from my inbox where the sender was not in a database I set up, but I kept getting messages about an application trying to access my mail / address book (don't remeber), and I had to select an amount of time to allow it for.
I could not find a way of making my application for example a trusted application.
Thanks for any assistance.
JP
JP
Please remember to rate all postings. 
-
September 27th, 2004, 02:26 AM
#9
Re: Microsoft Oulook
here is a helpfull link from where I learned how Outlook Redemption works, also.
Microsoft Outlook Forms Security Issues for Developers
You liked it? Please show your gratitude and rate it!
There is no 'patch' for stupidity.
-
September 27th, 2004, 02:10 PM
#10
Re: Microsoft Oulook
 Originally Posted by Zeb
Are you using Outlook or Outlook express? If it's express, there is an option under "Tools"->"Options"->"Send"-."Send emails imediately" that you may need to check.
I can't find the option, if it exists, in Outlook, but maybe this helps a little.
I"m using the Full Outlook.
I have Send immediately checked, but I dont think this is going to affect whether the Outlook program appears or not. Do you ?
-
October 13th, 2004, 07:04 PM
#11
Re: Microsoft Oulook
To avoid popup in outlook express i unchecked this:
Tool, Options, Security, Warn me when other applications try to send mail as me
Check if you have something like this in outlook
-
October 13th, 2004, 07:19 PM
#12
Re: Microsoft Oulook
If you have option to send/receive every so many minutes set the emails will go then.
Denis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|