BetaONE will rise again!


Reply
  #1  
Old 5th Jan 04, 04:05 PM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
Hey peeps.

When i send an email using php, it does not send it as HTML instead as normal TXT.
ie: when i send a link to email ---> bla bla

but then it shows the code instead of it being a clickable link.
ie: it shows bla bla

How can i make it be a link and not the code?

thanx
Mo
Reply With Quote
  #2  
Old 5th Jan 04, 07:03 PM
SlickVic78's Avatar
SlickVic78 SlickVic78 is offline
Senior Member
 
Join Date: Sep 2001
Location: New York, USA
Posts: 515
SlickVic78 is an unknown quantity at this point
Hey *MO*,

May we see a code sample of what you a have at the moment?

Thanks,
-SlickVic78
__________________
  • Pentium 4 3.20GHz Processor
  • 1 Gig DDR 400MHz RAM
  • 100 Gig 7200 RPM Western Digital HDD
  • 80 Gig 7200 RPM Western Digital HDD
  • Lite-On LTR-52327S CD-RW Burner
  • Lite-On SOHW-1633S DVD Burner
  • ATI Radeon 9700 Pro
  • Sound Blaster Audigy
  • Microsoft Windows XP Pro SP-2
Reply With Quote
  #3  
Old 6th Jan 04, 09:43 AM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
<?
function sentMail( $from, $to, $subject, $body ) {
$fd = popen("/usr/sbin/sendmail -t","w");
fputs($fd, "To: $to\n");
fputs($fd, "From: $from\n");
fputs($fd, "Subject: $subject\n");
fputs($fd, "X-Mailer: PHP\n");
fputs($fd, "Body: $body\n");
pclose($fd);
}

$aTmp = $message;
$aTmp .= $recieverName;
$aTmp .= $sender;

$sMd5 = md5(serialize($aTmp));

$now = mktime (date("H"),date("i"),date("s"), date("m") ,date("d"),date("Y"));
$Daytoday=date("Y-m-d H:i:s", $now);

$message = "\n\n";
$message .= "Hello $recieverName\n\n";
$message .= "You recieved an e-card from $sender";
$message .= "\n\n";
$message .= "<a href='http://www.jmrhapsody.za.net/index.php?getEcard.php?id=$sMd5''>Click here to read it</a>\n\n";
$message .= "\n";
$message .= "Thank you for using Rhapsody e-cards\nwww.jmrhapsody.za.net";
sentMail( "RHAPSODY E-CARDS", "moosthuizen@mweb.com", "YOU RECIEVED AN E-CARD FROM $sender", $message );

?>
Reply With Quote
  #4  
Old 6th Jan 04, 09:14 PM
SlickVic78's Avatar
SlickVic78 SlickVic78 is offline
Senior Member
 
Join Date: Sep 2001
Location: New York, USA
Posts: 515
SlickVic78 is an unknown quantity at this point
Hey *MO*,

In order for your emails to be sent in HTML form, rather than plain text, you need to send the content-type through within the header. If you don't specify a content-type, it defaults to plain text.

Quote:

$headers .= "--$boundary\r\n"."Content-Type: text/html; charset=ISO-8859-1\r\n";
That should allow the user who receives your email to see the link in proper form, and not all the code.

Hope this helps,
-SlickVic78
__________________
  • Pentium 4 3.20GHz Processor
  • 1 Gig DDR 400MHz RAM
  • 100 Gig 7200 RPM Western Digital HDD
  • 80 Gig 7200 RPM Western Digital HDD
  • Lite-On LTR-52327S CD-RW Burner
  • Lite-On SOHW-1633S DVD Burner
  • ATI Radeon 9700 Pro
  • Sound Blaster Audigy
  • Microsoft Windows XP Pro SP-2
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Novell responds to Microsoft email NewsBot NeoWin News 0 28th Oct 04 10:00 PM


All times are GMT +1. The time now is 03:28 PM.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.