Share via


EmailAddress Property [Publisher 2003 VBA Language Reference]

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

expression.EmailAddress

expression Required. An expression that returns a WebCommandButton object.

Example

This example sets 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

Applies to | WebCommandButton Object