ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Alias FROM: when sending mail in Excel (https://www.excelbanter.com/excel-programming/306821-alias-when-sending-mail-excel.html)

tod

Alias FROM: when sending mail in Excel
 
The user wants to send a portion of the worksheet as the
body of an email. I found this code that does just that:

ActiveSheet.Range("A1:K71").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Item.To = AddressList
.Item.Subject = "Test Subject"
.Item.Send
End With

Great. But, the email shows the user's Exchange account
name in the FROM: field. They want an alias name to show.
Does someone know how I can choose what to display in the
FROM: field of the email message?

tod


Jim Thomlinson[_3_]

Alias FROM: when sending mail in Excel
 
Try item.SentOnBehalfOfName

"Tod" wrote:

The user wants to send a portion of the worksheet as the
body of an email. I found this code that does just that:

ActiveSheet.Range("A1:K71").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Item.To = AddressList
.Item.Subject = "Test Subject"
.Item.Send
End With

Great. But, the email shows the user's Exchange account
name in the FROM: field. They want an alias name to show.
Does someone know how I can choose what to display in the
FROM: field of the email message?

tod




All times are GMT +1. The time now is 08:42 AM.

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