I've nearly finished creating newletter functionality based on Tim's MailEngine. The other area that I could improve, as I was not merging member data into the newsletter, was to call the RenderTemplate once before sending the emails rather than calling it for each member.
Another thought I have had is to add all the recipients emails to the BCC field so only one email is sent. II'm not sure if this would increase the chances of the email being treated as Spam though.
I had to do quite a dance with the RenderTemplate to get it to work in a thread without access to HttpContext.
I would guess you'd have a problem with a lot of recipients on the bcc field; it would depend on your smtp server.
BTW for a less invasive improvement there is a "sleep" in Tims original loop that if you take out increases the number of recipients you can send before hitting the time out.
One question of my own. Anyone having experience with adding the emailaddresses in BCC? I really want to know. I could change the number of emails being send. We could also loop through the members and send a number of emails each containing a finite number of BCC's. So for example send 40 members per mail.
Mail Engine from Nibble
Hello
Used Tim Geyssen's very good mail package
http://our.umbraco.org/wiki/codegarden-2009/open-space-minutes/newsletters
However had problems with it timing out. I took a look at the source code and made the loop that emails each member run in a background process.
Here is a patch of my changes against the source at http://www.nibble.be/temp/MailEngine.zip
http://www.welovetheweb.com/documents/MailEnginePatch.zip
eg
cd MailEngine
patch -p1 < ..\MailEngine.patch
Robert
Hi Robert
Is patch a program or ..
Is it possible that you can upload the final source instead?
Paul S
Hi Robert,
I've nearly finished creating newletter functionality based on Tim's MailEngine. The other area that I could improve, as I was not merging member data into the newsletter, was to call the RenderTemplate once before sending the emails rather than calling it for each member.
Another thought I have had is to add all the recipients emails to the BCC field so only one email is sent. II'm not sure if this would increase the chances of the email being treated as Spam though.
Cheers
Paul
Hi
to install the patch you will need a version of gnu patch (http://gnuwin32.sourceforge.net/packages/patch.htm for windows)
Download nibble's zip and unzip. In a command window cd to the folder and run the command
patch -p1 < ..\MailEngine.patch
You will have a patched source which you will need to compile and copy the dlls and control files to your umbraco installation.
I'd rather not produce a ready patched version without Tim's permission.
Cheers
Robert
Hi Paul,
I had to do quite a dance with the RenderTemplate to get it to work in a thread without access to HttpContext.
I would guess you'd have a problem with a lot of recipients on the bcc field; it would depend on your smtp server.
BTW for a less invasive improvement there is a "sleep" in Tims original loop that if you take out increases the number of recipients you can send before hitting the time out.
Regards
Robert
Robert
I'm having trouble applying the patch - the command window just goes blank and seems to hang. Should i just wait or is the patch applied instantly?
I know someone also fixed the UTF-8 encoding issue (was this you?) - i'm having the same problem and would love to know how to fix it.
Cheers
Aron
Quote: I know someone also fixed the UTF-8 encoding issue (was this you?) - i'm having the same problem and would love to know how to fix it.
Anyone?
Was this fixed in any matter? *bump*
Hi guys,
One piece of code for future reference and one question.
The way I solved the UTF-8 question was adding this to the buildMail method in the Helper Class. (you should use / recompile the source afterwards)
One question of my own. Anyone having experience with adding the emailaddresses in BCC? I really want to know. I could change the number of emails being send. We could also loop through the members and send a number of emails each containing a finite number of BCC's. So for example send 40 members per mail.
Hope to hear from you guys.
is working on a reply...