SMTP Local development to Send email in PHP; Windows Platform/ XP

SMTP Local development to Send email in PHP; Windows Platform/ XP

am 15.01.2010 09:54:46 von Gaurav Kumar

--00504502af5bd36b2f047d3027de
Content-Type: text/plain; charset=ISO-8859-1

Hi All, Ash, Angelo,

Any ideas how to send an email in PHP on windows platform/xp on local
development machine.

System Configuration
PHP 5.2
Apache 2
No ISS
NO SMTP

Any trusted SMTP software to install on local development machine and how to
set it up with php to send an email?

Also just providing the SMTP server details in php.ini will not work for me
as this requires authentication/credentials etc..


Thanks,

Gaurav Kumar
blog.oswebstudio.com

--00504502af5bd36b2f047d3027de--

Re: SMTP Local development to Send email in PHP; Windows Platform/XP with no IIS

am 15.01.2010 12:53:25 von Kim Madsen

Hi Gaurav

Gaurav Kumar wrote on 15/01/2010 09:54:

> NO SMTP
>
> Any trusted SMTP software to install on local development machine and how to
> set it up with php to send an email?
>
> Also just providing the SMTP server details in php.ini will not work for me
> as this requires authentication/credentials etc..

Get PHPmailer and make a gmail account that you connect to and mail through.

--
Kind regards
Kim Emax - masterminds.dk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: SMTP Local development to Send email in PHP; Windows

am 15.01.2010 13:00:46 von Gaurav Kumar

--00504502be98fadeda047d32c0cb
Content-Type: text/plain; charset=ISO-8859-1

Sorry Kim, don't want to use phpmailer script or manually setting user
accounts u/p in the script.



On Fri, Jan 15, 2010 at 5:23 PM, Kim Madsen wrote:

> Hi Gaurav
>
> Gaurav Kumar wrote on 15/01/2010 09:54:
>
>
> NO SMTP
>>
>> Any trusted SMTP software to install on local development machine and how
>> to
>> set it up with php to send an email?
>>
>> Also just providing the SMTP server details in php.ini will not work for
>> me
>> as this requires authentication/credentials etc..
>>
>
> Get PHPmailer and make a gmail account that you connect to and mail
> through.
>
> --
> Kind regards
> Kim Emax - masterminds.dk
>

--00504502be98fadeda047d32c0cb--

Re: SMTP Local development to Send email in PHP; Windows

am 15.01.2010 13:22:51 von vikash.iitb

--000e0cdf1672fc14ae047d330f4f
Content-Type: text/plain; charset=UTF-8

You can install any smtp server on your windows machine and the mail() will
work with default settings. You can check this out:
http://www.softstack.com/freesmtp.html

Thanks,

Vikash Kumar
http://vika.sh


On Fri, Jan 15, 2010 at 5:30 PM, Gaurav Kumar
wrote:

> Sorry Kim, don't want to use phpmailer script or manually setting user
> accounts u/p in the script.
>
>
>
> On Fri, Jan 15, 2010 at 5:23 PM, Kim Madsen wrote:
>
> > Hi Gaurav
> >
> > Gaurav Kumar wrote on 15/01/2010 09:54:
> >
> >
> > NO SMTP
> >>
> >> Any trusted SMTP software to install on local development machine and
> how
> >> to
> >> set it up with php to send an email?
> >>
> >> Also just providing the SMTP server details in php.ini will not work for
> >> me
> >> as this requires authentication/credentials etc..
> >>
> >
> > Get PHPmailer and make a gmail account that you connect to and mail
> > through.
> >
> > --
> > Kind regards
> > Kim Emax - masterminds.dk
> >
>

--000e0cdf1672fc14ae047d330f4f--

Re: SMTP Local development to Send email in PHP; Windows

am 15.01.2010 13:51:52 von Richard Quadling

2010/1/15 :
> You can install any smtp server on your windows machine and the mail() wi=
ll
> work with default settings. You can check this out:
> http://www.softstack.com/freesmtp.html
>
> Thanks,
>
> Vikash Kumar
> http://vika.sh
>
>
> On Fri, Jan 15, 2010 at 5:30 PM, Gaurav Kumar
> wrote:
>
>> Sorry Kim, don't want to use phpmailer script or manually setting user
>> accounts u/p in the script.
>>
>>
>>
>> On Fri, Jan 15, 2010 at 5:23 PM, Kim Madsen wrote:
>>
>> > Hi Gaurav
>> >
>> > Gaurav Kumar wrote on 15/01/2010 09:54:
>> >
>> >
>> >  NO SMTP
>> >>
>> >> Any trusted SMTP software to install on local development machine and
>> how
>> >> to
>> >> set it up with php to send an email?
>> >>
>> >> Also just providing the SMTP server details in php.ini will not work =
for
>> >> me
>> >> as this requires authentication/credentials etc..
>> >>
>> >
>> > Get PHPmailer and make a gmail account that you connect to and mail
>> > through.
>> >
>> > --
>> > Kind regards
>> > Kim Emax - masterminds.dk
>> >
>>
>

