 |
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
|
|
|
|

December 12th, 2009, 04:25 AM
|
|
Registered User
|
|
Join Date: Dec 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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>
|
|

December 19th, 2009, 12:52 PM
|
|
Registered User
|
|
Join Date: Dec 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

December 20th, 2009, 05:24 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
>> this forum also do not support me.
Just as you're not supporting future readers by telling *how* you fixed it.... ;-(
Imar
|
|

December 20th, 2009, 11:40 AM
|
|
Registered User
|
|
Join Date: Dec 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
glad to get reply from your side.
so you mean I describe the solution here??
plz reply
|
|

December 21st, 2009, 03:51 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |