Sending an Email ( Visual Age Smalltalk)

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

Sending an Email ( Visual Age Smalltalk)

Sakshi

Hi ,

I am trying to send an email via Visual Age samalltalk v6.0.4.

I tried the below method but its not working and showing this error "ENOTCONN (10057): Socket is not connected".

Is EMan working with gmail ?

Please suggest.

|smtpManager mailMessage|
smtpManager := OcEMManager new
        smtpAuthenticationViaLogin;
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: 'smtp.gmail.com';
        smtpUserName: '[hidden email]';
        smtpPassword: '********';
        yourself.

mailMessage := smtpManager newMessage
    from: '[hidden email]';
    to: '[hidden email]';
    subject: 'an EMail test';
    replyTo: '[hidden email]';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

SebastianHC
Hi Sakshi,

I think there was a bug in the smtp/https/ssl handshake implementation.
I think that was resolved in 8.3-ish?
Seth, Julian Ford and I worked on this during the CampSmalltalk in Biloxi.
Unfortunately, I never needed the code and couldn't tell the changes.

You could either download the current version and compare the code, or could/should connect with [hidden email] directly.

Kind wishes,
Sebastian


On 2017-10-25 03:38 AM, Sakshi wrote:

Hi ,

I am trying to send an email via Visual Age samalltalk v6.0.4.

I tried the below method but its not working and showing this error "ENOTCONN (10057): Socket is not connected".

Is EMan working with gmail ?

Please suggest.

|smtpManager mailMessage|
smtpManager := OcEMManager new
        smtpAuthenticationViaLogin;
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: 'smtp.gmail.com';
        smtpUserName: '[hidden email]';
        smtpPassword: '********';
        yourself.

mailMessage := smtpManager newMessage
    from: '[hidden email]';
    to: '[hidden email]';
    subject: 'an EMail test';
    replyTo: '[hidden email]';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

Sakshi

Hi Sebastian,

Thanks for your reply.
I tried to connect with [hidden email] .
Waiting for their response.

Thanks,
Sakshi

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

Seth Berman
Hello Sakshi,

I have been informed that we received your response and have replied.

-- Seth

On Thursday, October 26, 2017 at 6:13:52 AM UTC-4, Sakshi wrote:

Hi Sebastian,

Thanks for your reply.
I tried to connect with [hidden email] .
Waiting for their response.

Thanks,
Sakshi

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

Seth Berman
Hello Sakshi,

The EMan connection to GMail works just fine in VA Smalltalk 9.0 using your example (I had to add a returnAddress: setter to the OcEMManager new section).
I suspect the very outdated SSL/TLS support from IBM VisualAge 6.0.4 might have kept this from working for you.

Hope this helps.

-- Seth

On Thursday, October 26, 2017 at 8:16:30 AM UTC-4, Seth Berman wrote:
Hello Sakshi,

I have been informed that we received your response and have replied.

-- Seth

On Thursday, October 26, 2017 at 6:13:52 AM UTC-4, Sakshi wrote:

Hi Sebastian,

Thanks for your reply.
I tried to connect with [hidden email] .
Waiting for their response.

Thanks,
Sakshi

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

rjulianford
In reply to this post by Sakshi
Hello, Sakshi.

Unfortunately, I believe Sebastian is correct.

We were unable to get this working in older versions of VisualAge.
The Obdobion EMan framework you are apparently using works
very well....but I am using VisualAge 8.x (the changes I made to
EMan will work in all versions of VA since version 8).

I apologize that I do not remember what changes were required
to get the secure socket to work....I think it was a fairly simple thing,
in the end (my dim memory suggests it was just a method that needed
to be implemented on SSL socket).

Now, I do use this with GMail all the time, but I use Plain authentication
instead of Login authentication.  This may be at least part of the issue.

Also, when you do finally manage to connect using GMail, Google
will send you an EMail, telling you to turn on "Less Secure Apps" in the
GMail settings (they include a link in the EMail).  The default settings,
include this being off....so third party apps are unable to send EMail
using the GMail account.  But once you turn on "Less Secure Apps",
it should work fine.

I hope this is helpful....

Regards,
Julian Ford


On Wednesday, October 25, 2017 at 6:38:13 AM UTC-4, Sakshi wrote:

Hi ,

I am trying to send an email via Visual Age samalltalk v6.0.4.

I tried the below method but its not working and showing this error "ENOTCONN (10057): Socket is not connected".

Is EMan working with gmail ?

Please suggest.

|smtpManager mailMessage|
smtpManager := OcEMManager new
        smtpAuthenticationViaLogin;
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: '<a href="http://smtp.gmail.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://smtp.gmail.com&#39;;return true;" onclick="this.href=&#39;http://smtp.gmail.com&#39;;return true;">smtp.gmail.com';
        smtpUserName: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="OSIsJMdOAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">user...@...';
        smtpPassword: '********';
        yourself.

mailMessage := smtpManager newMessage
    from: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="OSIsJMdOAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">user...@...';
    to: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="OSIsJMdOAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">user...@...';
    subject: 'an EMail test';
    replyTo: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="OSIsJMdOAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">user...@...';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

rjulianford
In reply to this post by Sakshi
Here is an example I just tried, which worked.....

