ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Use CDO to send e-mail (https://www.excelbanter.com/excel-programming/372782-use-cdo-send-e-mail.html)

Rob

Use CDO to send e-mail
 
I'm sending email using CDO, and as far as I can tell I am forced to specify
either the 'From' or the 'Sender' property of the message. My application
will be used by multiple users, so I can't specify the address. I need the
sender of the e-mail to be the user's default e-mail address. How can I get
the address?
Thanks
Rob

Mike Fogleman

Use CDO to send e-mail
 
I believe the From and SMPT server only need to be specified if the user has
not set up an email account. See Ron DeBruin's site on sending with CDO.

http://www.rondebruin.nl/cdo.htm

Mike F
"Rob" wrote in message
...
I'm sending email using CDO, and as far as I can tell I am forced to
specify
either the 'From' or the 'Sender' property of the message. My application
will be used by multiple users, so I can't specify the address. I need
the
sender of the e-mail to be the user's default e-mail address. How can I
get
the address?
Thanks
Rob




Ron de Bruin

Use CDO to send e-mail
 
Hi

There is code on this site to get the information from a Outlook or Outlook Express account
http://vbnet.mvps.org/


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Rob" wrote in message ...
I'm sending email using CDO, and as far as I can tell I am forced to specify
either the 'From' or the 'Sender' property of the message. My application
will be used by multiple users, so I can't specify the address. I need the
sender of the e-mail to be the user's default e-mail address. How can I get
the address?
Thanks
Rob





All times are GMT +1. The time now is 10:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com