Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

SMTP Authentication

the mail() function

Moderators: macek, egami, gesf

SMTP Authentication

Postby BlaK » Sun Nov 06, 2011 7:29 am

Hello Everyone,

I am badly stuck in a problem, anyone please help me .. i am using one Flash template and under that template there is a PHP mail script but my host require SMTP Authentication and i have no idea how to add authentication in the script .. below is the script if someone tell me how to add authentication in this script so this will start working.

<?php

error_reporting(E_WARNING);

$variables = array(
"subject" => $_POST["sender_subject"],
"message" => $_POST["sender_message"],
"name" => $_POST["sender_name"],
"email" => $_POST["sender_email"],
);

$conf = array(

"notification_email" => array(
"enable" => true,

"to" => "your@email.com",
"to_name" => "your name",

"from" => "no-reply@email.com",
"from_name" => "subscriber-notifier",

"subject" => "New Message: " . $subject . "",
"type" => "html",
"message" => <<<EOD
<p>Put here the message body</p>
<p>
Email: {EMAIL}<br>
Subject: {SUBJECT}<br>
{MESSAGE}
</p>
EOD
),

"autoresponder_email" => array(
"enable" => true,

"from" => "your@email.com",
"from_name" => "your name",

"to" => "{EMAIL}",

"subject" => "Thank you for your message",

"type" => "html",
"message" => <<<EOD
<p>Put here the message body</p>
<p>
Email: {EMAIL}<br>
Subject: {SUBJECT}<br>
{MESSAGE}
</p>
EOD
),

);

Now how do i add SMTP Authentication in this script so this will start working, please help guys.

Regards.
BlaK
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sun Nov 06, 2011 7:21 am

Return to PHP coding => Mail

Who is online

Users browsing this forum: Bing [Bot] and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.