Pages: 1
Hello,
whenever I or a user sends a Piwiecard, we can fill out all the fields on the form, but it seems only the addresses take.
The subject line always reads "piwecard_default_email_subject," regardless of the title given in the form.
The body of the message is always "Hi, here's a photo you might remember." regardless of what we type in the message box.
There is no link to the album photo page nor a copy of the photo. What's supposed to show?
Attaching what recipient sees in Outlook.
Piwigo 2.10.2 Check for upgrade
Operating system: Linux
PHP: 7.0.33-0+deb9u7
MySQL: 5.5.5-10.1.44-MariaDB-0+deb9u1
Graphics Library: ImageMagick 6.9.7-4
Offline
Hello all,
Through trial and error, I was able to figure out that one must put variable placeholders in the body of the text template areas on the configuration tab. So, now the massages that are sent do contain what the user enters while trying to send the ecard.
Unfortunately, there are still problems:
A) %ecardsubject% does not work -- is that the correct name for the variable?
B) when sending text mode messages, line spacing works fine, but every iteration adds more backslash characters in front of the apostrophe of "Here's" How can I avoid that?
C) When sending in HTML mode, the message looks like one run-on string with no line breaks, even though I have separate lines in the template. Can someone tell me how to force line breaks in the HTML output? Do I have to put in code like <BR> ?
D) Neither text mode nor html mode actually include the image in the e-mail, even if I choose one of the smaller derivatives. Or, is it that the image size chosen in the configuration page refers to the image size seen at %ecardurl% ?
Thanks to whoever responds.
JJF
Offline
Hello, found answers myself via more googling and trial & error.
a) use %ecardtitle% not %ecardsubject% https://piwigo.org/forum/viewtopic.php?id=25232
b) must resave without the escaping (using \) in the text mode template every time I save the configuration.
c) yes, I have to insert <BR> commands in the html mode template text in order top line breaks
d) the e-mail about the card will never contain an image of any kind. The image size chosen in the configuration page is the size shown in the actual e-card page on my gallery.
Offline
Pages: 1