Jump to content

Mail problems.


jabapyth

Recommended Posts

  • 1 year later...
example below:

[code]$subject = "New Password For $username";
$message = "Hi $username,\n we have reset your password.
\n
New Password: $random_password
\n
$siteurl/login.php
\n
Thanks!
$admin_email
\n
This is an automated message system, please do not reply!";

mail($email_address,$subject,$message,"From:$admin_email ");
echo "Your password has been sent! Please check your email!<br />";[/code]

obviously change the message etc to suit yourself.

Cheers
Matt
Link to comment
https://forums.phpfreaks.com/topic/5778-mail-problems/#findComment-266234
Share on other sites

  • 6 months later...
ok I'm using the code for a different reason, but here's mine:[code]<?php

$email = $_POST["Email"];
$to = '[email protected], ' . $_POST["Email"];
$subject = 'Application for Joining';
$from = 'From: ' . $email;
$date = date(n/j/y g:i:s e)
$text = 'Submission: ' . $date . '<br/>Name: ' . $_POST["Name"] . '<br/>Tags: ' . $_POST["Tags"] . '<br/>E-mail: ' . $_POST["Email"] . '<br/>Date: ' . $_POST["Date"] . '<br/>Other E-mails: ' . $_POST["other_emails"]
mail($to,$subject,$text);

?>[/code]
The page won't show up when I submit the form. It just shows up white...
Link to comment
https://forums.phpfreaks.com/topic/5778-mail-problems/#findComment-417385
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.