PowerTCP Mail for .NET
AutoSize Property (SmtpSession)




Gets or sets a value indicating if the server will be asked if the message is too large before sending.
Syntax
<DefaultValueAttribute()>
Public Property AutoSize As Boolean
Dim instance As SmtpSession
Dim value As Boolean
 
instance.AutoSize = value
 
value = instance.AutoSize
[DefaultValue()]
public bool AutoSize {get; set;}
[DefaultValue()]
public: __property bool get_AutoSize();
public: __property void set_AutoSize( 
   bool value
);
[DefaultValue()]
public:
property bool AutoSize {
   bool get();
   void set (    bool value);
}

Property Value

true if the server should be asked if the message is too large before sending, otherwise false. Defaults to true.
Remarks

The advent of MIME, which introduced the transfer of greater amounts of non-ASCII files, resulted in much larger data load for SMTP servers. The SIZE command was introduced as a way for a server to announce the maximum file size it would accept and for a client to announce the size of data it is about to send. When a client announces the size of the data, the server then has an opportunity to accept or reject the data. If the SMTP server supports the SIZE command, Smtp.AutoSize controls whether or not this announcement is made.

If sending mail using a server that supports the SIZE command, set this value to false if you wish to keep the client from announcing the size of the data that will be sent.

See Also

Reference

SmtpSession Class
SmtpSession Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic