Jump to content

E-Mail Config


archene

Recommended Posts

I need to know what to put in those part...

 

$usePHPMailer = true; // use phpmailer ? (true | false)

$phpmailerHost = "smtp.xxxx.com"; // smtp hostname

$phpmailerUser = "xxxxxx@xxxxxx.heliohost.org"; // smtp username

$phpmailerPass = "xxxxxxxxx"; // smtp password

$phpmailerSMTPSecure = "ssl"; // smtp authentication method ("ssl" | "")

$phpmailerPort = 465; // smtp port - enter number directly - without "" !

 

 

I need to find the stuff in red so I can config it in a program that I plan to use...

Link to comment
Share on other sites

I don't think you need to use any of those if you just want to send a mail (Like for email validation or password recovery).

Just use the mail function with the required arguments and you should be fine.

 

$to='myemail@gmail.com';

$headers = 'From: testing@yourdomain.org';
$subject = "Test";
$message =
'Hello!
<body of the message>';

if(mail($to,$subject,$message,$headers))
echo 'Mail sent' ;//Doesn't mean it was received properly
else
echo 'Error sending the mail';

 

You can add a 'Reply-To' in your headers so that they respond to an email address which exists (you can create one in your Cpanel'

 

Eg:


$headers = 'From: noreply@mydomain.org' . "\r\n" .
   'Reply-To: webmaster@mydomain.org' . "\r\n";

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...