If I have a customers database and wanted to automastically create and post
an email from a local computer to each customer of the same content - can I
do it in PHP?
If affirmative which functions should I consider?
|
|
0
|
|
|
|
Reply
|
aa8030 (70)
|
10/26/2004 6:51:55 PM |
|
aa wrote:
> If I have a customers database and wanted to automastically create and post
> an email from a local computer to each customer of the same content - can I
> do it in PHP?
Yes.
But emails aren't posted.
> If affirmative which functions should I consider?
mail() ==> http://www.php.net/manual/en/function.mail.php
PHP functions http://www.php.net/mysql
for ==> http://www.php.net/mssql
your database http://www.php.net/pgsql ...
--
USENET would be a better place if everybody read: | to mail me: simply |
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
http://www.expita.com/nomime.html | and *NO* attachments. |
|
|
0
|
|
|
|
Reply
|
hexkid2 (1017)
|
10/26/2004 7:49:57 PM
|
|
Thanks, Pedro, that's what I needed.
One thing:
You say "emails aren't posted"
The mail() description says "mail() automatically mails the message..."
So mail() posts the messages but does not send them - what is the difference
between sending and posting?
"Pedro Graca" <hexkid@hotpop.com> wrote in message
news:slrncntaj0.8p2.hexkid@ID-203069.user.uni-berlin.de...
> aa wrote:
> > If I have a customers database and wanted to automastically create and
post
> > an email from a local computer to each customer of the same content -
can I
> > do it in PHP?
>
> Yes.
>
> But emails aren't posted.
>
> > If affirmative which functions should I consider?
>
> mail() ==> http://www.php.net/manual/en/function.mail.php
>
> PHP functions http://www.php.net/mysql
> for ==> http://www.php.net/mssql
> your database http://www.php.net/pgsql ...
> --
> USENET would be a better place if everybody read: | to mail me:
simply |
> http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this
post, |
> http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain
text |
> http://www.expita.com/nomime.html | and *NO*
attachments. |
|
|
0
|
|
|
|
Reply
|
aa8030 (70)
|
10/27/2004 9:06:08 AM
|
|
Please don't top-post;
see http://ursine.dyndns.org/wiki/index.php/Top_Posting
and the "Netiquette Guidelines" RFC
http://www.ietf.org/rfc/rfc1855.txt
aa top-posted [corrected]:
> "Pedro Graca" <hexkid@hotpop.com> wrote in message
> news:slrncntaj0.8p2.hexkid@ID-203069.user.uni-berlin.de...
>> aa wrote:
>> > If I have a customers database and wanted to automastically create and
>> > post an email from a local computer to each customer of the same
>> > content - can I do it in PHP?
>>
>> Yes.
>>
>> But emails aren't posted.
> You say "emails aren't posted"
> The mail() description says "mail() automatically mails the message..."
>
> So mail() posts the messages but does not send them - what is the difference
> between sending and posting?
I just don't like the word "post" when associated with mails.
Mails get sent (or queued); blog entries get posted; usenet posts get
posted
>> > If affirmative which functions should I consider?
>>
>> mail() ==> http://www.php.net/manual/en/function.mail.php
>
> Thanks, Pedro, that's what I needed.
You're welcome.
--
USENET would be a better place if everybody read: | to mail me: simply |
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
http://www.expita.com/nomime.html | and *NO* attachments. |
|
|
0
|
|
|
|
Reply
|
hexkid2 (1017)
|
10/27/2004 10:17:03 AM
|
|
On my local w2k/IIS5 the line
mail("address@yahoo.com", "My Subject", "Line 1\nLine 2\nLine 3")
returns
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
address@yahoo.com
What might be the reason?
|
|
0
|
|
|
|
Reply
|
aa8030 (70)
|
10/28/2004 10:57:13 AM
|
|
[Please do not start a new thread with a response to a unrelated message]
aa wrote:
> On my local w2k/IIS5 the line
> mail("address@yahoo.com", "My Subject", "Line 1\nLine 2\nLine 3")
> returns
> Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
> address@yahoo.com
>
> What might be the reason?
This is not a PHP issue.
Your mail server configurations does not allow relaying to yahoo.com.
Check your documentation for the mail server and reconfigure it
according to your needs (or ask your system administrator to do that for
you).
Maybe you can sidetrack your mail server by specifying the sender in the
mail() command:
mail('address@yahoo.com', 'test', "line 1\nline 2", 'From: me@here');
--
USENET would be a better place if everybody read: | to mail me: simply |
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
http://www.expita.com/nomime.html | and *NO* attachments. |
|
|
0
|
|
|
|
Reply
|
hexkid2 (1017)
|
10/28/2004 1:17:03 PM
|
|
> mail('address@yahoo.com', 'test', "line 1\nline 2", 'From: me@here');
Same result
> or ask your system administrator to do that for> you).
No sys admin here, just two computers connected to Internet via router-modem
> Your mail server configurations does not allow relaying to yahoo.com.
> Check your documentation for the mail server and reconfigure it
The fact that I have OE and Outlook properly functioning on this computer
and they both can e-mail to any address - does this mean that SMTP is
configured correctly?
However both OE and Outlook use pw which is stored in the account
configuration. Perhaps to e-mail from PHP I need to pass the login and pw to
SMTP - if so, how do I do that?
|
|
0
|
|
|
|
Reply
|
aa8030 (70)
|
10/28/2004 2:22:28 PM
|
|
aa wrote:
> However both OE and Outlook use pw which is stored in the account
> configuration. Perhaps to e-mail from PHP I need to pass the login and pw to
> SMTP - if so, how do I do that?
You have to set php up to mimic the behaviour of OE and Outlook.
My guess is that your SMTP server (at the ISP) only works after POP
authentication.
I did a POP authenticate function a long time ago ...
It's available on Google groups
http://groups.google.com/groups?selm=ieuumvgbd9ppvejcjiav3lmjeij4r3h6pg%404ax.com
--
USENET would be a better place if everybody read: | to mail me: simply |
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
http://www.expita.com/nomime.html | and *NO* attachments. |
|
|
0
|
|
|
|
Reply
|
hexkid2 (1017)
|
10/28/2004 4:55:53 PM
|
|
> My guess is that your SMTP server (at the ISP) only works after POP
> authentication.
Not exactly. As I said, I am getting that error on my local machine. And I
do not intend this for a website. I just want to automate sending out
relatively big number of e-mails from my local w2k. IE and Outlook do not
seem to allow the functionality I need.
|
|
0
|
|
|
|
Reply
|
aa8030 (70)
|
10/28/2004 6:39:44 PM
|
|
|
8 Replies
20 Views
(page loaded in 2.21 seconds)
Similiar Articles: Insert statements and foreign keys etc.. - comp.databases.mysql ...... to create a second customer with the same information as the first i.e. same user id, same email ... of each other. Also, why cannot a customer be ... entire content ... How best to detect duplicate values in a column? - comp.databases ...... to determine the most popular answers to each q... ... changing my PHP code and might accidently create two answers by the same ... is not what you indicated in your original post. Battlefront hacked - comp.sys.ibm.pc.games.war-historical ...... got hacked and customers are now getting an email ... in again to the same place he got into before. He attempted to send an email to all our customers ... in front of each ... DSP Job opening in Sacramento, CA - comp.dsp... www.gldsp.com ( modify address for return email ) www ... we haven't hought about any of this until your post ... And they've been placated by years of the same liberal ... Sampling: What Nyquist Didn't Say, and What to Do About It - comp ...... out there who actually read the papers that I post on ... narrow bits of signal spectrum right up in the same ... bye Andreas -- Andreas H nnebeck | email: acmh@gmx ... SAS and SATA (arrays) on one controller (LSISAS1068)? - comp ...I'll post back here if they disassemble themselves ... If you create a RAID volume, then it has to all SAS or ... SAS/SATA in RAID volumes from some of our big box customers ... Dos and don'ts in C++ unit testing? - comp.lang.c++.moderated ...The same thing with design and tests: I don't design as often ... merely *an > application* of good OO design --- ensure each ... We needed to display some dynamic content for ... Where did Fortran go? - comp.lang.fortran... pathf95/openf95 are on average very close to each ... well integrated, for example (copy from a Aug. 30 post ... -- Richard Maine email: last name at domain . net domain ... Wargame of the Year 2009 - Election - comp.sys.ibm.pc.games.war ...The Rules : 1) 1 (wo)man, 1 post - all votes in the ... site on the Web. nospam@jades.org /is/ a real email ... indeed - so I looked it up :) The actual content of the ... Email - Wikipedia, the free encyclopedia... developed – and were expanded to create the first true email system: ... organizations, as long as they ran the same email ... users who receive voluminous unsolicited email each ... Web Hosting Features, Website Design Tools - Yahoo! Web Hosting... audio tracks you post ... that a number of customers' web sites and other email or storage services are hosted from the same ... upload as much as content as you like each ... 7/15/2012 11:21:36 PM
|