By qqboy on
dear all
what i wonder if how to determine if the PHP environment can send email or not.
by checking if smtp module is visible in phpinfo.php
or some function can be used to check ?
hope some one can help me.
thanks a lot.
dear all
what i wonder if how to determine if the PHP environment can send email or not.
by checking if smtp module is visible in phpinfo.php
or some function can be used to check ?
hope some one can help me.
thanks a lot.
Comments
php info param's
In Drupal this way :-
https://api.drupal.org/api/drupal/includes!mail.inc/function/drupal_mail/7
in php ini : -
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
Add the following code to the top of your email script if your mail script continues to fail.
// Please specify your Mail Server - Example: mail.example.com.
ini_set("SMTP","mail.example.com");
// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");
// Please specify the return address to use
ini_set('sendmail_from', 'example@YourDomain.com');
Check the phpinfo
Print the phpinfo function. you can find below statement in printed funtion
Internal Sendmail Support for Windows enabled
ok i will try it thanks.
ok i will try it
thanks.
https://www.drupal.org/project/image_captcha_indicator
https://www.drupal.org/project/ext_js