Email form not sending text

I’m using the ewemail form to insert some text.

This code below inserts the text into an email when sending…

<?php echo $Language->phrase("EmailFormSubject") ?>

This does not work below… I can see the data using placeholder=, but sends blank message, but when changed to value= it also sends blank message. (if I enter text into the text box by hand, THAT text WILL be sent in email).

<?php echo $Language->phrase("EmailFormMessage") ?>

Any help would be greatly appreciated!

Did you change the script in the generated ewemail.php file?

I did. All the variables are being passed. I can view them in the email modal popup. The to:, from:, and subject will all get sent in the email. The message will not for some reason.

<?php $sRecipientEmail = ""; CurrentPage()->user_email->CurrentValue; CurrentPage()->user_name->CurrentValue; if (CurrentPageID() == "view") { $sRecipientEmail = CurrentPage()->user_email->CurrentValue; $username = CurrentUserName(); $email = CurrentUserInfo("user_email"); } ?>

You should not change the generated code, since that file is used by Export to Email.

mobhar wrote:

You should not change the generated code, since that file is used by Export
to Email.


How do I get the email addresses populated into the popup modal form? Isn’t that what it’s used for? I’m using it from a “view” page, so a server event is not running.

Thank you.

You need to enter the email address manually in that form.