MassMailer Template
MassMailer Template
daily/weekly emails
For a limited time you can get this template for $50.
Buy now
If you are already own MassMailer template v1 or v2 you can upgrade to version 3 for $25.
MassMailer template is available to users of PHPRunner 9.x, ASPRunnerPro 9.x, ASPRunner.NET 9.x.
Changes history
Bootstrap-based layouts
Send email or SMS or both
Schedule delivery by day of week
Attach project page as HTML or PDF
Screenshots
Click images for full size screenshots
List of tasks
Setup instructions
1. Make sure you specified correct SMTP settings in PHPRunner project. SMTP settings can be found
under Miscellaneous->Email settings.
2. Create a new task. For one off tasks like email newsletter choose Interval Type 'manual'. For recurring
tasks like daily reports choose Interval Type like 'day'.
3. Enter SQL Query, make sure it returns correct data. Populate email fields like 'To', 'Subject' and 'Email
body'. Preview your email. Send test email. If everything looks good save your task.
4. Schedule a cron job to run cron.php page once a day or once an hour.
If your website runs on Linux web server and you have access to crontab file you have two options
here.
Method 2: Run the php script using URL from the crontab
The URL to schedule is http://website/massmailer/cron.php. The following script executes the
php script every hour by calling the URL using WGET. The -q option indicates quite mode. The "-O
temp.txt" indicates that the output will be send to the temporary file.
?
00 * * * * /usr/bin/wget -q -O temp.txt
1 http://website/massmailer/cron.php
If you are not sure how to schedule a cron job open a free account with monitoring service
like Montastic and add cron page URL to be pinged once a day or or once an hour.
I've created a task but don't want it to run yet. Can I make it inactive?
Yes, you can choose Interval to be manual and it will not run until you start it manually.
My emails addresses are stored in the database field. How do I setup this?
In TO field specify %EmailAddressField%. Instead of EmailAddressField use the actual name of the
field that stores email addresses.
This field is optional and can be left empty. Use it when you need to update a record in the main table
after email is sent. Typical use includes updating Status field with value like 'sent' or update EmailSent
field with the current date/time.
Sample query:
?
1 update customers set status='sent' where CustomerID = '%main.CustomerID%'
Note how we reference the field from the main SQL query via %main.CustomerID%.
Simply insert %unsubscribe% tag anywhere in email body. Note that this tag only makes sense when
email is sent to subscription list.
This can be changed right in the software (PHPRunner, ASPRunnerPro, ASPRunner.NET). Proceed to
Miscellaneous screen, click 'Email settings' and enter FROM email address there.
By default date values are presented as is in your email meaning you will see something like this: Your
invoice is due on 2015-06-17 00:00:00. This is obviously not what you looking for.
You can modify your SQL query to retrieve date values in nicely formatted way i.e. 06/17/2015
?
1 select name, email, date_format(due_date, "%c/%d/%Y") from invoices
Each database comes with its own functions for date formatting. In MySQL you can use DATE_FORMAT.
The best option is to use HTML email and insert an img tag specifying complete URL of image file. Here
is an example:
?
1 <img src='http://xlinesoft.com/templates/images/calendar.png'>
You can use multiple queries in 'Execute SQL query after email sent'. Use semicolon to separate queries.
?
1 update materials set sent=1 where materials_order_id= %main.materials_order_id%";
2 update customer set status='Order Sent', status_timestamp=now() where customer_id =
%main.customer_id%;
Glad you asked. See how you can manage password reminders and expiration using MassMailer
template.
At this moment we only support Twilio. Proceed to Miscellaneous screen in the software, click 'SMS
settings' and enter Twilio credentials.
1. In MassMailer task either enter hardcoded username and password or select username and passwords
fields
2. In your project add the following code to AfterAppInit event. MassMailer template will pass
username/password to the page to be exported and the following code will help to access a password
protected page.
PHPRunner:
?
1 if(postvalue("username") && postvalue("password")){
2 $res = Security::checkUsernamePassword(postvalue("username"),
postvalue("password"), $fireEvents = false);
3 if($res)
4 Security::loginAs(postvalue("username"), true);
5 }
ASPRunner.NET:
?
1 if(MVCFunctions.postvalue("username") && MVCFunctions.postvalue("password")){
2 bool res = Security.checkUsernamePassword(MVCFunctions.postvalue("username"),
MVCFunctions.postvalue("password"), false);
3 if(res)
4 Security.loginAs(MVCFunctions.postvalue("username"), true);
5 }
ASPRunnerPro:
?
1 if bValue(postvalue("username")) and bValue(postvalue("password")) then
2 res = Security_checkUsernamePassword(postvalue("username"),
postvalue("password"), false)
3 if bValue(res) then
4 Security_loginAs postvalue("username"), true
5 end if
6 end if
Customer quotes
East Meets West Productions, LLC simply loves XLineSoft! PHPRunner is the best databasing product on the market. Going
from concept to proto-typing is now a matter of hours instead of days or weeks. The ability to show the client a working
"vision" and get immediate feedback has been paramount to our success. The boss doesn't even ask if something is possible
anymore she just knows that if it's a database it can go online!
Douglas R. Burrell
truconsulting.com
Your product (and your TERRIFIC SUPPORT) did the trick for us, and no doubt saved us a great deal of time.
Greg Polen
Cinexis, LLC
Contact us
Xlinesoft.com
Herndon, VA 20171, USA
1-888-290-6617Ask a question