• Subject: send email thru VB
  • Author: Jean-Claude
  • Date: 18 Dec 2011
  • References:
Hello, I have a VB Script (but if you have the solution for VBA, I think I can adapte it) and trying to send a mail with Outlook 2003 (first default account in POP3, secondary account (shared at the office) Exchange) from the script : Set objMAIL = CreateObject("outlook.application") Set mail = objMAIL.CreateItem(0) mail.To = "..." mail.Subject = "..." mail.Body = "..." mail.Display Ok, it's fine, the mail is displayed, I can send it. But, how can I change the account used to send it, not to keep the default ? (manually no problem of course, but in the script...) Something like : mail.Sender = me@xxx.com ? I could use CDO to do it, but I prefer to use the Outlook object in my case. I didn't found in internet. Any ideas ? Thanks. Jean-Claude
18 Dec 2011send email thru VB.Jean-Claude
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)