WebSite X5Help Center

 
Gabriella T.
Gabriella T.
User

Is it possible to set an e-mail subject when a form is sending data to database?  en

Author: Gabriella T.
Visited 512, Followers 1, Shared 0  

Hello, here's my issue:

For now, I use forms on my website to manage registrations to different classes. I have set the forms to send the data via e-mail. Each form being for a different class, sends me the data with a different e-mail subject. 

For example, my inbox looks like :

Registration - Class A 

Registration - Class D 

I decided to "upgrade" my system by saving the data in a database, and then show this data on a private page on my website. I ticked the option to notify me by e-mail when new data is saved. However, there's no option to choose an e-mail subject. So my inbox looks like:

notification from http://www.domainname.com/

notification from http://www.domainname.com/

And I really liked me being able to tell which class someone registered for, before even opening the e-mail.

Is there a way to change this boring e-mail subject ?

Best Regards

Gabriella

Posted on the
4 ANSWERS - 1 CORRECT
Paul M.
Paul M.
Moderator

Hello Gabriella,

I know exactly what you mean, but unfortunately at the present moment there is no way to alter the existing subject line, which is automatically generated by WebSite X5.

If you like we can set this thread as an 'Idea' which would allow the developers to note it for possible inclusion in a future update to the software?

Kind regards,

Paul

Search the WebSite X5 Help Center

Read more
Posted on the from Paul M.
Gabriella T.
Gabriella T.
User
Author

Okay so, I found how to change this manually in the exported files. However, I think it will be reverted the next time I export my project.

Access your ftp, find the page where the form is at, edit it and search "imEmailForm" with ctrl+F.

You should see a line containing something like this : "imEmailForm_fe4qdxo4.php"

Take notes of the second part (fe4qdxo4) and go back in the ftp. Go in the following folder :

Web/imeemail and search for the form with the correct name. Or simply search your whole ftp with "fe4qdxo4" as a keyword.

Now edit your form, you should see a line looking like this :

$form->mailToOwner('***', '***', 'Notification from ' . $imSettings['general']['url'] . '', '', false);

Edit it to change the subject.

Read more
Posted on the from Gabriella T.
Gabriella T.
Gabriella T.
User
Author

Hello Paul,

Yes that would be great, if you are able to do that go ahead, thank you.

Best regards,

Gabriella

Read more
Posted on the from Gabriella T.
Paul M.
Paul M.
Moderator

That's now been done for you, Gabriella.

Read more
Posted on the from Paul M.