I am using this code to generate an email address to enter into the DBâŚ
[code}
$sea = new SugarEmailAddress;
// Add a primary email address
$sea->addAddress(âWTFâ.round(rand()*100).â@aol.comâ, true);
$sea->save($bean->id, âLeadsâ);
The DB entry looks like thisâŚ
id : 435539c8-e9b9-c6a2-34c5-57dadd30814f
email_address : walter@aircriticalcare.com
email_address_caps : WHOTHEFUCK99392092200@AOL.COM
invalid_email : 0
opt_out : 0
date_created : 2016-09-15 17:44:00
date_modified : 2016-09-15 17:44:29
deleted : 0
[/code]
Why is the email address and the email address caps different? The email address is my admin email and it should be what I enter in the $sea->saveAddress function .
The really weird part is that after doing multiple entries some of the email addresses and the caps version are the same while in other entries they are different with the email address being my admin address and the all caps being the address that was generatedâŚ