Jump to content

Recommended Posts

Ok i am trying to make a mail in php form a activation mail for user that signed up .
I have a problem defaining the massage variable as i want : eg
[code]
$message = "Congratulation \r".$_POST['RUSERNAME']." \r for signing up with MMODATE your one step from beeing an active memeber of MMODATE<BR><BR>". 'Please click on this link to activate your account <BR> <a href= "http://localhost/Yanivs/MMO-Date/Activation.PHP?' .$checkbig'">http://localhost/Yanivs/MMO-Date/Activation.PHP?<a>';
[/code]

Well the problem is i am trying to make this link which i dont know how to make a link in PHP i know only in HTML so i am useing ' instead of " and trying to combain between the 2 and its not working tryed about 10000 time in millions diffrent ways .

Please if someone tell me how to make a link in PHP or just how to solve this it would be amazing.
Any help will be appricated.
Link to comment
https://forums.phpfreaks.com/topic/13224-trying-to-send-activation-mail-and-help/
Share on other sites

I'm not sure exactly what the problem is, but why not try constructing things like so...

[code]
$link = 'http://www.yoursitehere.com/';
$message = 'Some text blah blah blah<br />';
$message .= 'Click the following link<br />';
$message .= '<a href="' .  $link '">LINK HERE<a>';

// send email now
[/code]
You wait around! You've only given it 45 minutes atleast wait for about 2-3 hours first. You'll probably find no one understand what you are trying to do or how to help as what you asking maybe out of our members expertise.

I think I know what the problem is chnage this:
<a href= "http://localhost/Yanivs/MMO-Date/Activation.PHP?' .$checkbig'">http://localhost/Yanivs/MMO-Date/Activation.PHP?<a>';
to the folloiwng
<a href= "http://localhost/Yanivs/MMO-Date/Activation.PHP?' .$checkbig [!--coloro:red--][span style=\"color:red\"][!--/coloro--][b].[/b][!--colorc--][/span][!--/colorc--] '">http://localhost/Yanivs/MMO-Date/Activation.PHP?<a>';

You was missing a dot thats all. Also you make sure you have defined in your email header that the the content is html. Otherwise your hml will be displayed as normal text.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.