Alaska Software Inc. - Is it possible to add a digital signature to and email created with MIMEMessage() to send it with SMTPClient()?
Alaska Software Inc. - Is it possible to add a digital signature to and email created with MIMEMessage() to send it with SMTPClient()?
Username: Password:
AuthorTopic: Is it possible to add a digital signature to and email created with MIMEMessage() to send it with SMTPClient()?
Joao GrenhasIs it possible to add a digital signature to and email created with MIMEMessage() to send it with SMTPClient()?
on Thu, 26 Feb 2015 18:22:42 +0000
Hello all,

i need to send emails with SmtpClient() and digitally sign them.

Is it possible with current versions of MIMEMessage() and SMTPClient()?

Something like:

oMail := MIMEMessage():new()
oMail:setFrom( MailAddress():new( cSender ) )
oMail:addRecipient( MailAddress():new( cDestination ) )
oMail:setSubject( cSubject )

???? Add a digital signature

oSMTP := SMTPClient():new( cSMTPServer, , , LogWriter():new() )
oSMTP:connect( cSMTPUser, cSMTPPass )
oSMTP:send( oMail )
oSMTP:disconnect()


TIA,
Matej JuracRe: Is it possible to add a digital signature to and email created with MIMEMessage() to send it with SMTPClient()?
on Fri, 27 Feb 2015 09:16:13 +0100
It is not trivial and depends on basic way you want to sign:

- via PGP (probaly you need clearsign type?)
http://www.spywarewarrior.com/uiuc/gpg/gpg-com-4.htm

- via digital certificate (pkcs12)
best way would be to use ActiveX approach as it is non trivial


Joao Grenhas wrote in message
news:1848d1f$5d491f5c$22788d@news.alaska-software.com...
>Hello all,
>
>i need to send emails with SmtpClient() and digitally sign them.
>
>Is it possible with current versions of MIMEMessage() and SMTPClient()?
>
>Something like:
>
>oMail := MIMEMessage():new()
>oMail:setFrom( MailAddress():new( cSender ) )
>oMail:addRecipient( MailAddress():new( cDestination ) )
>oMail:setSubject( cSubject )
>
>???? Add a digital signature
>
>oSMTP := SMTPClient():new( cSMTPServer, , , LogWriter():new() )
>oSMTP:connect( cSMTPUser, cSMTPPass )
>oSMTP:send( oMail )
>oSMTP:disconnect()
>
>
>TIA,
Joao GrenhasRe: Is it possible to add a digital signature to and email created withMIMEMessage() to send it with SMTPClient()?
on Fri, 27 Feb 2015 09:51:53 +0000
I want to sign with digital certificate (pkcs12)


"Matej Jurac" escreveu na mensagem 
news:192d84f7$eec4997$2330a6@news.alaska-software.com...

It is not trivial and depends on basic way you want to sign:

- via PGP (probaly you need clearsign type?)
http://www.spywarewarrior.com/uiuc/gpg/gpg-com-4.htm

- via digital certificate (pkcs12)
best way would be to use ActiveX approach as it is non trivial


Joao Grenhas wrote in message
news:1848d1f$5d491f5c$22788d@news.alaska-software.com...
>Hello all,
>
>i need to send emails with SmtpClient() and digitally sign them.
>
>Is it possible with current versions of MIMEMessage() and SMTPClient()?
>
>Something like:
>
>oMail := MIMEMessage():new()
>oMail:setFrom( MailAddress():new( cSender ) )
>oMail:addRecipient( MailAddress():new( cDestination ) )
>oMail:setSubject( cSubject )
>
>???? Add a digital signature
>
>oSMTP := SMTPClient():new( cSMTPServer, , , LogWriter():new() )
>oSMTP:connect( cSMTPUser, cSMTPPass )
>oSMTP:send( oMail )
>oSMTP:disconnect()
>
>
>TIA,