Export to Email Default value

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Bishu
User
Posts: 429

Export to Email Default value

Post by Bishu »

PHPMaker 10. I would like to have a default value in the export to email as which to be shown in the "TO" text field when I click "Export to Email"
I tried by putting the code in Server Events->Table Specific->Common->Email_Sending
$Email->Recipient='myclientemail";

but it doesn't show in the field of "TO" in the popup export to email.


Webmaster
User
Posts: 9430

Post by Webmaster »

Add the default value in the email form "ewemail10.php".


mobhar
User
Posts: 11746

Post by mobhar »

You cannot use Email_Sending server event for changing the recipient email in the Email dialog box.

To do that, then customize the code in "ewemail.php" from the template file.

Find this code:
<td><span class="phpmaker"><input type="text" name="recipient" id="recipient" size="30" /></span></td>

then change it become, for example:
<td><span class="phpmaker"><input type="text" name="recipient" id="recipient" size="30" value="yourclientemail@thedomain.com" /></span></td>


mobhar
User
Posts: 11746

Post by mobhar »

For PHPMaker 10, find this code:
<div class="controls"><input type="text" name="recipient" id="recipient" size="30" /></div>

then change it become (for example):
<div class="controls"><input type="text" name="recipient" id="recipient" size="30" value="yourclient@emaildomain.com" /></div>


Post Reply