Created
March 7, 2011 14:27
-
-
Save jmertic/858555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sea = new SugarEmailAddress; | |
// Add a primary email address | |
$sea->addAddress($primaryemailaddress, true); | |
// Add an invalid email address | |
$sea->addAddress($primaryemailaddress, false, null, true); | |
// Add an email address that should be marked opt-out | |
$sea->addAddress($primaryemailaddress, false, null, false, true); | |
// Associate the email address with the given module and record | |
$sea->save($record_id, "module_name"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment