Jump to content

vijdev

Members
  • Posts

    109
  • Joined

  • Last visited

    Never

Everything posted by vijdev

  1. its my own domain, and for certain reasons am bound from telling what it its. it is hosted on a shared hosting,the mail belongs to the same domain as is the mail server. it is not gmail. i am only looking on some elaborate information on what is meant by "authentication". if a mail server requires authentication, how does one do it?
  2. yes the from address is that which belongs to the SMTP server
  3. just to clarify myself mail.xyz.com...here i have the actual SMTP server..not xyz but i dont understand the authentication part!.....hmmmmmmmmmm! how do i differentiate or know if an smtp server needs or does not need authentication?
  4. Cags, thanks for the replies.however i am afraid i need some more spoon-feeding!..if anything more that can help me understand this better. thanks.
  5. now does this authentication come from: 1.the mail class setup 2.or something to do in the form script 3.or in php.ini and what kind of authentication would it be?...is it the password thats used to access [email protected] inbox?
  6. can someone pls tell me why doesnt the below code work? i get an error: SMTP server response: 504 Authenticate first (#5.5.0) i have set the smtp server name in my php.ini ####################php.ini############# [mail function] ; For Win32 only. SMTP =mail.xyz.com smtp_port = 25 ; For Win32 only. sendmail_from [email protected] ###############code########################## <?php if (isset ($_POST['submit'])) { $name=$_POST['name']; $message=$_POST['text']." ".$_POST['text']; $to=$_POST['email']; $headers="From: [email protected]"; $subject="Test Mail"; mail ( $to , $subject , $message, $headers); } ?> <html> <head> <title>Say My Name</title> </head> <body> <form action="mailvij.php" method="post"> <table> <tr> <td>Name</td> <td><input type="text" name="name"></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email" ></td> </tr> <tr> <td>Text</td> <td><textarea name="text" rows=5 cols=10></textarea></td> </tr> <tr> <td colspan="2" style="text-align: center;"> <input type="submit" name="submit" value="Submit" /></td> </tr> </table> </form> </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.