From Property
The email address of the sender (required).
Syntax
ANSI (Cross Platform) char* GetFrom();
int SetFrom(const char* lpszFrom); Unicode (Windows) LPWSTR GetFrom();
INT SetFrom(LPCWSTR lpszFrom);
@property (nonatomic,readwrite,assign,getter=from,setter=setFrom:) NSString* from; - (NSString*)from; - (void)setFrom:(NSString*)newFrom;
#define PID_SMTP_FROM 14 IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_SMTP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_SMTP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
This property is used to create a From SMTP header. This header identifies the sender of the message. A valid email address is required. Examples of valid addresses are: "Friendly Name" <address@company.com> or address@company.com
If the resulting header is longer than MaxHeaderLength, then it is folded according to RFC 822 specifications.
Data Type
String