DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-01-19 18:39:51

jrbilodeau
Member
Registered: 2007-11-26
Posts: 47

Help - Send email with PHP

I've been serching the forum trying to find out what i need to do to be able to send email via PHP, with out any luck, it tried a few things but i'm not sure what im doing wrong.

Ok, so bassically what i'm trying to do is be able to send a email from a user registration/validation form on a website. i know that i can either use the PHP mail() funciton or PEAR which is bundled with PHP. I have one of 3 email accounts that i can use, my gmail account, my hotmail account, or my cogeco (isp) account. i'm up for suggestion if any of these are an issue. if tried to use esmtp and PEAR without much luck, but probly cause i'm doing something wrong.

If anyone has this working could you give me some steps to follow or some pointers. what i need to install / configure?

any help would be greatly appreciated.

thanks

Offline

 

#2 2009-01-21 16:37:38

jrbilodeau
Member
Registered: 2007-11-26
Posts: 47

Re: Help - Send email with PHP

Anybody? there has to be a way to sendmail, i mean dlink does it through their webpage.

Offline

 

#3 2009-01-21 16:55:38

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Help - Send email with PHP

Maybe not the simplest way, but have you considered installing the esmtp packages ( http://www.inreto.de/dns323/fun-plug/0. … html#esmtp ) and use popen?

Offline

 

#4 2009-01-22 02:14:03

duhblow7
Member
Registered: 2008-05-29
Posts: 18

Re: Help - Send email with PHP

use mail()

it requires sendmail, which exists.

you'll need to configure some options in php.ini as defined by this:  http://us3.php.net/manual/en/mail.configuration.php

i suggest using cogeco as your smtp server, because most IP's will allow relaying so long as it originates from an IP within their subnet.

this may help:  http://us3.php.net/manual/en/function.mail.php

Offline

 

#5 2009-01-22 18:09:09

jrbilodeau
Member
Registered: 2007-11-26
Posts: 47

Re: Help - Send email with PHP

fonz wrote:

Maybe not the simplest way, but have you considered installing the esmtp packages ( http://www.inreto.de/dns323/fun-plug/0. … html#esmtp ) and use popen?

this is what i tried with esmtp, not sure if im missing something along the way but it didn`t work.
http://dns323.kood.org/forum/t2277-send … -from.html

i started this new thread cause no one was replying to the other one.

Offline

 

#6 2009-01-22 18:17:00

jrbilodeau
Member
Registered: 2007-11-26
Posts: 47

Re: Help - Send email with PHP

duhblow7 wrote:

use mail()

it requires sendmail, which exists.

you'll need to configure some options in php.ini as defined by this:  http://us3.php.net/manual/en/mail.configuration.php

i suggest using cogeco as your smtp server, because most IP's will allow relaying so long as it originates from an IP within their subnet.

this may help:  http://us3.php.net/manual/en/function.mail.php

ive tired editing the php.ini file sendmail_path = "/ffp/bin/sendmail" i've noticed that there is also a sendmail file in "/ffp/sbin/sendmail" not sure if it matters which one i use.

not really sure what i need to do from here, i saw on a site that there should be a /etc/mail/sendmail.cf but i dont see any. can i just create this file ?

Offline

 

#7 2009-01-27 15:37:47

jrbilodeau
Member
Registered: 2007-11-26
Posts: 47

Re: Help - Send email with PHP

Any other suggestions guys. i'm not really sure where to go from here?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB