6/2/2010 5:22:22 PM
Title:
Newbie questions on Flex for email notification and form review
Hi All,
My application built using Coldfusion, Flex and MySQL as the back end needs to have the below abilities.
1. An ability where on submitting a flex form, 3 people(form submitter and the form reviewers) should be notified via email.
2. Ability to provide comments to the submitted form data like the Review and Track option of MS-Word.
For 1, to test if that functionality works, what would be advisable? Should I run my own email server to which the application can talk and use for sending emails via the cfmail tag of Coldfusion? I am doing the development on a XP professional box with 3GB of RAM. Or, are there other better ways to test that application? I tried SpoolMail(http://spoolmail.riaforge.org/), from RIAForge. It adds a piece to the CF Administrator that lets you view mail in ColdFusion's undelivered folder. But, still I am not able to see any mails in the ColdFusion's undelivered folder since the cfmail tag in Coldfusion is failing. There is a try catch block and it is going inside the catch block since I don't have an actual mail server running.
For 2, I was thinking of providing some boxes after each form field, where the reviewer can enter his comments. Like Field 1 has some data "ABC method is advisable", reviewer can add something like "ABC method is not advisable because of time constraints" in a field below or adjacent to it. But, users here want something like the Review and Track option of MS-Word, where the reviewer can highlight the required text, and add a comment. Is doing that or something similar to that possible? If so, any suggestions in that direction would be appreciated.
Any advice would be welcome.
Thanks
Kiney
Points: 530
Posts:0
6/2/2010 9:05:30 PM
hi chris regarding the email testing , for my php and .net projects i don't use mail server. I just comment the email sending code and rather print the email content or some text like "mail sent to.. from... title...message...". It confirms me that the logical part of my application is working correct. The email sending part is not something to worry, since it is always working well on your online server. You can text your online server by creating a test email page, if it works then its fine. I just uncomment the email code after application local testing and upload on my server and it works fine.
For 2 In flex you can use a button to add the comments which , can point to selected text or the component that was in the focus. For comments you can create a small component with textbox and a cross button inside to delete the comments. And a function inside that component to draw a line using graphics class which points to selected text or component.
Rayan
Points: 690
Posts:0
6/2/2010 10:51:59 PM
check this dummy SMTP server that you can use for development and testing
http://smtp4dev.codeplex.com/
following is the code to use and settings
MailMessage myEmailMessage = new MailMessage();
string messageBody = "This is the content of the email message";
myEmailMessage.Body = messageBody;
myEmailMessage.Priority = MailPriority.Normal;
myEmailMessage.From = new MailAddress("test@test.com");
myEmailMessage.Subject = "My test subject";
myEmailMessage.IsBodyHtml = false;
SmtpClient mySmtpClient = new SmtpClient();
mySmtpClient.Host = "127.0.0.1";
mySmtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
mySmtpClient.Send(myEmailMessage);
6/3/2010 8:22:13 AM
Hi Kiney and Rayan,
Thanks for your responses.
Kiney,
1. For some modules the email sending worked properly and for some it did not. The person who was doing it told me he commented the modules which did not. So, I need to determine why it does not work for the other modules so need a mail server. The modules syntactically look OK.
2. Do you have any examples/links for what you suggested? What you advised is very correct and I have to develop something along those lines.
Rayan,
Thanks for the dummy SMTP mailserver. I will test it out and post back.
Thanks again to both of you.
6/16/2010 4:01:12 AM
Hi Everyone
I m facing a problem when i used a combo box as a item editor in AdvanceDatagrid in flex.
When i click on particular cell then combobox will be visible it is ok but background text mins(advancedatagrid cell text) also visible. which is not looking good.
Please give me a solution if all of u have.
Thank you in advance
6/16/2010 7:35:03 AM
@vijay can you share the image screenshot , to show about which text are you taking .