Postmark email library
Hi guys, I've made a simple wrapper around the Postmark API. It lets you send emails without dealing with a SMTP server. You can read about it here: http://developer.postmarkapp.com/developer-libs.html http://developer.postmarkapp.com/developer-build.html and there: http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark It's pretty simple and naive implementation but it gets the job done. I'll add email attachements when I will need it. Francois
Hi! Thanks you for great job! I try use package at pharo 2.0 but I get warning about dependency from JsonObject class. Which package consists this class? P.S. Gofer configuration cannot load package because absent version with marked by stable. -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705706.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
can you tell us from where you are trying to load the package and how do you use the configuration? stef On Aug 30, 2013, at 12:05 AM, vmusulainen <vmusulainen@mail.ru> wrote:
Hi!
Thanks you for great job!
I try use package at pharo 2.0 but I get warning about dependency from JsonObject class.
Which package consists this class?
P.S. Gofer configuration cannot load package because absent version with marked by stable.
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705706.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Sure! I use pharo 2.0 (21.0) Attempt 1. Use http://ss3.gemstone.com/ss/postmark.html at "Getting the code/Gofer" Gofer new repository: 'http://ss3.gemstone.com/ss/postmark'; package: 'ConfigurationOfPostMark'; package: 'PostMark-Core'; package: 'PostMark-Tests'; load DoIt at workspace Result: Expection "ByteString doesNotUnderstand: #goferReferences" Attempt 2. Use http://ss3.gemstone.com/ss/postmark.html at "Getting the code/Monticello Registration" Add repository => select package "PostMark-Core-FrancoisStephany.11", press "Load" Result: "This package depends on the following classes: JsonObject You must resolve these dependencies before you will be able to load these definitions: PMEmail addAttachment:content:contentType: addAttachmentAndCompress:archiveName: attachAndCompressFile: attachFile: Select Proceed to continue, or close this window to cancel the operation." Attempt 3. see http://ss3.gemstone.com/ss/postmark.html/Wiki Gofer it url: 'http://ss3.gemstone.com/ss/postmark'; package: 'ConfigurationOfPostMark'; load. (Smalltalk at: #ConfigurationOfPostMark) project stableVersion load. DoIt at workspace Result: "The symbolic version #stable is not defined in ConfigurationOfPostMark for the current platform." -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705729.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
On Aug 30, 2013, at 9:45 AM, vmusulainen <vmusulainen@mail.ru> wrote:
Sure!
I use pharo 2.0 (21.0)
Attempt 1.
Use http://ss3.gemstone.com/ss/postmark.html at "Getting the code/Gofer"
Gofer new repository: 'http://ss3.gemstone.com/ss/postmark'; package: 'ConfigurationOfPostMark'; package: 'PostMark-Core'; package: 'PostMark-Tests'; load
this is the configurationOfPostmark that have the responsibility of loading the other packages and projects it needs. I will try to have a look but on Smalltalkhub Stef
DoIt at workspace
Result: Expection "ByteString doesNotUnderstand: #goferReferences"
Attempt 2.
Use http://ss3.gemstone.com/ss/postmark.html at "Getting the code/Monticello Registration" Add repository => select package "PostMark-Core-FrancoisStephany.11", press "Load"
Result: "This package depends on the following classes: JsonObject You must resolve these dependencies before you will be able to load these definitions: PMEmail addAttachment:content:contentType: addAttachmentAndCompress:archiveName: attachAndCompressFile: attachFile:
Select Proceed to continue, or close this window to cancel the operation."
Attempt 3. see http://ss3.gemstone.com/ss/postmark.html/Wiki
Gofer it url: 'http://ss3.gemstone.com/ss/postmark'; package: 'ConfigurationOfPostMark'; load. (Smalltalk at: #ConfigurationOfPostMark) project stableVersion load.
DoIt at workspace
Result: "The symbolic version #stable is not defined in ConfigurationOfPostMark for the current platform."
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705729.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I did not get a minute to look at it. Did you try on your side? Stef On Aug 30, 2013, at 1:51 PM, Stéphane Ducasse <Stephane.Ducasse@inria.fr> wrote:
On Aug 30, 2013, at 9:45 AM, vmusulainen <vmusulainen@mail.ru> wrote:
Sure!
I use pharo 2.0 (21.0)
Attempt 1.
Use http://ss3.gemstone.com/ss/postmark.html at "Getting the code/Gofer"
Gofer new repository: 'http://ss3.gemstone.com/ss/postmark'; package: 'ConfigurationOfPostMark'; package: 'PostMark-Core'; package: 'PostMark-Tests'; load
this is the configurationOfPostmark that have the responsibility of loading the other packages and projects it needs. I will try to have a look but on Smalltalkhub
Stef
DoIt at workspace
Result: Expection "ByteString doesNotUnderstand: #goferReferences"
Attempt 2.
Use http://ss3.gemstone.com/ss/postmark.html at "Getting the code/Monticello Registration" Add repository => select package "PostMark-Core-FrancoisStephany.11", press "Load"
Result: "This package depends on the following classes: JsonObject You must resolve these dependencies before you will be able to load these definitions: PMEmail addAttachment:content:contentType: addAttachmentAndCompress:archiveName: attachAndCompressFile: attachFile:
Select Proceed to continue, or close this window to cancel the operation."
Attempt 3. see http://ss3.gemstone.com/ss/postmark.html/Wiki
Gofer it url: 'http://ss3.gemstone.com/ss/postmark'; package: 'ConfigurationOfPostMark'; load. (Smalltalk at: #ConfigurationOfPostMark) project stableVersion load.
DoIt at workspace
Result: "The symbolic version #stable is not defined in ConfigurationOfPostMark for the current platform."
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705729.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I try loading from smalltalkhub.com with same results. Ant at smalltalkhub.com wrong link to external site (http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark) - wrong http://tulipemoutarde.be/2011/12/29/send-email-from-pharo-with-postmark.html - right -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705887.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I will give a try later. And see how we can fix it. Did you try to load the JSON configuration first? Stef On Aug 31, 2013, at 9:47 AM, vmusulainen <vmusulainen@mail.ru> wrote:
I try loading from smalltalkhub.com with same results.
Ant at smalltalkhub.com wrong link to external site (http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark) - wrong http://tulipemoutarde.be/2011/12/29/send-email-from-pharo-with-postmark.html - right
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705887.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
On Aug 31, 2013, at 11:14 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
I will give a try later. And see how we can fix it. Did you try to load the JSON configuration first?
We are using PostMark in the ESUG registration app⦠so it should work. You need to load JSON, though. (we should update the config) Postmark is actually *very* *very* interesting for sending mail⦠you outsource all the haste of being blacklisted and things like that. The downside is that it costs money: $1.50 per 10.000 mails.
Stef
On Aug 31, 2013, at 9:47 AM, vmusulainen <vmusulainen@mail.ru> wrote:
I try loading from smalltalkhub.com with same results.
Ant at smalltalkhub.com wrong link to external site (http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark) - wrong http://tulipemoutarde.be/2011/12/29/send-email-from-pharo-with-postmark.html - right
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705887.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Marcus Denker-4 wrote
Postmark is actually *very* *very* interesting for sending mail⦠you outsource all the haste of being blacklisted and things like that.
Yes, you are right. I write shop engine and should use postmark for sending order to customers and managers. -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705902.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I will have a look and update the configuration. On Aug 31, 2013, at 11:23 AM, Marcus Denker <marcus.denker@inria.fr> wrote:
On Aug 31, 2013, at 11:14 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
I will give a try later. And see how we can fix it. Did you try to load the JSON configuration first?
We are using PostMark in the ESUG registration app⦠so it should work.
You need to load JSON, though.
(we should update the config)
Postmark is actually *very* *very* interesting for sending mail⦠you outsource all the haste of being blacklisted and things like that.
The downside is that it costs money: $1.50 per 10.000 mails.
Stef
On Aug 31, 2013, at 9:47 AM, vmusulainen <vmusulainen@mail.ru> wrote:
I try loading from smalltalkhub.com with same results.
Ant at smalltalkhub.com wrong link to external site (http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark) - wrong http://tulipemoutarde.be/2011/12/29/send-email-from-pharo-with-postmark.html - right
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705887.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Stéphane Ducasse wrote
Did you try to load the JSON configuration first?
Yep, but which package consist need classes? I ask it at first post. Wow, I found JSON package at smalltalkhub.com. I first load JSON package from smalltalkhub.com and postmark package successfully loaded. Good, thank you. I resume my notes: 1. Wrong reference to external site with example of usage postmark http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark - incorrect http://tulipemoutarde.be/2011/12/29/send-email-from-pharo-with-postmark.html - correct 2. At smalltalkhub.com exists two projects a. PharoExtras/Postmark - correct project with packages b. PharoExtras/postmark - emp[ty project without packages I understand that you have little time, can I do something to help fix it? Vladimir Musulainen -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705900.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Stéphane Ducasse wrote
Did you try to load the JSON configuration first?
Yep, but which package consist need classes? I ask it at first post.
Wow, I found JSON package at smalltalkhub.com.
I first load JSON package from smalltalkhub.com and postmark package successfully loaded. Good, thank you.
I will fix the configruation and ask you to try.
I resume my notes:
1. Wrong reference to external site with example of usage postmark http://articles.tulipemoutarde.be/send-email-from-pharo-with-postmark - incorrect http://tulipemoutarde.be/2011/12/29/send-email-from-pharo-with-postmark.html - correct
2. At smalltalkhub.com exists two projects a. PharoExtras/Postmark - correct project with packages b. PharoExtras/postmark - emp[ty project without packages
I understand that you have little time, can I do something to help fix it?
To help me please read the metacello chapter! of Pharo By example two (deep into pharo) so that next time you can manage/ maintain/extend the configruation of Postmark. I do not need postmark but I want it to be available for people. Now this is better if people needed it can take of what they use. Stef
Vladimir Musulainen
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705900.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Stéphane Ducasse wrote
I will fix the configruation and ask you to try.
I found another dependency: Method PMInterface>>send: uses class GRPharoUtf8Codec. This class exists in package "Grease-Pharo-Core" (Seaside framework). -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705915.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
thanks! misdeclaring dependencies is the source of future hell :) I just deleted the wrong repository and I'm having a look now. Stef On Aug 31, 2013, at 1:55 PM, vmusulainen <vmusulainen@mail.ru> wrote:
Stéphane Ducasse wrote
I will fix the configruation and ask you to try.
I found another dependency:
Method PMInterface>>send: uses class GRPharoUtf8Codec. This class exists in package "Grease-Pharo-Core" (Seaside framework).
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705915.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Grease is handled by the configuration. So this is already that :)
thanks! misdeclaring dependencies is the source of future hell :) I just deleted the wrong repository and I'm having a look now.
Stef
On Aug 31, 2013, at 1:55 PM, vmusulainen <vmusulainen@mail.ru> wrote:
Stéphane Ducasse wrote
I will fix the configruation and ask you to try.
I found another dependency:
Method PMInterface>>send: uses class GRPharoUtf8Codec. This class exists in package "Grease-Pharo-Core" (Seaside framework).
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705915.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
So i worked and now can you try on a Pharo2.0 image the following Gofer new repository: 'http://smalltalkhub.com/mc/PharoExtras/Postmark/main' ; package: 'ConfigurationOfPostMark'; load. (ConfigurationOfPostMark project version: '1.0') load: 'Tests' Stef
Stéphane Ducasse wrote
Gofer new repository: 'http://smalltalkhub.com/mc/PharoExtras/Postmark/main' ; package: 'ConfigurationOfPostMark'; load. (ConfigurationOfPostMark project version: '1.0') load: 'Tests'
MessageNotUnderstood: ByteString>>goferReferences -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705934.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Gofer new url: 'http://smalltalkhub.com/mc/PharoExtras/Postmark/main' ; package: 'ConfigurationOfPostMark'; load. (ConfigurationOfPostMark project version: '1.0') load: 'Tests'
Stef
It's work fine! Tested on clean image of pharo 2.0. Thank you! -- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705969.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
It's work fine!
Excellent.
Tested on clean image of pharo 2.0.
Thank you!
Now you have to read the metacello chapter ;D and have success coding in Pharo. And if you see glitches or space for improvements in Postmark, please do not hesitate.
-- View this message in context: http://forum.world.st/Postmark-email-library-tp4254680p4705969.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (4)
-
Francois Stephany -
Marcus Denker -
Stéphane Ducasse -
vmusulainen