Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outllok email from?

Status
Not open for further replies.

DChalom

Programmer
Jun 8, 2002
59
US
How do you determine who the email is from?

Is there some where I can find out what all the parts of an email are?

Dorian C. Chalom
 
Hi Dorian.

The following code assumes that loItem is an object reference to an e-mail message object:

Code:
*** First see if the sender name actually IS an e-mail address
IF '@' $ loItem.SenderName
   m.lcSenderEm2 = loItem.SenderName
else
 if empty(loItem.To)
  * don't reply - this is just a draft
  m.lcSenderEm2 = "Draft"
 else
   loReply = loItem.Reply()
   loRecip = loReply.Recipients[ 1 ]
   m.lcSenderEm2 = IIF( NOT EMPTY( loRecip.Address ), loRecip.Address, loRecip.Name )
 endif
ENDIF

Marcia G. Akins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top