Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5312 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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?

Posted (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 by Guest
Posted

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?

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.