Focus Shifting when Using SMTP protocol to send e-mail (1 Viewer)

RogerCooper

Registered User.
Local time
Today, 01:14
Joined
Jul 30, 2014
Messages
284
I have a program that generates e-mails automatically using the SMTP protocol. My problem is that if I am working on the same machine, the e-mails being generating gain focus, so what I am typing goes into the automatically generated e-mails.

Is there anyway to prevent the focus from shifting to the generated e-mail?

Unfortunately, I can't use the POP protocol, because Access requires manual approval for e-mails sent by POP and the ClickYes program is being blocked by our current security protocols.
 

Gasman

Enthusiastic Amateur
Local time
Today, 09:14
Joined
Sep 21, 2011
Messages
14,253
POP is for receiving mail.
SMTP is for sending.

Are you displaying the actual emails.? In outlook, you can just send, so you never get to see them, they just appear in your Outbox.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 03:14
Joined
Feb 28, 2001
Messages
27,156
If you want to silently send mail using SMTP, look up CDO.

This article is for O365 but the same ideas worked for me using Access 2010.


Here's an article for Excel, but it uses VBA and will work just fine.

 

Users who are viewing this thread

Top Bottom