PHP mail() function

Salam dostlar.

PHP mail() function-u localhost-da istifadə etməyə çalışdım amma alınmadı. Yani diami olaraq error verir.
1-2 forumdan php.ini və sendmail.ini fayllarında dəyişiklik etmək lazımdi deyilir. Dəyişiklikdən sonra da yenə eyni error çıxır.

php.ini- faylım:

1[mail function]
2; For Win32 only.
3; http://php.net/smtp
4;SMTP =
5; http://php.net/smtp-port
6;smtp_port =
7 
8; For Win32 only.
9; http://php.net/sendmail-from
10;sendmail_from =
11; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
12; http://php.net/sendmail-path
13sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
14 
15; Force the addition of the specified parameters to be passed as extra parameters
16; to the sendmail binary. These parameters will always replace the value of
17; the 5th parameter to mail(), even in safe mode.
18;mail.force_extra_parameters =
19 
20; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
21mail.add_x_header = Off
22 
23; Log all mail() calls including the full path of the script, line #, to address and headers
24;mail.log = "C:\xampp\apache\logs\php_mail.log"

sendmail.ini faylım:

1[sendmail]
2 
3; you must change mail.mydomain.com to your smtp server,
4; or to IIS's "pickup" directory.  (generally C:\Inetpub\mailroot\Pickup)
5; emails delivered via IIS's pickup directory cause sendmail to
6; run quicker, but you won't get error messages back to the calling
7; application.
8 
9smtp_server=
10; smtp port (normally 25)
11 
12;smtp_port=25
13 
14; SMTPS (SSL) support
15;   auto = use SSL for port 465, otherwise try to use TLS
16;   ssl  = alway use SSL
17;   tls  = always use TLS
18;   none = never try to use SSL
19 
20smtp_ssl=auto
21 
22; the default domain for this server will be read from the registry
23; this will be appended to email addresses when one isn't provided
24; if you want to override the value in the registry, uncomment and modify
25 
26;default_domain=mydomain.com
27 
28; log smtp errors to error.log (defaults to same directory as sendmail.exe)
29; uncomment to enable logging
30 
31error_logfile=error.log
32 
33; create debug log as debug.log (defaults to same directory as sendmail.exe)
34; uncomment to enable debugging
35 
36;debug_logfile=debug.log
37 
38; if your smtp server requires authentication, modify the following two lines
39 
40auth_username=
41auth_password=
42 
43; if your smtp server uses pop3 before smtp authentication, modify the
44; following three lines.  do not enable unless it is required.
45 
46pop3_server=
47pop3_username=
48pop3_password=
49 
50; force the sender to always be the following email address
51; this will only affect the "MAIL FROM" command, it won't modify
52; the "From: " header of the message content
53 
54force_sender=
55 
56; force the sender to always be the following email address
57; this will only affect the "RCTP TO" command, it won't modify
58; the "To: " header of the message content
59 
60force_recipient=
61 
62; sendmail will use your hostname and your default_domain in the ehlo/helo
63; smtp greeting.  you can manually set the ehlo/helo name if required
64 
65hostname=

Hansı dəyişiklikləri etməliyəm? Təşəkkürlər 🙂


Yadda saxlama
Kateqoriya: Proqramlaşdırma . , , , , . Qısa keçid.

Verilmiş cavablar və yazılan şərhlər (1 cavab var)

(12:16, 22/07/2011 ) #3144

Maili SMTP ilə göndərirsən, ona görə lazımi məlumatları konfiqurasiya faylında yazmalısan.

Əgər öz mail serverin varsa, onun məlumatlarını yaz, ya da hosting şirkətinin verdiyini mail serveri istifadə elə.

smtp_server=senin mail serverin İP-si veya adi

auth_username=SMTP user
auth_password=SMTP password

Cavablamaq üçün sağ sütundan hesaba daxil olmaq lazımdır

Bu suala aid öz sualım var:
Sual verin
Bu suala cavab vermək istəyirəm:
Cavab verin

Cavab verin


Cavab yazmaq üçün lütfən sağ sütundan və ya buradan hesaba daxil olun.

Üzvlər üçün giriş

Qeydiyyat

Elan qutusu

Son cavablar və şərhlər

E. Hacı cavab verdi - Elektron servis xidmətləri (16 gün əvvəl)

cavaninsan cavab verdi - Amerika səhmləri (25 gün əvvəl)

Software Developer cavab verdi - Amerika səhmləri (25 gün əvvəl)

SN cavab verdi - Kripto vergi (34 gün əvvəl)

Nicat97 cavab verdi - ilkaddimlar.com-a nə oldu? (41 gün əvvəl)

nicatmemmedli cavab verdi - Proqramlaşdırma - fəlsəfə (44 gün əvvəl)

nicatmemmedli cavab verdi - ilkaddimlar.com-a nə oldu? (44 gün əvvəl)

Software Developer cavab verdi - ilkaddimlar.com-a nə oldu? (55 gün əvvəl)

E. Hacı cavab verdi - Adsense ya görə VÖEN gəlir vergisi 20% istəyirlər (64 gün əvvəl)

Triste cavab verdi - Adsense ya görə VÖEN gəlir vergisi 20% istəyirlər (66 gün əvvəl)

E. Hacı cavab verdi - Adsense ya görə VÖEN gəlir vergisi 20% istəyirlər (66 gün əvvəl)

Triste cavab verdi - Adsense ya görə VÖEN gəlir vergisi 20% istəyirlər (66 gün əvvəl)

E. Hacı cavab verdi - Telefon almışam kamerasında ləkə var qaytarmaq istəyirəm, mağaza qaytarmır (66 gün əvvəl)

Software Developer cavab verdi - Rus dili yatırımı (67 gün əvvəl)

Cənab cavab verdi - Rus dili yatırımı (67 gün əvvəl)

Software Developer - 615 xal

E. Hacı - 608 xal

Onar Alili - 526 xal

Dilsuz - 448 xal

Cabbarov Sübhan - 434 xal

Maqa - 346 xal

Ruslan Butdayev - 328 xal

Namiq Bəndəli - 297 xal

U.Tarlan - 244 xal

Meherremoff - 234 xal

Sistemə daxil olmuş 23311 sualdan 92%-dən çoxu cavablandırılmışdır.

Proyekt haqqında

E-Haci.net istehsalı. © 2010-2025