Our OUTLOOK in the domain user computer need to Exchange account password when it is open,
VBA operating OUTLOOK automatically send mail, start OUTLOOK to the password? I want to fill in the corresponding account automatically by the VBA password, don't know where attribute configuration code,
Sub SENDMAIL () Dim ou As Object Dim oua As Object The Shell "outlook. Exe " The Set ou=CreateObject (" outlook. Application ") The Set oua=ou. The createitem (0) With oua To="[email protected] " The Subject="Hello" The body="Send Test" . Send End With End Sub CodePudding user response:
Outlook: VBA tutorial Logon method
CodePudding user response:
reference 1st floor Tiger_Zhao response: Outlook VBA tutorial: Logon method This seems to exchange login does not work CodePudding user response:
MAPI exchange open ah, CodePudding user response:
reference Tiger_Zhao reply: 3/f open MAPI exchange, Have been using MAPI way to log in CodePudding user response:
reference Tiger_Zhao reply: 3/f open MAPI exchange, Looked at the password only configuration document password, not exchange the login password CodePudding user response:
It is the same password, Outlook of a configuration file association an email account, the password is the email password, There is no password configuration file yourself, CodePudding user response:
refer to 6th floor Tiger_Zhao response: is the same password, Outlook of a configuration file association an email account, the password is the email password, Configuration file is no password, According to the writing will pop up to enter the password dialog box CodePudding user response:
Try: use Outlook connection first time, enter the password when choose to remember the password, CodePudding user response:
refer to the eighth floor Tiger_Zhao response: try: use Outlook connection first time, enter the password when choose remember password, We have a few computer is not inside the domain, so remember password option doesn't work, every time to open the is need password If the OUTLOOK is even on the exchange server by vba control sending mail is normal, now is don't think if OUTLOOK to open or connected to the exchange server, how to enter the password this step vba to realize the password input is a little problem, manually enter the also can continue to follow-up email code CodePudding user response:
Should join the domain or set up the trust between the domain, Or Outlook account cancellation "use safety login password authentication (SPA)" option to try, CodePudding user response:
references to the tenth floor Tiger_Zhao response: should join a domain or set up the trust between the domain, Or Outlook account cancellation "use safety login password authentication (SPA)" option a try, Exchange landing configuration when I didn't see this option CodePudding user response:
references to the tenth floor Tiger_Zhao response: should join a domain or set up the trust between the domain, Or Outlook account cancellation "use safety login password authentication (SPA)" option a try, This should be the STMP/pop way option CodePudding user response:
Outlook configuration options,