Method Community

 

error sending email or showing messages in loop

Last post 06-22-2010 9:50 AM by Anonymous. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-18-2010 9:09 AM

    • sgis
    • Not Ranked
    • Joined on 01-03-2010
    • Posts 2

    error sending email or showing messages in loop

    I am trying to look through an activity grid to send email notifications to my clients. I loop through the grid and get the customer entity and use that to get a new field I added to my table called "NotificationEmail", I copy this into a local ActionResult and then generate a notification report and put the contents of NotificationEmail ActionResult into the MailTo field. The potential bugs are

     

    1) If there is a semicolon in the email address then I get a 501 error stating that the email address is malformed and the email address it shows starts with the first semicolon in the address and goes to the character before the next semicolon or end. For example, if the email address is:   site1@client1.com;manager1@site1.com;other1@site1.com, the error message would show ";other1@site1.co"

    2)If I put a message box to display the NotificationEmail to me just before the SendEmail instruction, the email displays correctly, I do not get a 501 error message and the email sends just fine.

    3)If I put in a message box inside the loop, the loop only executes one time. It does not reloop and the message does not display for each row in the grid.

     

    Can anyone confirm this behavior and is there a work around. The message box preventing a loop from occuring makes development very difficult. The email address problem makes the system much less useable.

     

    Stephen Gissendaner

    Clean2Play, ll

    (205) 447-7447

    Stephen Gissendaner
    Clean2Play, llc
    (205) 447-7447
  • 06-22-2010 9:50 AM In reply to

    Re: error sending email or showing messages in loop

     Hey Stephen,

    I will need some time to test this out, I will post something this afternoon.

Page 1 of 1 (2 items)