Re: sending mail from localhost to yahoo, gmail, hotmail, etc
- From: "Twayne" <nobody@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 09 Apr 2008 16:37:55 GMT
On Apr 9, 2:51 pm, Michael Austin <maus...@xxxxxxxxxxxxxxxxxx> wrote:
Sandy wrote:
On Apr 8, 7:12 pm, undbund <undb...@xxxxxxxxx> wrote:
Hi I am creating a newsletter system. The software should run from
desktop computer (localhost) but be able to send email to anyone on
the internet. Can you guys give me some ideas on how to achieve
this.
Usual and easiest way is to have two components: some kind of a
mailer (like sendmail) and your program submitting messages to it.
So you have sendmail installed and:
SMTP localhost
smtp_port 25
in your php.ini
in your program you call mail($email, $subject, $message) and
sendmail will take care of the rest
/sandy
http://myphpquiz.com/
Be aware that if you do not have ReverseDNS to the IP address of your
mail server or you are using DynamicDNS from dsl, cablemodem or
dialup it will more than likely be rejected. And if you use your ISP
mail servers, if you send too many in an hour, my get flagged as a
spammer and they will shut you down. Some ISP's have gone so far as
to not allow port 25 outbound from these "dialup" ip addresses. AT&T
recently instituted such practices - sounds like a lawsuit to me.
If you use your "gmail" or your own domain in your FROM/REPLY TO:
addresses, you must register as valid address coming from your ISP
username/pwd also requiring SSL encryption of all mail. You will
most likely need to locate php/sasl to use from your server.
A good mailer is phpmailer will do most of this, but you will need to
add the ssl stuff..
Thanks guys for all your feedback. I am told the software will have to
run on Windows machine. I have been researching on the internet and
found out about XAMPP. It comes with Apache, PHP, MySQL and and
Mercury mail server. I am not able to get it working to send mail from
localhost to internet. I will try your methods to get it working. If
you guys have managed to make it work with XAMPP. Can you please give
me some directions.
Thanks for all your help.
I'm a newbie, but have xampp's apache/php/sql all in one installed;
works great, only using locally. I am sending e-mail to multiple
recipients using its standard mail() function and it works fine.
Responses to form submissions go back to the questioner and three other
interested parties; it all worked first time every time when I uploaded
the code to the site. Locally I purposely let it fail when it can't
find port25 'cause the rest is known to work locally and works 100% when
it gets to the site.
Not sure what directions to give; it just works. I'm too newbie to
know what kind of answers others might need.
I will say it's better to manually install xampp; same results, but you
get to figure out a lot of the nuances by doing the install on your own.
So, after I'd used the all in one enough to know a little about it, I
wiped it out and did a manual install. Had some problems but it was
worth the trouble.
--
Regards,
Twayne
Open Office isn't just for wimps anymore;
OOo is a GREAT MS Office replacement
www.openoffice.org
.
- Follow-Ups:
- References:
- sending mail from localhost to yahoo, gmail, hotmail, etc
- From: undbund
- Re: sending mail from localhost to yahoo, gmail, hotmail, etc
- From: Sandy
- Re: sending mail from localhost to yahoo, gmail, hotmail, etc
- From: Michael Austin
- Re: sending mail from localhost to yahoo, gmail, hotmail, etc
- From: undbund
- sending mail from localhost to yahoo, gmail, hotmail, etc
- Prev by Date: Re: Sending mail to many recipients issue.
- Next by Date: Re: Captcha image Text Size
- Previous by thread: Re: sending mail from localhost to yahoo, gmail, hotmail, etc
- Next by thread: Re: sending mail from localhost to yahoo, gmail, hotmail, etc
- Index(es):
Relevant Pages
|