0

I was reading the php mail() function doc but I missed some config fields such as user or passsword.

I know the smtp server is set on php.ini, but I haven't seen anything to set the user and the password.

How can I set the user which I want to send the email to as sender?

Bentaye
  • 9,403
  • 5
  • 32
  • 45
afsdi3
  • 37
  • 1
  • 6

1 Answers1

0

if you only need to set up the user and pass, this script will help you. it's work fine

SMTP = smtp.example.com
smtp_port = 25
username = info@example.com
password = yourmailpassord
sendmail_from = info@example.com
Tobok Sitanggang
  • 607
  • 5
  • 15