Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok I see the problem I came across this not so long ago </p> <p>You need a mail server pop3 server or smtp Which requires a static ip and domain named server i.e localhost wont work</p> <p>Do this set up CURL My Curl Function adjust accordingly</p> <pre><code> function CurlMail($The_mail, $The_FamKey, $The_Service ,$The_Client) { //create array of data to be posted $post_data['email'] = $The_mail; $post_data['FamilyKey'] = $The_FamKey; $post_data['Service'] = $The_Service; $post_data['Client'] = $The_Client; //traverse array and prepare data for posting (key1=value1) foreach ( $post_data as $key =&gt; $value) { $post_items[] = $key . '=' . $value; } //create the final string to be posted using implode() $post_string = implode ('&amp;', $post_items); //create cURL connection $curl_connection = curl_init('http://foo.com/mail.php'); //set options curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 0); //set data to be posted curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string); //perform our request $result = curl_exec($curl_connection); //show information regarding the request print_r(curl_getinfo($curl_connection)); echo curl_errno($curl_connection) . '-' .curl_error($curl_connection); //close the connection curl_close($curl_connection); } </code></pre> <p>Then On a Live server with SMTP set up refer to php.ini for these details MAIL.PHP</p> <pre><code>ini_set('SMTP', "127.0.0.1"); ini_set('smtp_port', "25"); $to = "abc@gmail.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "jono@bay.org"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload