A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sending E-mail from an account that is not logged in



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2010, 09:02 PM posted to microsoft.public.access
Steve[_91_]
external usenet poster
 
Posts: 3
Default Sending E-mail from an account that is not logged in

I am currently writing a macro in Access 2007 with VBA. Is there a way
to send e-mail from an exchange account that is not currently logged
into Outlook? I’m able to send e-mail using my account, but other
users will be running the macro and I’d like to have it so that the
mail sends from a reporting e-mail account (without having them log
directly into that account).

Thanks!
  #2  
Old March 17th, 2010, 02:01 AM posted to microsoft.public.access
Paul Shapiro
external usenet poster
 
Posts: 635
Default Sending E-mail from an account that is not logged in

"Steve" wrote in message
...
I am currently writing a macro in Access 2007 with VBA. Is there a way
to send e-mail from an exchange account that is not currently logged
into Outlook? I’m able to send e-mail using my account, but other
users will be running the macro and I’d like to have it so that the
mail sends from a reporting e-mail account (without having them log
directly into that account).


I'm not sure it does what you want, but look up SendUsingAccount in the
Outlook object model. From the online help: "The SendUsingAccount property
can be used to specify the account that should be used to send the MailItem
when the Send method is called." I presume the logged-in account must have
"send-as" permission for that Exchange account.

  #3  
Old March 17th, 2010, 04:55 AM posted to microsoft.public.access
[email protected]
external usenet poster
 
Posts: 744
Default Sending E-mail from an account that is not logged in

On Mar 16, 4:02*pm, Steve wrote:
I am currently writing a macro in Access 2007 with VBA. Is there a way
to send e-mail from an exchange account that is not currently logged
into Outlook? I’m able to send e-mail using my account, but other
users will be running the macro and I’d like to have it so that the
mail sends from a reporting e-mail account (without having them log
directly into that account).

Thanks!


What if you use the CDOSys library? I think you can specify a
username and password as part of the parameters, so you can send e-
mail from any account for which you have the password.
  #4  
Old March 23rd, 2010, 07:49 PM posted to microsoft.public.access
Steve[_91_]
external usenet poster
 
Posts: 3
Default Sending E-mail from an account that is not logged in

On Mar 17, 12:55*am, "
wrote:
On Mar 16, 4:02*pm, Steve wrote:

I am currently writing a macro in Access 2007 with VBA. Is there a way
to send e-mail from an exchange account that is not currently logged
into Outlook? I’m able to send e-mail using my account, but other
users will be running the macro and I’d like to have it so that the
mail sends from a reporting e-mail account (without having them log
directly into that account).


Thanks!


What if you use the CDOSys library? *I think you can specify a
username and password as part of the parameters, so you can send e-
mail from any account for which you have the password.


Where can I find documentation for the CDOSys library? I've found some
examples, but still don't really have a grasp on it.
  #5  
Old March 24th, 2010, 01:21 AM posted to microsoft.public.access
Steve[_91_]
external usenet poster
 
Posts: 3
Default Sending E-mail from an account that is not logged in

On Mar 23, 3:49*pm, Steve wrote:
On Mar 17, 12:55*am, "
wrote:

On Mar 16, 4:02*pm, Steve wrote:


I am currently writing a macro in Access 2007 with VBA. Is there a way
to send e-mail from an exchange account that is not currently logged
into Outlook? I’m able to send e-mail using my account, but other
users will be running the macro and I’d like to have it so that the
mail sends from a reporting e-mail account (without having them log
directly into that account).


Thanks!


What if you use the CDOSys library? *I think you can specify a
username and password as part of the parameters, so you can send e-
mail from any account for which you have the password.


Where can I find documentation for the CDOSys library? I've found some
examples, but still don't really have a grasp on it.


Never mind, I figured out what was getting me. The CDO method works
great!

Thanks!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.