ron814 Posted August 18, 2010 Share Posted August 18, 2010 Hello I would like to know how to create an email message with web page displayed and all its links are able when the email message received. below here im using php mailer to send email message but i want to send plain text and webpage displayed/embed. require_once('class.phpmailer.php'); $message = $_POST['msg']; $subject = $_POST['subject']; $body = "<table><tr><td>$message</td></tr></table>"; $mail = new PHPMailer(); $mail->AddAddress('test@yahoo.com'); $mail->SetFrom('myemail@yahoo.com'); $mail->Subject = $subject; $mail->MsgHTML($body); $mail->Send(); I would be greatfull for your help. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted August 18, 2010 Share Posted August 18, 2010 What do you mean? These two things don't really go together . . . Unless you're actually talking about sending a multipart email. i want to sent plain text and webpage displayed. Quote Link to comment Share on other sites More sharing options...
ron814 Posted August 18, 2010 Author Share Posted August 18, 2010 I mean that i want to send email message with plain text and embed a web hosted image. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted August 18, 2010 Share Posted August 18, 2010 It would have to be an HTML formatted email, not a plain text email, then you can simply use the regular <img> tags for the image. Quote Link to comment Share on other sites More sharing options...
ron814 Posted August 18, 2010 Author Share Posted August 18, 2010 What if I want to view the whole website page in the email message. What tag should I use? It would have to be an HTML formatted email, not a plain text email, then you can simply use the regular <img> tags for the image. Quote Link to comment Share on other sites More sharing options...
haku Posted August 18, 2010 Share Posted August 18, 2010 Email and webpages are different things. You can't just embed a webpage in an email (well you could, but it won't look right on most mail clients). You generally need to re-code the entire web page to be able to view it. Email clients are generally like browsers were about 8-10 years ago. Tables, inline CSS, and not a lot of cross-client support for CSS. The short answer to your problem is that you can't really do what you want. Quote Link to comment Share on other sites More sharing options...
ron814 Posted August 18, 2010 Author Share Posted August 18, 2010 thank you so much! better luck next time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.