Jump to content

Beta4

Members
  • Posts

    8
  • Joined

  • Last visited

Beta4's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok so I have IIS 7.5 and PHP installed on windows 7 - and I need to know how I need to config my php.ini to send and recieve email or iis 7.5 ( if that is the case) .... I got a snippet that shows that it works although is returns "not ok" which means its not working... here is the code. <?php if(mail('','test subject','test message')){ echo('ok'); } else{ echo('not ok'); } ?> Can anyone help me so I can get it to say "Ok"
  2. Anyone care to help? I just dont want to do something that will mess it up, cause if you mess with the php.ini - i have had an experience before where you mess it up, it wont work properly even if you change back to what it was. Any takers?
  3. So how would i change that if my php.ini looks like this: [mail function] ; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury ; SMTP = localhost ; smtp_port = 25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = postmaster@localhost ; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program filesC:\xampp) fakemail and mailtodisk do not work correctly. ; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path. ; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder) ;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t" ; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the C:\xampp\mailoutput folder sendmail_path = "C:\xampp\mailtodisk\mailtodisk.exe"
  4. I am testing it with my local machine... i have xampp installed and have my documents in the htdocs... should it still work?
  5. I did ... I needed help with the code... I dont get an email stating that I posted something
  6. Hello all names Beta4, I do apologize in advance if I am posting this in the wrong area. Im still kinda a newbie Anyhow, I want to allow the user to post data such as user name, email, and description on a generic post, this is for a project not commercial use. I want it to display a confimation with the users name, email and description on what he or she posted. Then I want an email sent to their email with the same information that displays the confirmation after they hit the submit button. This is the code I have. Thanks again all! post.php is the name of the file I have given it. <html> <head> <title>Post</title> </head> <body> <h2>Post</h2> <?php $user = $_POST['user']; $email = $_POST['email']; $description = $_POST['description']; $to = $_POST['email']; $subject = 'Confirmation on your recent post at the Trading Post'; $msg = "Your name is $user and your email is $email\n" . "Your post reads: $description\n"; $header = "From: admin@mothinrelay.com"; mail($to, $subject, $msg, $header); echo 'Your post has been submitted.<br />'; echo 'Your user name is ' . $user . '<br />'; echo 'Your email is ' . $email . '<br />'; echo 'You post reads: ' . $description . '<br />'; ?> </body> </html>
×
×
  • 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.