| | | |
Uploading ....
Following macro sends email along with document as an attachment.
- Public Sub SendEmail()
- ThisWorkbook.HasRoutingSlip = True
- With ThisWorkbook.RoutingSlip
- .Recipients = Array("$mailid") ' Enter mail ids separated by comma
- .Subject = "$subject" ' Enter your subject here
- .Message = "$message" ' Enter your message here
- End With
- ThisWorkbook.Route
- End Sub
|
|
|
| | | |
|
We would like to inform you that you can add the sender address with recipients, and message by following the below-mentioned steps.
.Message = MessagetoSend
.Sender = "sender email address"
Please note that this address should be same as sender's email address else mail will still be sent from the same notification mail address to avoid unnecessary confusion and protection policies.