title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
WebCommandButton.EmailAddress property (Publisher) |
vbapb10.chm3932167 |
|
|
8961e459-1ce1-558a-2450-c3b8da2d5559 |
06/18/2019 |
medium |
Sets or returns a String representing the email address to use when processing web form data. Read/write.
expression.EmailAddress
expression A variable that represents a WebCommandButton object.
String
This example sets Microsoft Publisher to process data on the web form in the current publication by sending an email message to a specified email address.
Sub WebFormData()
With ThisDocument.Pages(1).Shapes(1).WebCommandButton
.DataRetrievalMethod = pbSubmitDataRetrievalEmail
.EmailAddress = "someone@example.com"
.EmailSubject = "Web form data"
End With
End Sub
[!includeSupport and feedback]