May 3, 201015 yr 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
May 4, 201015 yr 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.
May 4, 201015 yr Author 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?
May 4, 201015 yr 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, 201015 yr by Guest
May 7, 201015 yr Author 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?
May 7, 201015 yr 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.
Create an account or sign in to comment