| smtpManager mailMessage |
smtpManager := OcEMManager new
        smtpAuthentication: 'AUTH PLAIN';
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: 'smtp.gmail.com';
        smtpUserName: '[hidden email]';
        smtpPassword: 'secretPassword';
returnAddress: '[hidden email]';
auditTrail: Transcript;   "This will let you see the interaction with the mail server"
        yourself.

mailMessage := smtpManager newMessage
    from: '[hidden email]';
    to: '[hidden email]';
    subject: 'an EMail test';
    replyTo: '[hidden email]';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send


I hope that helps....

Regards,
Julian

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

Sakshi
Hi Julian,

I tried the same method getting error in switchToSSL method.
Error Hint: 'Unexpected return value is not an SSL Factory Method...check the suplied name'.
Please find the attach document.
Please help.


Thanks & Regards,
Sakshi Sharma


On Thursday, November 2, 2017 at 11:52:34 PM UTC+5:30, [hidden email] wrote:
Here is an example I just tried, which worked.....

| smtpManager mailMessage |
smtpManager := OcEMManager new
        smtpAuthentication: 'AUTH PLAIN';
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: '<a href="http://smtp.gmail.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://smtp.gmail.com&#39;;return true;" onclick="this.href=&#39;http://smtp.gmail.com&#39;;return true;">smtp.gmail.com';
        smtpUserName: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="q9j1Szp_BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rjuli...@...';
        smtpPassword: 'secretPassword';
returnAddress: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="q9j1Szp_BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rjuli...@...';
auditTrail: Transcript;   "This will let you see the interaction with the mail server"
        yourself.

mailMessage := smtpManager newMessage
    from: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="q9j1Szp_BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rjuli...@...';
    to: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="q9j1Szp_BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jf...@...';
    subject: 'an EMail test';
    replyTo: '<a href="javascript:" target="_blank" gdf-obfuscated-mailto="q9j1Szp_BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rjuli...@...';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send


I hope that helps....

Regards,
Julian

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.

Debugger snapshot.docx (608K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

Sakshi
Hi Julian,

Can You please suggest for this.

Thanks & Regards,
Sakshi Sharma

On Thursday, November 16, 2017 at 11:47:28 AM UTC+5:30, Sakshi wrote:
Hi Julian,

I tried the same method getting error in switchToSSL method.
Error Hint: 'Unexpected return value is not an SSL Factory Method...check the suplied name'.
Please find the attach document.
Please help.


Thanks & Regards,
Sakshi Sharma


On Thursday, November 2, 2017 at 11:52:34 PM UTC+5:30, [hidden email] wrote:
Here is an example I just tried, which worked.....

| smtpManager mailMessage |
smtpManager := OcEMManager new
        smtpAuthentication: 'AUTH PLAIN';
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: '<a href="http://smtp.gmail.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://smtp.gmail.com&#39;;return true;" onclick="this.href=&#39;http://smtp.gmail.com&#39;;return true;">smtp.gmail.com';
        smtpUserName: '[hidden email]';
        smtpPassword: 'secretPassword';
returnAddress: '[hidden email]';
auditTrail: Transcript;   "This will let you see the interaction with the mail server"
        yourself.

mailMessage := smtpManager newMessage
    from: '[hidden email]';
    to: '[hidden email]';
    subject: 'an EMail test';
    replyTo: '[hidden email]';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send


I hope that helps....

Regards,
Julian

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Sending an Email ( Visual Age Smalltalk)

rjulianford
In reply to this post by Sakshi
Unfortunately, Sakshi, I have nothing else to offer.
The example I sent has been working in every version of VASmalltalk I have used
over the last several years.
I understand that this has also been verified on version 9.

There must be something in your development image that is interfering with it in some way.

Sorry....

Good luck!

Julian

On Thursday, November 16, 2017 at 1:17:28 AM UTC-5, Sakshi wrote:
Hi Julian,

I tried the same method getting error in switchToSSL method.
Error Hint: 'Unexpected return value is not an SSL Factory Method...check the suplied name'.
Please find the attach document.
Please help.


Thanks & Regards,
Sakshi Sharma


On Thursday, November 2, 2017 at 11:52:34 PM UTC+5:30, [hidden email] wrote:
Here is an example I just tried, which worked.....

| smtpManager mailMessage |
smtpManager := OcEMManager new
        smtpAuthentication: 'AUTH PLAIN';
        smtpRequiresSSL: true;
        smtpPort: 587;
        smtpHostName: '<a href="http://smtp.gmail.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://smtp.gmail.com&#39;;return true;" onclick="this.href=&#39;http://smtp.gmail.com&#39;;return true;">smtp.gmail.com';
        smtpUserName: '[hidden email]';
        smtpPassword: 'secretPassword';
returnAddress: '[hidden email]';
auditTrail: Transcript;   "This will let you see the interaction with the mail server"
        yourself.

mailMessage := smtpManager newMessage
    from: '[hidden email]';
    to: '[hidden email]';
    subject: 'an EMail test';
    replyTo: '[hidden email]';
    setMessageToString: 'some EMail message';
    yourself.

mailMessage send


I hope that helps....

Regards,
Julian

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.