Paul Spafford Posted May 3, 2010 Posted May 3, 2010 Hey everyone, A client is using this plug-in for mass emails (looped through, one at a time). While trying to send about 1300 individual emails, about 100 of the email addresses were changed to include some strange characters in them. For example, an email of [email protected] became the following: "ÿHarvey.Wallbanger"@something.gc.ca It inserts the quotes, and that foreign character at the beginning -- but it is not always the same character! Here is the formula that is used to create and send the email. EmailCreate( $$userEmail ; CONTACT::email ; CONTACT::zcg_emailSubject ) and If ( CONTACT::zcg_emailAttach ; EmailAttachFile( CONTACT::zcg_emailAttach ) ; 1 ) and EmailSetBody( CONTACT::emailPluginMessage ; "text/plain" ) and EmailSetBody( CONTACT::zcc_encodedEmailMessage ; "text/html" ) and EmailSetHeader( 1 ; 1 ) and EmailSend
Smef Posted May 4, 2010 Posted May 4, 2010 It looks like there is a problem with the CONTACT::email field. I recommend stepping through your script using the script debugger and the data viewer so that you can see what value is being passed in by that field as you loop through the records.
Paul Spafford Posted May 4, 2010 Author Posted May 4, 2010 I just tried that again, and no joy. The CONTACT::email field is only holding the email address -- without the extra characters -- when I look at it on the layout, OR in the data viewer. I stopped short of actually sending the email, so that it wouldn't actually send an email to their clients. But the email field looked good before and after. Any ideas?
Smef Posted May 4, 2010 Posted May 4, 2010 (edited) Try a test function call by hard-coding the email address into the function parameter manually. This should help you tell if there is a problem with your calculation. Edited May 4, 2010 by Guest
Paul Spafford Posted May 7, 2010 Author Posted May 7, 2010 Thanks, David. I'll give that a try. They get a lot of these addresses by copying and pasting from Web sites. Is there a chance that they have accidentally brought along some illegal, invisible characters?
Smef Posted May 7, 2010 Posted May 7, 2010 That is quite possible. It is very easy to accidentally catch a space, line break, or return that you may not notice when copying and pasting text.
Recommended Posts
This topic is 5312 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now