I am adding a cfmail
tag on one of my websites and the code works fine on my developer server, but when I upload it to the production it doesn't want to work. I have checked the log files, and CF does not show me any errors or undelivered emails. Also I compared my code with other working websites and I did not see any differences that could cause the issue.
Below is my code, please let me know if you see an error, and also have in mind that this code works on development server which has the same configuration with the production server.
<cfif sjResponse['szIsApproved'] eq '1' >
<cfmail to="#Email#" type="html"
from="#trim(replace(myStruct.sitename, " ", "", "all"))#"
subject="Your credit card has been approved for processing">
<cfmodule template="example.cfm" attributeCollection="#myStruct#">
</cfmail>
</cfif>
Thanks for the help
Answer:
from="#trim(replace(myStruct.sitename, " ", "", "all"))#"
That was my mistake. I had the wrong variable in the code. I had to put myStruct.email instead and I just saw it
That was my mistake. I had the wrong variable in the code. I had to put myStruct.email instead and I just saw it