bubblybabs Posted May 1, 2007 Share Posted May 1, 2007 For my eCard site I have information sent to me (I know this isn't all useful info, alot of it is me playing around to see what I can do and can't do), here is the coding to send the email: // Sent to eCard owner $emailer = new emailer(); $emailer->From = $from_email; $emailer->FromName = $from_name; $emailer->AddReplyTo($from_email, $from_name); $emailer->Subject = 'Owner: An FEUsers eCard has been sent!'; $emailer->Body = " CardID: $cardid From Name: $from_name From Email: $from_email\r\n To Name: $to_name To Email: $to_email\r\n IP from compose.php: $composeIP IP from processCompose.php: $pC_ip\r\n From Remote Port: $from_remoteport Script Filename: $from_script_filename\r\n From Server Address: $from_server_address From Server Name: $from_server_name Document Root: $from_document_root\r\n HTTP Cookie: $HTTP_cookie You may view the card at:\r\n$sitePath/viewcard.php?cardid=$cardid\r\n Card Text (sorry, this will have the HTML embedded into it, it'll be easier to view the eCard itself):\r\n$cardtext\r\n\r\n"; $emailer->AddAddress($siteEmail, $siteName); if(!$emailer->Send()) { echo "There has been a mail error sending to $to_email <br>"; echo $sendcard04; } =============== The email winds up looking like this: CardID: 1178050033 >From Name: Babs >From Email: [email protected] To Name: Babsywabsy To Email: [email protected] IP from compose.php: 25.10.174.123 IP from processCompose.php: 25.10.174.123 >From Remote Port: 50577 Script Filename: /home/..../public_html/file.php >From Server Address: 25.10.123.123 >From Server Name: www.........com Document Root: /home/.../public_html HTTP Cookie: PHPSESSID=94082a08759de1045a5b97e5725bb435 =========== Why does each line that starts with an F have a > in front of it? I can't seem to get rid of it... Thanks, Babs Link to comment https://forums.phpfreaks.com/topic/49537-solved-problems-with-a-in-front-of-the-letter-f/ Share on other sites More sharing options...
kenrbnsn Posted May 1, 2007 Share Posted May 1, 2007 That's a result of how SMTP email is processed. Anytime the mail processing program sees a line beginning with the word "From" in the body of an email message it will prepend the ">" character to the line. This is to prevent this line from being interpreted as a "From" header. How to avoid it .. change the text at the beginning of the line to something like "Sent from". Ken Link to comment https://forums.phpfreaks.com/topic/49537-solved-problems-with-a-in-front-of-the-letter-f/#findComment-242846 Share on other sites More sharing options...
bubblybabs Posted May 1, 2007 Author Share Posted May 1, 2007 Ahhhh! Many thanks for the info, much appreciated! Babs Link to comment https://forums.phpfreaks.com/topic/49537-solved-problems-with-a-in-front-of-the-letter-f/#findComment-242887 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.