MessageFrom Property

The author of a message.

Syntax

ANSI (Cross Platform)
char* GetMessageFrom();
int SetMessageFrom(const char* lpszMessageFrom); Unicode (Windows) LPWSTR GetMessageFrom();
INT SetMessageFrom(LPCWSTR lpszMessageFrom);
@property (nonatomic,readwrite,assign,getter=messageFrom,setter=setMessageFrom:) NSString* messageFrom;
- (NSString*)messageFrom;
- (void)setMessageFrom:(NSString*)newMessageFrom;
#define PID_GMAIL_MESSAGEFROM 17

CLOUDMAIL_EXTERNAL void* CLOUDMAIL_CALL CloudMail_GMail_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
CLOUDMAIL_EXTERNAL int CLOUDMAIL_CALL CloudMail_GMail_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property contains the author of a message. This property is optional. If it left blank, the message's author will be the Google account used in Authorization.

This property is applied to a message created with CreateDraft or messages sent with SendMail.

Example (Define who a Message is From)


gmail.MessageFrom = "stephen@company.com";
gmail.SendMail();

Example (Define who a Message is From with a Name and Address)


gmail.MessageFrom = "Stephen Withavee < stephen@company.com >";
gmail.SendMail();

This property is not available at design time.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Mail 2020 C++ Edition - Version 20.0 [Build 8308]