Hi again, Any thoughts? Any ideas?
Thanks & best regards, Dumi. ----- Original Message ----- From: Dumitru Ban To: [email protected] Sent: Tuesday, May 29, 2007 11:14 AM Subject: [Mono-dev] MailDefinition patch Hi, I'm trying to create a patch for the MailDefinition (System.Web.UI.WebControls) and I'm not sure what's the best way to do it. The problem is in the CreateMailMessage (string recipients, IDictionary replacements, Control owner) method. If the BodyFileName is present and it's rooted everything works fine. If it's not rooted, it is combined with the owner's TemplateSourceDirectory. And this is not working :( I'm using the MailDefinition from a CreateUserWizard. Both the aspx containing the CreateUserWizard and the mail file are in the same directory, "users". If I set the BodyFileName for the wizard to "~/users/createaccount.txt", the combined path is something like this: "/myapp/~/users/createaccount.txt". And this is because there's no check for "~/". If I set the BodyFileName to "createaccount.txt", the combined path is something like this: "/myapp/users/createaccount.txt". This one looks fine, except that it's a virtual path and the StreamReader in the CreateMailMessage is looking for a physical path. How should be the mail file accessed? Using virtual paths or physical paths? Also, what about the permissions of the mail file? P.S. Attached is a sample error. Thanks & best regards, Dumi. __________ NOD32 2294 (20070528) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com ------------------------------------------------------------------------------ _______________________________________________ Mono-devel-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-devel-list __________ NOD32 2294 (20070528) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
_______________________________________________ Mono-devel-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-devel-list
