wmguk Posted June 1, 2008 Share Posted June 1, 2008 hey, I'm really struggling with this, my code is: $mail->setFrom('Photography <"$email">'); however when the email comes through it is from "$email" , not $email (should be [email protected]) i tried it with out the "" too, but I just dont know how to get it to insert the value of $email (this is set from a query $email = $row['email']; any ideas how to break this code up? Link to comment https://forums.phpfreaks.com/topic/108291-solved-var-shows-as-var-not-the-value/ Share on other sites More sharing options...
LooieENG Posted June 1, 2008 Share Posted June 1, 2008 $mail->setFrom('Photography <"' . $email . '">'); (if you want "Photography <"[email protected]">") or $mail->setFrom('Photography <' . $email . '>'); (if you want "Photography <[email protected]>") or $mail->setFrom('Photography ' . $email); (if you want "Photography [email protected]") Link to comment https://forums.phpfreaks.com/topic/108291-solved-var-shows-as-var-not-the-value/#findComment-555185 Share on other sites More sharing options...
wmguk Posted June 1, 2008 Author Share Posted June 1, 2008 done! thank you, I had tried with . but hadnt closed the php ' Thank you once again Link to comment https://forums.phpfreaks.com/topic/108291-solved-var-shows-as-var-not-the-value/#findComment-555191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.