Tổng Bài đăng:
10
Karma:
60
Đã tham gia:
10/07/2010
Vị trí:
Portugal
Hi, I'm trying to change the SUBJECT of the default e-mail message in the form Contact Us, but without success. I'm changing the ContactUs.ascx.cs file in Modules, and specifically the subject variable but it isn't working because the Subject is always the same "StoreName. Contact us". Any idea about why this isn't working? Thanks in advance, Victor
MVP
Đối tác giải pháp hạng đồng
Tổng Bài đăng:
2898
Karma:
23165
Đã tham gia:
08/01/2010
Vị trí:
United States
Go to ContactUs.ascx: see this: if (String.IsNullOrEmpty(txtEnquiry.Text)) return; string email = txtEmail.Text.Trim(); string fullName = txtFullName.Text.Trim(); string subject = string.Format("{0}. {1}", this.SettingManager.StoreName, "Contact us" ); You can change it here. Once you're done, you need to RE-COMPILE the project (if you don't recompile, you won't see any change) P.S. If you're making any kind of change in .CS file, you need to RE-COMPILE the project
Tổng Bài đăng:
17
Karma:
185
Đã tham gia:
11/10/2009
Vị trí:
Portugal
For 2.40: edit Controllers\CommonController.cs if (ModelState.IsValid) { string email = model.Email.Trim(); string fullName = model.FullName; string subject = string.Format("{0}. {1}", _storeInformationSettings.StoreName, "Contact us "); Recompile and upload \bin\Modified *.bin