Thanks, I have a work around. What is returned was actually something when converted to string was actually:
[u’firstname.lastname@example.org’] including the brackets and single quotes. When it was used as a from address in the following code, it would not send:
system.net.sendEmail(smtpProfile=“Google SMTP”,fromAddr=emailFrom, subject=emailSubject, body=emailBody, html=1, to=emailrecipient1)
So I used regular expression substitutions to remove the extraneous characters and it works.
It does not seem to be considered a string because in the following code, unless I converted to string, I would get an error that the function did not work on a list object. The string does come from a Dropdown component.
emailFrom = re.sub(‘u’’,’’,str(emailFrom))
emailFrom = re.sub(’[’]’,’’,str(emailFrom))