Skip to content

Commit

Permalink
Merge pull request #6 from PlimSistemas/master
Browse files Browse the repository at this point in the history
Permitir LowerCase para Usuário no Demo e Alterar ContentType
  • Loading branch information
juliosenha authored Oct 2, 2020
2 parents 60a9f47 + ab32977 commit 09ccde4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion samples/src/view/View.Samples.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ object FrmSamples: TFrmSamples
Top = 194
Width = 269
Height = 21
CharCase = ecLowerCase
TabOrder = 6
end
object edtPassword: TEdit
Expand Down
1 change: 1 addition & 0 deletions src/Mail4Delphi.Intf.pas
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface
function AddAttachment(const AFile: string): IMail;
function Auth(const AValue: Boolean): IMail;
function SSL(const AValue: Boolean): IMail;
function ContentType(const AValue: string): IMail;
function Clear: IMail;
function SendMail: Boolean;
function SetUpEmail: Boolean;
Expand Down
7 changes: 7 additions & 0 deletions src/Mail4Delphi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ TMail = class(TInterfacedObject, IMail)
function AddAttachment(const AFile: string): IMail;
function Auth(const AValue: Boolean): IMail;
function SSL(const AValue: Boolean): IMail;
function ContentType(const AValue: string): IMail;
function Clear: IMail;
function SendMail: Boolean;
class function New: IMail;
Expand Down Expand Up @@ -162,6 +163,12 @@ function TMail.Clear: IMail;
Result := Self;
end;

function TMail.ContentType(const AValue: string): IMail;
begin
FIdText.ContentType := AValue;
Result := Self;
end;

constructor TMail.Create;
begin
FIdSSLIOHandlerSocket := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
Expand Down

0 comments on commit 09ccde4

Please sign in to comment.