You only need a local SMTP server if you want to hold and relay mail.

If you want to send mail directly to the recipients SMTP server you
can do that with standard PHP.

getmxrr() is your friend here.

You provide it with the domain of the recipient and you get back the
SMTP server(s) associated with that domain.

Now, you can send the message to THEIR smtp server ...

ini_set('SMTP', xxxx);

where xxxx is one of the servers returned from getmxrr().

No authentication required.




--=20
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474=
731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: SMTP Local development to Send email in PHP; Windows

am 15.01.2010 14:18:37 von Gaurav Kumar

--00504502b1a66a8a1d047d33d70f
Content-Type: text/plain; charset=ISO-8859-1

Hi Richard, The problem is that if I am using any open source software or
any other pre-built software then I will not be able to manage through
ini_set.

Also http://www.softstack.com/freesmtp.html which vikash mentioned works
through outlook settings.

Anyways the below will help-

http://php.net/manual/en/ref.mail.php

http://glob.com.au/sendmail/

Thanks,

Gaurav Kumar
blog.oswebstudio.com



On Fri, Jan 15, 2010 at 6:21 PM, Richard Quadling
wrote:

> 2010/1/15 :
> > You can install any smtp server on your windows machine and the mail()
> will
> > work with default settings. You can check this out:
> > http://www.softstack.com/freesmtp.html
> >
> > Thanks,
> >
> > Vikash Kumar
> > http://vika.sh
> >
> >
> > On Fri, Jan 15, 2010 at 5:30 PM, Gaurav Kumar
> > wrote:
> >
> >> Sorry Kim, don't want to use phpmailer script or manually setting user
> >> accounts u/p in the script.
> >>
> >>
> >>
> >> On Fri, Jan 15, 2010 at 5:23 PM, Kim Madsen wrote:
> >>
> >> > Hi Gaurav
> >> >
> >> > Gaurav Kumar wrote on 15/01/2010 09:54:
> >> >
> >> >
> >> > NO SMTP
> >> >>
> >> >> Any trusted SMTP software to install on local development machine and
> >> how
> >> >> to
> >> >> set it up with php to send an email?
> >> >>
> >> >> Also just providing the SMTP server details in php.ini will not work
> for
> >> >> me
> >> >> as this requires authentication/credentials etc..
> >> >>
> >> >
> >> > Get PHPmailer and make a gmail account that you connect to and mail
> >> > through.
> >> >
> >> > --
> >> > Kind regards
> >> > Kim Emax - masterminds.dk
> >> >
> >>
> >
>
> You only need a local SMTP server if you want to hold and relay mail.
>
> If you want to send mail directly to the recipients SMTP server you
> can do that with standard PHP.
>
> getmxrr() is your friend here.
>
> You provide it with the domain of the recipient and you get back the
> SMTP server(s) associated with that domain.
>
> Now, you can send the message to THEIR smtp server ...
>
> ini_set('SMTP', xxxx);
>
> where xxxx is one of the servers returned from getmxrr().
>
> No authentication required.
>
>
>
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>

--00504502b1a66a8a1d047d33d70f--

Re: SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

am 16.01.2010 00:25:33 von andy-lists

--Apple-Mail-4--324591607
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii

Hi,

>=20
> Also http://www.softstack.com/freesmtp.html which vikash mentioned =
works
> through outlook settings.
>=20
> Anyways the below will help-
>=20
> http://php.net/manual/en/ref.mail.php
>=20
> http://glob.com.au/sendmail/


Personally, I always found hMailServer to be perfectly reliable as a =
relay on Windows - just install it and SMTP to localhost - nothing more, =
nothing less.

Andy=

--Apple-Mail-4--324591607--

Re: SMTP Local development to Send email in PHP; Windows

am 16.01.2010 12:13:27 von Eric Lee

--001636c5c28f98f70d047d4635e1
Content-Type: text/plain; charset=UTF-8

Hi,

As I know that php did't setting user name and password.
So, just install any smtp server with authenticaton set to "no
authentication"
Much list IIS smtp server.



Eric,
Regards,


On 1/16/10, Andy Shellam wrote:
>
> Hi,
>
> >
> > Also http://www.softstack.com/freesmtp.html which vikash mentioned works
> > through outlook settings.
> >
> > Anyways the below will help-
> >
> > http://php.net/manual/en/ref.mail.php
> >
> > http://glob.com.au/sendmail/
>
>
> Personally, I always found hMailServer to be perfectly reliable as a relay
> on Windows - just install it and SMTP to localhost - nothing more, nothing
> less.
>
> Andy

--001636c5c28f98f70d047d4635e1--