WebCommandButton.EmailAddress Property (Publisher)

Sets or returns a String representing the e-mail address to use when processing Web form data. Read/write.

Syntax

expression. EmailAddress

expression A variable that represents an WebCommandButton object.

Return Value

String

Example

This example sets Microsoft Publisher to process data on the Web form in the current publication by sending an e-mail message to a specified e-mail address.

Sub WebFormData() 
 With ThisDocument.Pages(1).Shapes(1).WebCommandButton 
 .DataRetrievalMethod = pbSubmitDataRetrievalEmail 
 .EmailAddress = "someone@example.com" 
 .EmailSubject = "Web form data" 
 End With 
End Sub