Retrieves or sets any extra field to the message's header.
Type | Description | |||
Field as String | A string expression that indicates the field's name. | |||
String | A string expression that indicates the field's value. |
Use the ExtraHeader property to add any extra field to the message's header. You can use your personalize fields, or you can check the RFC 822. The following sample shows how to add the "Reply-To" field to the message's body:
Private Sub Form_Load() Dim m As Message Set m = Runtime1.NewMessage m.ExtraHeader("Reply-To") = "Me@mascro.com" If (0 = m.Send("myaccount@usermail.com", "bul@bulstone.com", "Test", "Hello world!")) Then MsgBox "The message was successfully delivered " End If End Sub