Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
snowman  
#1 Posted : Tuesday, October 6, 2015 3:04:20 AM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

I need to send a newsletter to about 600 club members each month so will want to use the EASendMail Service as I belive this will allow users to exit my application but have their PC keep sending the emails.

However my ISP will only allow me to send a maximum of 400 emails in any one hour.

Is there a way to throttle the EASendMail Service to stop it sending emails more frequenly than 400 in any hour?




PS Am I right in thinking that the EASendMail Service will allow my application to shut down but have the sending of emails continue in the background?
ivan  
#2 Posted : Tuesday, October 6, 2015 7:29:50 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)

Yes, after you sent emails to EASendMail Service, your application can exit, the service can send emails in background.

You can set all:100 in SMTP Configuration->Traffic Throttling, and also set:
Do not send more than specified emails to the following domain in every 15 minutes.
snowman  
#3 Posted : Tuesday, October 6, 2015 11:43:12 PM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

Thank you, that's very usefiul information.

However, reading the documentation it is not clear how I make those settings. My application will be installed on several other users' PCs. So first I have to get the service running on their PC during the installation of my application, perhaps I can do that by running EASendMailService.exe.

But even if I get that done, how do I make all the settings (described here https://www.emailarchitect.net/easendmail/sdk/default.aspx?ct=object_queue_a) programatically from my delphi code? The link above says
Quote:
After the installation is complete, click "EASendMail Service Manager" from "Start menu-> All Programs->EmailArchitect EASendMail Service->EASendMail Service Manager" to set up the SMTP Configuration.

So it seems to assume the user opens a form and manually makes the setting there. I cannot ask my users to do that (or trust them to!), so I have to be able to make the settings via my application.

Is there any delphi code examples or documentation showing how to do that?

BTW on the page in the above link there is the line
Quote:
To get the full samples of EASendMail, please refer to Samples section.

but the link to the samples gives a 404 error
ivan  
#4 Posted : Wednesday, October 7, 2015 8:11:01 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,154

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Hi, you can do it like this:

install EASendMail service on your machine and set the correct configuration, then backup the easendmail service installation path\conf\config.txt

After you user installation the service, copy the backup config.txt to overwrite existed config.txt, then restart emailarchitect easendmail service in administrative tools->services, then it is ok.

If you don't want ask your user restart the service manually, you can use WMI script to restart the specified service.

here is an example:

http://www.motobit.com/t...vbs-wmi-restart-service/


here is the sample list link:

https://www.emailarchite...ail/sdk/html/samples.htm

snowman  
#5 Posted : Thursday, October 8, 2015 4:27:01 AM(UTC)
snowman

Rank: Newbie

Groups: Registered
Joined: 10/6/2015(UTC)
Posts: 1

Brilliant. That's all the bits of info I need to put it together.
In case anyone else needs to do the same thing using Delphi, this page
http://www.delphipages.com/forum/showthread.php?t=152894
shows how to start/stop services in Delphi
Thank you Ivan
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.071 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.