kadamsurekha Posted March 14, 2007 Share Posted March 14, 2007 hello friends! i want to send email through my php code and activate the account. my code is as follows:- <? $message="To complete the registration process all that you have to do is to click on the following link: <a href=\"http://www.msht.com/verify.php?id=<? echo $myguid; ?>&status=<? echo 'active'; ?>\">Click the link to activate </a> (If your email program does not let you click the above link directly, you can copy and paste it into your browser.)"; $to=$_post['username']; $subject="activate account"; $headers="msht.com"; $mail_sent = mail( $to, $subject, $message, $headers ); ?> the o/p is as follows:- the mail is sent and received to the user as follows:- To complete the registration process all that you have to do is to click on the following link: <a href="http://www.msht.com/verify.php?id=<? echo 130887091045f7e8ea7426f1.36425898; ?>&status=<? echo 'active'; ?>">Click the link to activate</a> (If your email program does not let you click the above link directly, you can copy and paste it into your browser.) can any1 tell me wht is the pbm???????? why the link doesnt come properly. i tried to echo the string $message on my system i get it properly. but then why not when it reaches as a email??????????? plse help???????????????? thx n regards Link to comment https://forums.phpfreaks.com/topic/42676-email-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.