I'm trying to solve, on paper a simple problem, but which just won't work:
jMail.AddURLAttachment "/downloadics.asp?confirm=" & objRS("GUID"), "Appointment.ics"
The script "downloadics.asp" generates an ICS calendar file based on a specific guid. The result is a downloadable file *.ics.
Everything else works - both the mailing part and the ICS script. Just not when trying to add as an attachment.
I have tried several variations but they all end up with an error, e.g.:
jmail.Message error '8000ffff'
WSAGetLastError() returned 10061, Connection refused
I have had succes with adding an image from an url.
So, my question is: is it at all possible to attach a "generated" file like this or do I have to make it another way?
What could another way be?
OK, so I was able to solve the main problem.
The solution was to use:
And just build strText with the contents of a typical .ics-file and giving FILENAME a name like something.ics.
My problem is now that the file is ANSI encoded and I need UTF8 without BOM.
Thanks all for pointing in the right direction...