How Do I Send Reciepts via Email?

Started by David Johns, January 08, 2007, 04:13:46 AM

Previous topic - Next topic

David Johns

You can send any html receipt via email using the following steps:

1. Create an html template for the receipt or find the template you are using for printing receipts in SuperManager.  Note that a series of default templates is copied to C:\Program Files\SuperManager when The SuperManager is installed.  If you have always been using the default templates, they are likely found there.  SuperManager will tell you where the reciept templates are found when you go to "View" | "Store Settings..." then go to the "Reports" tab.  The location of each template is given next to the name.  The paths are stored relative to the location of the store database (smg) file you are viewing.  So in this example shown the templates would be up one directory from the directory where the smg file is located, then under the directory "SuperManager 1150" then the folder "Installer", then each html filename is given


2. Find the html file you just created or found in the windows explorer.  Right click on it and select "Open With..." | "Notepad" or use another text editor to view the html code of the file.


3. Once the file contents is displayed in Notepad you will need to find references to any images you include in your report template.  For example the default Sales Receipt has the line:
'<img border="0" src="logo.jpg"'  This should be changed to '<img border="0" src="www.yourwebsite.com\image_folder\logo.jpg"'.
Once this is done, press <ctrl>-A to select all the html code, then <ctrl>-C to copy it to the windows clipboard.


4. In The SuperManager go to "View" | "Store Settings..." and select the "Email Templates" tab.  Click the "New..." button and give the template a name.  Then fill in a subject for the email.  Then put the mouse cursor in the "Body" field and press <ctrl>-V to paste the html code into the body.  Lastly check the box that says "Send as HTML".  If you would like each receipt sent to you put the code "company_email" in the BCC field.  Once you have finished all these steps the email template should look something like this:


5. It is best to test the template by selecting a test order, right clicking on it and choosing "Send Email" Then select the name of the template you just created.  The SuperManager's email preview will not preview the html.  It will just show up as html code, however, when the email arrives in your inbox it should show the html properly.
SuperManager Support
info@thesupermanager.com