void QRMessageStream::setOtherEnd() { static const Int32 MAX_LEN = 300; char other[MAX_LEN]; const IpcSetOfConnections& connections = getRecipients(); CollIndex elemInx = NULL_COLL_INDEX; // for (CollIndex elemInx = 0; setToNext(elemInx); elemInx++) if (connections.setToNext(elemInx)) { connections.element(elemInx)->getOtherEnd().toAscii(other, MAX_LEN); otherEnd_ = other; } else otherEnd_ = "<no connection>"; }
CMailInfo(char const * _to, char const * _subject, char const * _mailServer, unsigned _port, char const * _sender, StringArray *_warnings) : subject(_subject), mailServer(_mailServer), port(_port), sender(_sender), lastAction("process initialization"), inlen(0) { warnings = _warnings; CSMTPValidator validator; if(strlen(senderHeader) + sender.length() > 998) throw MakeStringException(0, "email sender address too long: %" I64F "u characters", static_cast<__uint64>(sender.length())); validator.validateAddress(sender.get(), "email sender address"); getRecipients(validator, _to); if(strlen(toHeader) + to.length() > 998) throw MakeStringException(0, "Email recipient address list too long: %u characters", to.length()); if(strlen(subjectHeader) + subject.length() > 998) throw MakeStringException(0, "Email subject too long: %" I64F "u characters", static_cast<__uint64>(subject.length())); validator.validateValue(subject.get(), "email subject"); }