ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sending mail from Excel with CDO - return SMTP value (https://www.excelbanter.com/excel-programming/323745-sending-mail-excel-cdo-return-smtp-value.html)

kent

Sending mail from Excel with CDO - return SMTP value
 
I will use Ron de Bruin excellent code to send Excelsheets by mail with CDO.
The excel-sheet is used by different users with different SMTP server values,
so I cannot put a fixed value into the code.
Does anybody know the code to return the current SMTP value, so I can give
this value to a variable ?

Regards
Kent

Ron de Bruin

Sending mail from Excel with CDO - return SMTP value
 
Try this Kent
http://vbnet.mvps.org/code/reg/regaccounts.htm

I never used it myself


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



"Kent" wrote in message ...
I will use Ron de Bruin excellent code to send Excelsheets by mail with CDO.
The excel-sheet is used by different users with different SMTP server values,
so I cannot put a fixed value into the code.
Does anybody know the code to return the current SMTP value, so I can give
this value to a variable ?

Regards
Kent





All times are GMT +1. The time now is 05:01 PM.

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