NetClientDevGuide

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NetClientDevGuide

Maarten Mostert-2
Please notice that page 98 related to Sending e-mail messages needs some revisiting.

For insecure message it states:

smtpClient := SMTPClient host: 'smtp.somehost.com'.
smtpClient user: (NetUser username: ‘username' password: 'password' ).
 smtpClient connect.
[smtpClient login.
smtpClient send: message1.
 smtpClient send: message2. ] ensure: [smtpClient quit ].


Where this should be

smtpClient := SMTPClient host: 'smtp.somehost.com'.
smtpClient user: (NetUser username: ‘username' password: 'password' ).
smtpClient useAuthentication:false.
smtpClient send: message1.

And were for secure:

client := SMTPClient new.
client user: (NetUser username: ‘username' password: 'password').
 client hostName: 'smtp.com' portNumber: '9090'.
client useSecureConnection.
[ client connect ] on: Security.X509.SSLBadCertificate do:
[ :ex | ex proceed].
 client send: self message

Which should be:

smtpClient := SMTPClient host: 'smtp.somehost.com'.
smtpClient user: (NetUser username: ‘username’ password: 'password' ).
smtpClient send: message1.


regards,

@+Maarten,






 
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: NetClientDevGuide

Mark Roberts
Thanks for this, Maarten. AR 71845 is tracking the doc update.

Best regards,

M. Roberts
Cincom Systems, Inc.

On 3/12/2015 3:59 AM, Maarten Mostert wrote:

> Please notice that page 98 related to Sending e-mail messages needs some revisiting.
>
> For insecure message it states:
>
> smtpClient := SMTPClient host: 'smtp.somehost.com'.
> smtpClient user: (NetUser username: ‘username' password: 'password' ).
>   smtpClient connect.
> [smtpClient login.
> smtpClient send: message1.
>   smtpClient send: message2. ] ensure: [smtpClient quit ].
>
>
> Where this should be
>
> smtpClient := SMTPClient host: 'smtp.somehost.com'.
> smtpClient user: (NetUser username: ‘username' password: 'password' ).
> smtpClient useAuthentication:false.
> smtpClient send: message1.
>
> And were for secure:
>
> client := SMTPClient new.
> client user: (NetUser username: ‘username' password: 'password').
>   client hostName: 'smtp.com' portNumber: '9090'.
> client useSecureConnection.
> [ client connect ] on: Security.X509.SSLBadCertificate do:
> [ :ex | ex proceed].
>   client send: self message
>
> Which should be:
>
> smtpClient := SMTPClient host: 'smtp.somehost.com'.
> smtpClient user: (NetUser username: ‘username’ password: 'password' ).
> smtpClient send: message1.
>
>
> regards,
>
> @+Maarten,
>
>
>
>
>
>
>  
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc