Jump to content

Recommended Posts

  • Replies 14
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium

You need en e-mail account to send email for starters. It's not going to work magically. You also need sendmail running (if your script uses it) or a remote smtp host which you should configure somewhere.

 

Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11637
Share on other sites

You need en e-mail account to send email for starters. It's not going to work magically.

 

I have got an e-mail. I use this functions : 

 

$serverSettings['reg_mail'] and $serverSettings['pass_mail']

 

But still can't send e-mail.

Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11638
Share on other sites

create test.php:
 
<?PHP
//Show all errors
ERROR_REPORTING(E_ALL);
 
// send testmail
$subject = "test";
$body = "testcontent";
if (mail($to, $subject, $body)) {
  echo("Email successfully sent!");
} else {
  echo("Fail");
}
?>
 
open this file in your browser. Show us the error.
If there is no error the problem isnt the server or mail function
Edited by Ayaka
Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11661
Share on other sites

 

create test.php:
 
<?PHP
//Show all errors
ERROR_REPORTING(E_ALL);
 
// send testmail
$subject = "test";
$body = "testcontent";
if (mail($to, $subject, $body)) {
  echo("Email successfully sent!");
} else {
  echo("Fail");
}
?>
 
open this file in your browser. Show us the error.
If there is no error the problem isnt the server or mail function

 

 

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:AppServwwwHPpagestest.php on line 9 Fail

Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11663
Share on other sites

As i thought -> not configurated.

 

Do you have access to your php.ini?

If not try to set it  in the test.php (on the top right after <?php):

ini_set ("sendmail_from","[email protected]");

replace mywebsite.com with yours.

 

Note: This only works if your provider allows ini_set

Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11664
Share on other sites

As i thought -> not configurated.

 

Do you have access to your php.ini?

If not try to set it  in the test.php (on the top right after <?php):

ini_set ("sendmail_from","[email protected]");

replace mywebsite.com with yours.

 

Note: This only works if your provider allows ini_set

 

ini_set ("SMTP","smtp.gmail.com"); ini_set ("sendmail_from","[email protected]");

Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11667
Share on other sites

AppServ? There is only - Apache - PHP - MySQL - phpMyAdmin included. You need a mailserver! If you do this local i recommend XAMPP for Developing! There is a fakemailer (Mercury) included. https://www.apachefriends.org/

Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11673
Share on other sites

AppServ? There is only - Apache - PHP - MySQL - phpMyAdmin included. You need a mailserver! If you do this local i recommend XAMPP for Developing! There is a fakemailer (Mercury) included. https://www.apachefriends.org/

 

Thanks for everything. I try it.

  • Love 1
Link to comment
https://metin2.dev/topic/1584-homepage-doesnt-send-mail/#findComment-11674
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.