I actually tried that, but that didn't work either this is what I did.
Add-PSSnapin PSCX
Add-PSSnapin PowerGadgets
$eSMTPServer = "ip address"
$eFrom = "emailaddress"
$eSubject = "PIN Code"
$Path = "C:\Scripts\FinalOut.csv"
$PIN = invoke-sql -server 'server' -database 'db' -sql "select ea.email, pc.First_name, pc.PIN from tblEmailaccounts ea inner join tblUsers us on ea.displayname = us.displayname inner join tblPINCodes pc on ea.displayname = pc.displayname where us.grouping like '515%' order by us.displayname, ea.displayname, pc.displayname"
#$PIN|Export-Csv $Path
$fn = Import-Csv $Path|select First_name
$PINC = Import-Csv $Path|select PIN
$fnm = $fn.trimend()
$PINK = $PINC.trimend()
foreach($PINS in $PIN){
$message = "Hello $fnm, a new multi-function copier/printer will be placed in your area soon. Your PIN code is $PINK and it is to use the copier function and make copies. The PIN code is not necessary for normal printing, only copying, scanning, and secure printing. Please do not give it to anyone else or post it somewhere publicly. If you have any questions please call x7600. Thanks"
$message
}
Write-Host $PINC
Write-Host $fn
I didn't add the email because I wanted to see what the output would be. The message gives blanks for the first name and the pin code.
???