Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling From email address in CE 10

Status
Not open for further replies.

regid

Technical User
Jun 2, 2005
3
US
I'm new to our Crystal Enterprise world and have been told that it is not possible to set either a system enbedded return/from email address when scheduling outgoing reports.
I'll take hardcoded solutions, parameter solutions, system defaults, anything that will either override what a user may type in as the from email address or something that would not allow the user to type anything and force a "pre-defined" email address in the from field.

Any ideas would be great --- thanks.
 
I think you may be able to modify the CSP to remove the FROM field prompt from the ePortfolio screen, and then set your FROM e-mail as a default in the SMTP settings in the CMC.

Don't have any code to share, but that would be how it would attempt it.
 
MJRBIM is correct. I can provide you V9 and maybe V10 code if you need it. We se the From address in the report server SMTP destination config and do not display the field on the ePortfolio schedule form. It's been awhile; the Write statement may just be commented out?
 
Thanks for the direction -- I have asked our team to check it out and let me know. MDWYER if you can provide the V10 code it would be great. Thanks again.
 
In V10, the From address is displayed in destination.csp. Locate the variable (search for the string) L_SENDERADDRESS and the code that displays it with a Response.Write method. Here is my customization:
Code:
//Response.Write("<table align='center' width='100%' cellspacing='0'><tr><td class='schedule'>"+L_SENDERADDRESS+":&nbsp;"); Drop. v9 customization
//Response.Write("</td><td class='schedule'>"); Drop. v9 customization
Response.Write("<table align='center' width='100%' cellspacing='0'>"); // Add. v9 customization

Response.Write("<input type='hidden' style='width:200' class='schedule' name='saddress' value=\""+Server.HTMLEncode(saddress)+ // was type='text' - v9 customization
            "\" onkeydown='keydownfn(event, \"SendInfo\");'>");

//Response.Write("</td></tr>") <TR><TD> was removed above. v9 customization
The first two lines commented out start an html table, the first row, and 2 data cells. This row is the From: address.
The replacement line just starts the table. The next line defines the input field for the From address, but it is changed from visible (text) to invisible (hidden). The last line is commented out because it terminates the row and data (tr and td) tags that were in the first line, which was commented out.

This code is also found in CE9 in schedule.csp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top