• Advertisement


This topic is now archived and is closed to further replies.

Php, e-mail and images.

This topic is 5625 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a php script that sends an e-mail to the e-mail address with a picture in it. First of all, for those who know php (or even C, they''re almost identical), this is the code that I have to e-mail:
if(empty($name_friends[$i]) == false && empty($email_friends[$i]) == false)
					$email_content= "
							To:			$name_friends[$i]\n
							From:		$user_fname $user_lname ($user_email)\n\n
							<embed src=\"http://www.tru-motion.com/images/RizcoEmailReferrals.jpg\"> ";

					mail($email_friends[$i], "From $user_fname $user_lname", $email_content, $user_email);
				} //end if

But, whenever I open the e-mail sent by the script, instead of the image being displayed, the html used is in its place instead. How can I do this? If any of you could help it would be awesome. Thanks.

If you keep on dividing (man) you end up as a collection of monkeys throwing nuts at each other out of separate trees." - Merlyn, The Once and Future King (T.H. White)

Share this post

Link to post
Share on other sites

  • Advertisement