Jump to content

[SOLVED] php mail help


NSW42

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.