Jump to content

Recommended Posts

yes...thankyou...

 

i tried the address the ini_get came back with

and i get this:

PHP Warning: mail() [function.mail]: SMTP server response: 501 Incorrect Address Format in C:\Websites\efficaciousplanet368\justinvenablephoto.com\handle_form.php on line 27

 

here is the code:

<?php
ini_set("SMTP","smtp1.easycgi.com");
$name = $_POST['name'];
$phone = $_POST['email'];
$email = $_POST['phone'];
$subject = $_POST['subject'];
$comments = $_POST['comments'];

$name = $name; //senders name
$email = $email; //senders e-mail adress
$recipient = "jvenablephoto@gmail.com"; //recipient
//$recipient = "copiman@gmail.com"; //recipient
//$recipient = "ravimrk_diya@yahoo.com"; //recipient

$comments = "$comments...\n\n".$phone;
$subject = $subject; //subject
$header = "From: ". $name . " <" . $email . ">\r\n"; //optional headerfields

mail($recipient, $subject, $comments, $header); //mail command 


?>

Link to comment
https://forums.phpfreaks.com/topic/126451-formmail-ini_set/#findComment-653951
Share on other sites

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.