Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 12th, 2009, 04:25 AM
Registered User
 
Join Date: Dec 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question how do I send html mail with image link???

hi,

I am making a application for newsletter all the codes are works but images cannot display and its comes like link break, even I use ur coding as it is, but still same here below I say some dtails.
when I use variable for take the html stuff from the Form so it cant, here below my code with Form.

PHP Code:
<?php
$headers 
"[email protected]";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Reply-to: Me <[email protected]>\r\n";
$headers .= 'X-Mailer: PHP/' phpversion()."\n";

$subject $_POST['subj'];
$message $_POST['msg'];
    
$to '[email protected]';

    if(
mail($to$subject$message$headers)){
            echo 
'sent successfully';  //success
        
}else{
             echo 
'some error.';//error
        
}
        
?>
<form action="try.php" method="post">
subject : <input type="text" name="subj"><br />
Message : <textarea name="msg" cols="60" rows="5"></textarea> <br />
<input type="submit" name="submit" value="submit">
</form>
 
Old December 19th, 2009, 12:52 PM
Registered User
 
Join Date: Dec 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default solved!!

I got answer and I fix this problem my self.

just like this book (madam Naramore & other) this forum also do not support me.

I hope the performance should be better in future.

Thanks
 
Old December 20th, 2009, 05:24 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> this forum also do not support me.

Just as you're not supporting future readers by telling *how* you fixed it.... ;-(

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 20th, 2009, 11:40 AM
Registered User
 
Join Date: Dec 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

glad to get reply from your side.

so you mean I describe the solution here??

plz reply
 
Old December 21st, 2009, 03:51 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, that's what I meant. Of course you're not required to do so, but a future visitor to this forum with the same problem as you initially had will greatly appreciate it if they found the actual solution here, rather than a "never mind, I fixed it"....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I send html mail with image link??? i_m_9415 PHP How-To 1 December 17th, 2009 04:32 AM
Urgent - Send mail with plain view and html view ashish.dadhwal ASP.NET 2.0 Professional 0 November 27th, 2008 01:49 AM
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
Send mail with image. dpkbahuguna Beginning VB 6 0 June 19th, 2007 06:47 AM
how to send activation link with e mail spbharti PHP How-To 2 December 28th, 2005 09:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.