Author |
|
Ramses Newbie
Joined: 17 July 2009 Location: Italy
Online Status: Offline Posts: 6
|
Posted: 17 July 2009 at 7:01am | IP Logged
|
|
|
Hi,
in sending the email, leaving the active field "From", allows you to send fake mail.
Can I disable it in some way and to take the default address?
I'm sorry for my bad English.
|
Back to Top |
|
|
Corwin Valued Community Member
Joined: 16 March 2009 Location: Russian Federation
Online Status: Offline Posts: 15
|
Posted: 17 July 2009 at 7:09am | IP Logged
|
|
|
Hm... Maybe I could help but need to know do you use WebMail Lite or Pro, ASP.NET or PHP?
PS: actually, your English is quite nice
Cheers,
Corwin.
|
Back to Top |
|
|
Ramses Newbie
Joined: 17 July 2009 Location: Italy
Online Status: Offline Posts: 6
|
Posted: 17 July 2009 at 7:24am | IP Logged
|
|
|
Thanks,
my version is WebMail Lite Php
|
Back to Top |
|
|
Corwin Valued Community Member
Joined: 16 March 2009 Location: Russian Federation
Online Status: Offline Posts: 15
|
Posted: 17 July 2009 at 7:57am | IP Logged
|
|
|
Exactly the version I'm using for my project, and I'd like to turn off that editable From too. When I find a way to do it I will let you know!
Cheers,
Corwin
|
Back to Top |
|
|
Ramses Newbie
Joined: 17 July 2009 Location: Italy
Online Status: Offline Posts: 6
|
Posted: 17 July 2009 at 8:07am | IP Logged
|
|
|
Thank you very much
|
Back to Top |
|
|
Corwin Valued Community Member
Joined: 16 March 2009 Location: Russian Federation
Online Status: Offline Posts: 15
|
Posted: 21 July 2009 at 7:05am | IP Logged
|
|
|
Can't believe it, I've found it, and it is VERY simple. Maybe you know - afterlogic webmail can work in super powerful ajax mode for modern browsers, and in simpler "classic" mode for older browsers. I think that the fix must be done for both modes. First, let's do it for ajax mode. Open screen.new-message.js file and find two lines, they were lines 420 & 421 for my version:
Code:
inp.tabIndex = 1;
this._fromObj = inp; |
|
|
I have added one small line:
Code:
inp.tabIndex = 1;
inp.disabled = true;
this._fromObj = inp; |
|
|
For "classic" it is more complicated, but not too much Find class_newmessage.php file in "classic" directory, line 346:
Code:
<input class="wm_input" tabindex="1" type="text" size="93" name="from" value="'.ConvertUtils::AttributeQuote($this->From).'" /> |
|
|
We will have to replace it with two lines
Code:
<input disabled="disabled" class="wm_input" tabindex="1" type="text" size="93" name="fromdisabled" value="'.ConvertUtils::AttributeQuote($this->From).'" />
<input type="hidden" name="from" value="'.ConvertUtils::AttributeQuote($this->From).'" /> |
|
|
Could not simply set disabled for that line: message will be sent without "From" in such case!
Hope this helps!
Cheers,
Corwin
|
Back to Top |
|
|
Ramses Newbie
Joined: 17 July 2009 Location: Italy
Online Status: Offline Posts: 6
|
Posted: 22 July 2009 at 7:22am | IP Logged
|
|
|
Hi,
The classic version works with your modified,
the ajax version don't work
Is there another solution? Also delete the field "From".
thanks for your precious help
|
Back to Top |
|
|
Corwin Valued Community Member
Joined: 16 March 2009 Location: Russian Federation
Online Status: Offline Posts: 15
|
Posted: 22 July 2009 at 7:27am | IP Logged
|
|
|
Hmmm... This is very strange, modification worked for me like a charm. I can recommend to clear cache of a browser, maybe unmodified version of javascript file stuck there. Meanwhile, I'll try to modify this in some other way.
By the way: what browser you use?
Cheers,
Corwin.
|
Back to Top |
|
|
Ramses Newbie
Joined: 17 July 2009 Location: Italy
Online Status: Offline Posts: 6
|
Posted: 22 July 2009 at 7:51am | IP Logged
|
|
|
IE 7
FF 3.0
|
Back to Top |
|
|
Ramses Newbie
Joined: 17 July 2009 Location: Italy
Online Status: Offline Posts: 6
|
Posted: 22 July 2009 at 8:26am | IP Logged
|
|
|
I cleaned the Cache, I redid the changes and now everything works.
Now you should only implement the "confirm reading" and will be perfect !!
Thanks again
|
Back to Top |
|
|
marci Valued Community Member
Joined: 15 August 2007 Location: Denmark
Online Status: Offline Posts: 22
|
Posted: 06 August 2009 at 8:38am | IP Logged
|
|
|
Anyway, you should not let your mail server allow that..
|
Back to Top |
|
|