GetReplyTo Method

Get reply address.

[Syntax]
C++: HRESULT GetReplyTo( BSTR* pVal )
Visual Basic: GetReplyTo( ) As String
C#: string GetReplyTo()

Return Value

This method returns the reply address.

Remarks

Sender's email address is the default reply address. But in some cases, sender requests recipient to reply the email to another email address. This method returns that email address.

Usage Example

[JScript]
function ParseSender( emailFile )
{
  var oMsg = new ActiveXObject("ANPOP.POPMSG");
  var senderName, senderAddr, replyAddr;
  
  if( oMsg.ImportFile( emailFile ) != 0 )
  { 
    WScript.Echo( "error with ImportFile" );
    return;
  }
  
  senderName = oMsg.GetFrom();
  senderAddr = oMsg.GetFromAddress();
  replyAddr = oMsg.GetReplyTo();

}

See Also

GetFrom Method
GetFromAddress Method
GetHeaderItem Method


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.