Gossamer Forum
Home : Products : DBMan : Customization :

Fwd Record w/ Imgs Mod Error

Quote Reply
Fwd Record w/ Imgs Mod Error
I have made some progress in my quest to use SMTP to send mail from DBMan. I'm using the Foward_Record_withImages Mod. And when I click "Send this record to a friend as HTML" I get an

Error: Unknown Action - The database program received a command that it did not understand.

I followed all the instructions in the .txt file (uploading in ascii, setting permissions to on Mail folder and Sender.pm file to 755, and changing the 'Image Name' to the field relating to the image I want to use.) I'm not really sure how to configure it much further until I know it's working. So...if anyone has encountered this problem before or has any suggestions, please respond.

Quote Reply
Re: Fwd Record w/ Imgs Mod Error In reply to
I can't find the mod in the Resource Center, but your problem looks like it has to do with a line you needed to add to sub main in db.cgi. Either you didn't add the line or you put it in the wrong place.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Fwd Record w/ Imgs Mod Error In reply to
The code is found at http://www.fastcom.uk.com/dbman/forward_record_withimages.txt

You were right, the problem was in db.cgi. It actually sends the mail now. However, there are more problems. I'm going to toil with it myself for a while before I bother anyone else with more questions.

Quote Reply
Re: Fwd Record w/ Imgs Mod Error In reply to
I was unable to fix some errors in the mod. When sending records in HTML, the e-mail is the HTML code and not the output, plus it doesn't recognize that I have an image attached with a variable. (example: If a checkbox is selected, it displays an image) So, to better state my problem, I would like to send an e-mail in html. it will always be in the same format (such are the records) a table, one column, two rows, with text entered by the user in the first row, and an image in the second row (image is always the same).
My files are located at members.xoom.com/SharpMetal/db_pl.txt
/html_pl.txt
/default_cfg.txt


Quote Reply
Re: Fwd Record w/ Imgs Mod Error In reply to
quote:
the e-mail is the HTML code and not the output

I believe that is what that mod is supposed to do .. send an email with all the HTML coding.

Do you mean that the coding is there but the actual field data is not .. or that you want the data to appear formatted but without the HTML coding?

Sorry if this confuses the issue

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Fwd Record w/ Imgs Mod Error In reply to
I would like the e-mail to be displayed as the result of the HTML code (as in, if the html code I send states the background is yellow, then the e-mail's background is yellow) It displays all field information, and the e-mail is just plain text, a display of both html tags and the information from entered from the fields.