NSW42 Posted April 1, 2007 Share Posted April 1, 2007 heya, my validation send email all works fine, but one thing im having trouble is with, when the email is sent and it says to click link to activate your account, you cant click on the link, they have to copy and paste it which is driving me nuts to why and for users that are not net wise, they dont know how to copy and paste, they either forget about it or keep registering thinking they have done something wrong, any help would be great...below is the coding. // EMAIL $from = "[email protected]"; $subject = "blot Account Activation"; $message = "Hi there,\n". "You just signed up at MGN blot.\n". "Before you can use your account, you must visit the following link.\n\n". "$siteurl/validate.php?vc=$valid\n\n". "You can then login."; // mail($email_address,$subject,$message,$from); require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "mail.blot.com"; $mail->SMTPAuth = true; $mail->Username = "[email protected]"; $mail->Password = "blot"; $mail->From = $from; $mail->FromName = "blot"; $mail->AddAddress($email_address,"New Member"); $mail->WordWrap = 50; $mail->Subject = $subject; $mail->Body = $message; $mail->AltBody = $message; if(!$mail->Send()) echo "Message was not sent - " . $mail->ErrorInfo; else $result = false; // END EMAIL Link to comment https://forums.phpfreaks.com/topic/45101-solved-php-mail-help/ Share on other sites More sharing options...
poirot Posted April 1, 2007 Share Posted April 1, 2007 Replace this: "$siteurl/validate.php?vc=$valid\n\n". With "<a href=\"$siteurl/validate.php?vc=$valid\">Click here</a>\n\n". Link to comment https://forums.phpfreaks.com/topic/45101-solved-php-mail-help/#findComment-218942 Share on other sites More sharing options...
NSW42 Posted April 1, 2007 Author Share Posted April 1, 2007 Hey and thanks, that worked great, but is there any way to actually make the link show at all ? Link to comment https://forums.phpfreaks.com/topic/45101-solved-php-mail-help/#findComment-218946 Share on other sites More sharing options...
NSW42 Posted April 1, 2007 Author Share Posted April 1, 2007 will leave it as is and will put solved and thanks again Link to comment https://forums.phpfreaks.com/topic/45101-solved-php-mail-help/#findComment-218955 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.