Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Register on my site for a test.....
#1
I will wipe the db in a few hours....
I'm working on sum stuff, and jsut need to know a few things....

Just use fake names, but real e-mail addresses, plz (no, im not going to use ur e-mails, but an e-mail will be sent...)

Register here

Oz~
Reply
#2
http://atosoftqb.digitalblackie.com/register.php

is the link to those who are too lazy to click ozzie's broken [ url ] tag.

Quote:In a few moments, our system will e-mail you with your password, and activation link.An e-mail was sent to you (lordofpotato@yahoo.com) with your password.

Put a space in between the words "link." and "An e-mail"

You shouldn't use HTML e-mails, some people have them turned off and it looks silly. Additionally, the e-mail I received had no "activation link," and only contained text.

Logging in results in the following message:

Your username is </HTML
ammit potato!
Reply
#3
The message probably needs to be sent as an HTML email rather than a plain text one... Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#4
i received the same result as potato.
Jumping Jahoolipers!
Reply
#5
I've html turned on (it works in other messages) so Im guessing theres something wrong with how it is done, maybe you need to send a content-type header or a mime-header or something.

Heres what I get:
Code:
<HTML><BODY>Hello asdd,<br><br>  Please keep the following information for reference:<br>  +==========<br>  | Username: asdd<br>  | Password: asd<br>  +==========<br></BODY></HTML>

EDIT: Yup, I was right. See this example:
Code:
<?php
$to = "yourplace@somewhere.com";
$subject = "My HTML email test.";
$headers = "From: myplace@here.com\r\n";
$headers .= "Reply-To: myplace2@here.com\r\n";
$headers .= "Return-Path: myplace@here.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

$message = "<html><body>";
$message .= "<h1> This is a test </h1>";
$message .= "</body></html>";

if ( mail($to,$subject,$message,$headers) ) {
   echo "The email has been sent!";
   } else {
   echo "The email has failed!";
   }
?>

Notice the MIME, Content-Type and charset headers.
url=http://www.copy-pasta.com]CopyPasta[/url] - FilePasta
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)