Dec 17th, 2011, 11:15 PM
ok i couldnt wait so i did an all nighter
Before the email is sent i have some php code create a ics file on my server. It then writes all the ical fields and populates them with matching data from the record selected for the email by running a query on the formtools mysql database.
I enabled swiftmailer and went to the email template and after a quick read of the swiftmailer documentation, I included the attach file statement that was kindly given as an example {$attachment file="../folder/anotherfile.txt"}. A quick edit and now everytime the email is sent it attaches the ics file.
Works like a dream - each booking goes straight into my calender with no cutting and pasting
If anyone else is interested i'd be happy to help. Rob
Before the email is sent i have some php code create a ics file on my server. It then writes all the ical fields and populates them with matching data from the record selected for the email by running a query on the formtools mysql database.
I enabled swiftmailer and went to the email template and after a quick read of the swiftmailer documentation, I included the attach file statement that was kindly given as an example {$attachment file="../folder/anotherfile.txt"}. A quick edit and now everytime the email is sent it attaches the ics file.
Works like a dream - each booking goes straight into my calender with no cutting and pasting
If anyone else is interested i'd be happy to help. Rob