Jump to content
php.lv forumi

faili uz cita servera


kalabox

Recommended Posts

nja..

 

Palidzat atrast kljuudu

http://<br /> <b>Notice</b>: Undefined index: /HTTP_HOST/ in <b>/home/iepazist/public_html/jb/setup/index.php</b> on line <b>437</b><br /> <br /> <b>Warning</b>: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Delimiter must not be alphanumeric or backslash in <b>/home/iepazist/public_html/jb/setup/index.php</b> on line <b>437</b><br />

 

<input id="url" name="url" type="text" value="http://<?php echo($_SERVER['HTTP_HOST'] . preg_replace('\/setup\/index\.php(.*)', '/', $_SERVER['REQUEST_URI'])); ?>" size="32" />

Link to comment
Share on other sites

PHPMailer

 

Piemēram, lai sūtās caur gmail:

$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "[email protected]"; // SMTP server
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "[email protected]"; // GMAIL username
$mail->Password = "parole"; // GMAIL password

Edited by briedis
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.

Loading...
×
×
  • Create New...