sending mail using php?

Mittul Chuahan

New member
hello .. i have been using PEAR Email package to send mail using php with smtp connection ..

but m getting some problems as far as the body part of email .. here is my script ..

--------------------------------------------------------------------------------------------------------------------------------
mytry.php
--------------------------------------------------------------------
$websitellink = '<a href="http://www.mywebsitelink.com" target="_blank">here</a>';
include('Mail.php');
$mail = Mail::factory("mail");
$headers = array("From"=>"[email protected]", "Subject"=>"Your Account Created");
$body = "Your Account has been created by Admin. \n";
$body .= "Username : $username \n";
$body .= "Password : $password \n";
$body .= "Company Name : $company \n";
$body .= 'You can now login from $websitellink';
$mail->send("[email protected]", $headers, $body);

--------------------------------------------------------------------------------------------------------------------------------

but when i receive the email .. m not able to get the ANCHOR tag link "here" which i have modified in WEBSITELINK variable there .

i have also tried this instead of using the variable ..
----------------------------------------------------------------------------
$body .= 'You can now login from <a href="http://www.mywebsitelink.com" target="_blank">here</a>';
----------------------------------------------------------------------------

but wen m receiving an email .. m able to see the whole ANCHOR text which i have typed here ..

can somebody help me .. what is the exact method to display ANCHOR text during the email sending ..
 
Back
Top