Jump to content

PHP sendmail function


Recommended Posts

are saying this part? this is easy if youre using windows server but whit if linux i need to know how to configure the sendmail function.

 

[mail function]

; For Win32 only.

;SMTP = 130.xx.x.x ; for Win32 only

;smtp_port = 25

;sendmail_from= aa@@vvv.com ; for Win32 only

 

; For Win32 only.

;sendmail_from = [email protected]

 

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").

sendmail_path = /usr/sbin/sendmail -t -i

Link to comment
https://forums.phpfreaks.com/topic/58712-php-sendmail-function/#findComment-292376
Share on other sites

  • 1 month later...

That looks ok to me

 

 

Visit http://www.php.net and search for the function "mail" to learn the syntax and examples of how to send mail in PHP.

 

It'll just use the sendmail binary to send your mail.  If you are behind a firewall, you can setup /etc/mail/sendmail.cf (or /etc/sendmail.cf, not sure) to use a relay.

Link to comment
https://forums.phpfreaks.com/topic/58712-php-sendmail-function/#findComment-326416
Share on other sites

  • 1 year later...

I've got DELL with Ubuntu 7.10 and sendmail isn't installed. When I

try to install it with

 

sudo apt-get install sendmail

 

I get the following message

 

Reading package lists... Done

Building dependency tree     

Reading state information... Done

Package sendmail is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package sendmail has no installation candidate

 

Any idea what I should do to get it installed?

Link to comment
https://forums.phpfreaks.com/topic/58712-php-sendmail-function/#findComment-632528
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.