Local Mail Function

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

I have a little question here... how do I make the functin mail() work on my local machine?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

phpmailer?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

I thinking this might answer your question

Quote:
If you're going to use PHP's mail() function, there are three variables you may need to set. The SMTP and sendmail_from variables (on Windows) or the sendmail_path variable (on UNIX) are used when sending e-mail messages through PHP's mail() function. On Windows, these variables set the SMTP server to be used and the From: address to display in e-mail messages; on UNIX, the sendmail_path variable sets the path of the MTA (mail transfer agent) for mail delivery:
SMTP = myserver.localnet.com
sendmail_from = me@localhost.com
sendmail_path = /usr/sbin/sendmail


http://articles.techrepublic.com.com/51 ... 72345.html
  • pagebot
  • Novice
  • Novice
  • pagebot
  • Posts: 16
  • Loc: USA

Post 3+ Months Ago

I am not sure your ISP would allow this.
Anyway you would be very limited by your ISP.

Youtube Tutorial:



http://www.youtube.com/watch?v=K99lmchhy2g
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

SpooF wrote:
I thinking this might answer your question

Quote:
If you're going to use PHP's mail() function, there are three variables you may need to set. The SMTP and sendmail_from variables (on Windows) or the sendmail_path variable (on UNIX) are used when sending e-mail messages through PHP's mail() function. On Windows, these variables set the SMTP server to be used and the From: address to display in e-mail messages; on UNIX, the sendmail_path variable sets the path of the MTA (mail transfer agent) for mail delivery:
SMTP = myserver.localnet.com
sendmail_from = me@localhost.com
sendmail_path = /usr/sbin/sendmail


http://articles.techrepublic.com.com/51 ... 72345.html

Do I set them in my PHP page, or in my php.ini file?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Read the first paragraph of the link Bogey
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

SpooF wrote:
Read the first paragraph of the link Bogey

:lol: I was in a hurry and didn't even look at the link... thanks for the link.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

That doesn't work...
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

You have a sendmail program, right?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

I just looked through usr/lib/ and didn't find sendmail... well, I didn't find the folder named "sendmail" so I guess I don't.

I've never really worked with this thing so I don't know what I need to make it work. :lol:
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Ahh, I thought you were back on windows.

Code: [ Select ]
# which sendmail


Does that return anything?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

SpooF wrote:
Ahh, I thought you were back on windows.

Code: [ Select ]
# which sendmail


Does that return anything?

Where do I put that code in?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

In a terminal.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

Oh :lol: Thought so... I did that the first time I read that post I put it in the terminal with that '#' :oops:

Anyway, it returns

Quote:
/usr/sbin/sendmail


And sendmail is there...
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Did you set the sendmail_path varible in your php.ini file to that location (Or just uncomment the line, since thats the default path)?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8415
  • Loc: USA

Post 3+ Months Ago

Yes, I have tried that. It doesn't work though.

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 117 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.