php-windows Digest 31 Aug 2002 21:50:21 -0000 Issue 1317
Topics (messages 15612 through 15623):
Re: mail() does not work. Help please...
15612 by: Aleksandar Skodric
Re: mail() I get crazy from this...
15613 by: Aleksandar Skodric
15615 by: Aleksandar Skodric
15616 by: Aleksandar Skodric
Re: Capturing IP Address
15614 by: Aleksandar Skodric
Re: Is there a PHP-WIN FAQ?
15617 by: Aleksandar Skodric
generating an automated mail .......
15618 by: toby z
15619 by: Aleksandar Skodric
Re: generating an automated mail .......]
15620 by: M. Hockings
15623 by: Manuel Lemos
mail server on windows
15621 by: krizz
15622 by: DL Neil
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
SMTP and POP servers are used to send and receive mails. In most of the
cases, people use SMTP and POP for mail.
As I said before, you can use smtp from your provider, or install you own
mail server, which will then give you your own SMTP and POP servers. so in
php.ini you should then type in you IP address...
Hope this helps... : )
Cheers,
Alex
----- Original Message -----
From: "Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 12:58 PM
Subject: Re: [PHP-WIN] mail() does not work. Help please...
> Hello Piotr,
> Thanks for your reaction.
> What must I fill in "your.smpt.server"?
> Where is my smpt-server? At this moment I hava no idea. I can get my
> address with ipconfig /all. So, I can fill in the sendmail_from address
> (although I do not want to receive e-mails at that address)Or must I
> take here some other address?. I am really sorry. I have no idea. You
> must tell me exactly.
> with friendly greetings,
> Peter
>
> Piotr Pluciennik wrote:
> > So, you should have an access to smtp server. Then in
> > php.ini set lines as below according to address of
> > your server and your mailbox...
> >
> > [mail function]
> > SMTP = your.smtp.server
> > sendmail_from = [EMAIL PROTECTED]
> >
> > HTH
> >
> > Piotr
> >
> > --- Peter <[EMAIL PROTECTED]> wrote:
> >
> >>My mail() does not work. Apache server tells me that
> >>no connection could
> >>be made. (I have: windows XP, Apache, PHP4, MySQL)I
> >>do not have a
> >>provider. I just have a bare ADSL line (which I
> >>could hire for a bargain).
> >>1. what must I do in the ini-files? (send_mail etc.)
> >>2. this is my small text which does not work:
> >>$my_mail = "<my_email_address>"
> >>mail ($my_mail, "No need for reply -- PHP test!",
> >>"hi Peter\nLine 2\n");
> >>3. I have a XP-firewall.
> >>As all the other programs work well (several
> >>messengers work fine: AOL,
> >>MSN) what did I do wrong, forget etc.
> >>Can anyone help me?
> >>with friendly greetings,
> >>Peter
> >>
> >>
> >>--
> >>PHP Windows Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Finance - Get real-time stock quotes
> > http://finance.yahoo.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
OK, let me first explain how smtp works (as Aerosmtih would say: you have to
learn to crawl, before you learn to walk...):
when you compose your message in PHP it is beeing passed to the SMTP server
that is defined in php.ini. SMTP shall then pass the message to the
recepient.
As far as I understand, you do not have internet provider (just simple ADSL
line). You are using Hotmail, so your netscape configuration is refering to
these SMTP and POP servers (search in netscape under accounts to se which
servers are they exactly).
However, I do not know if Hotmail will allow you to send message from PHP
(as far as I know you must provide them with username and pass...!? some1
correct me if I am wrong!).
So, as I said earlier, you have to gain access to some smtp server. That can
be done by registering by some local ISP. They will provide you then with
their SMTP and POP server, OR installing one on your machine!
Alex
----- Original Message -----
From: "Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 1:57 PM
Subject: [PHP-WIN] mail() I get crazy from this...
> Hello,
> I repeat: my PHP mail() function does not work. Apache tells me it can
> not connect.
> I have XP, Netscape, Apache, PHP, MYSQL. I have not the faintest idea
> where my smpt server is. I use Netscape for reading my e-mail.I have
> only a raw line to the internet.
> I have installed a firewall.
>
> What must I do to discover what my smpt server is? I must have one.
> Otherwise I could not go to netscape and send mail, to hotmail etc.
>
> I apologize to be so ignorant. So, please do not tell me general things.
> Do not tell me that I will find the answer in any .ini file. You who
> reads this, please, tell me what to do exactly. In the XP environment.
>
> with friendly greetings,
> Peter
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
No, there is always an solution : )
You could apply for the account at some ISP so that you could use their mail
services.
Or, check on the web for mail servers and install one.
I have also XP with PHP/MySQL and also my own DNS and MAIL server... Ans as
you can read my mail know, it seems it is working all well : )
Cheers,
Alex
----- Original Message -----
From: "Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2:31 PM
Subject: Re: [PHP-WIN] mail() I get crazy from this...
> Hello,
> Thanks for this answer. No, I do not have an ISP. I only have a raw
> line: fast ADSL without any whatever, but guaranteed fast.
> I do not understand your kind of english, but it seems to me from your
> last sentence that I should give up.
> with friendly greetings
> Peter van Summeren
>
> Ross Fleming wrote:
> > Why MUST you have one?? To my knowledge, Hotmail isn't a pop/smtp
server.
> > It's web based mail. An SMTP server receives copies of email from you,
and
> > forwards them on to the correct server. That's all. You could
certainly
> > try turning your own machine into an SMTP server, but I would doubt that
> > this will be very successful, given that the majority of the rest of the
> > world refuse connections from unrecognised SMTP servers, in case they
are
> > open-relay.
> >
> > Do you have an Internet Service Provider at all? If so then they should
be
> > able to provide you with one. Other wise you're up the proverbial creek
> >
> > Ross
> >
> >
> >>-----Original Message-----
> >>From: Peter [mailto:[EMAIL PROTECTED]]
> >>Sent: 28 August 2002 12:57
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP-WIN] mail() I get crazy from this...
> >>
> >>
> >>Hello,
> >>I repeat: my PHP mail() function does not work. Apache tells me it can
> >>not connect.
> >>I have XP, Netscape, Apache, PHP, MYSQL. I have not the faintest idea
> >>where my smpt server is. I use Netscape for reading my e-mail.I have
> >>only a raw line to the internet.
> >>I have installed a firewall.
> >>
> >>What must I do to discover what my smpt server is? I must have one.
> >>Otherwise I could not go to netscape and send mail, to hotmail etc.
> >>
> >>I apologize to be so ignorant. So, please do not tell me general things.
> >>Do not tell me that I will find the answer in any .ini file. You who
> >>reads this, please, tell me what to do exactly. In the XP environment.
> >>
> >>with friendly greetings,
> >>Peter
> >>
> >>
> >>--
> >>PHP Windows Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
the best thing to do then is to install your own mail server. There plenty
of them on the markt. Most of them come with 15-30 day free trial, so you
don't have to spend money on sth you don't like...
Alex
----- Original Message -----
From: "Peter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2:50 PM
Subject: Re: [PHP-WIN] mail() I get crazy from this...
> Hello B.A.T.,
> If so, I must organise. By sheer luck I got a cheap fast ADSL line,
> guaranteed 115 kilobytes a second. Now, I understand, I must target to
> be an ISP. I have a fixed IP-address. I have a server and PHP, MYSQL.
> You tell me that other SMPT servers will not accept my e-mail unless I
> am an ISP provider.
> Well than, where/how can I become ISP provider? Because I want to be
> independent.
> with friendly greetings,
> Peter van Summeren
>
> B.A.T. Svensson wrote:
> >>Thanks for this answer. No, I do not have an ISP. I only have a raw
> >>line: fast ADSL without any whatever, but guaranteed fast.
> >>I do not understand your kind of english, but it seems to me from your
> >>last sentence that I should give up.
> >
> >
> > You MUST necessarily have an ISP (Internet Service provider),
> > unless you are an ISP your self, which I doubt. ;)
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
$address = server["remote_addr"]
and then just pass the address to your DB
----- Original Message -----
From: "Richard Black" <[EMAIL PROTECTED]>
To: "'James Meers'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2:13 PM
Subject: RE: [PHP-WIN] Capturing IP Address
> _SERVER["REMOTE_ADDR"]
> ==========================================
> Richard Black
> Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
> Tel: 0141 435 3504
> Email: [EMAIL PROTECTED]
>
> -----Original Message-----
> From: James Meers [mailto:[EMAIL PROTECTED]]
> Sent: 28 August 2002 13:06
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Capturing IP Address
>
>
> How would I capture the IP address of a user coming to my site and then,
> putting that information into a database?
>
> Jambo
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Well, I think that in every mail next to unsubsribe info should be also
added where to fin FAQ... : )
Cheers,
Alex
----- Original Message -----
From: "Ross Fleming" <[EMAIL PROTECTED]>
To: "PHP Windows mailing list" <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 5:02 PM
Subject: [PHP-WIN] Is there a PHP-WIN FAQ?
> Lo folks,
>
> Maybe I've just never seen it, but is there an official php-win faq
> circulating? I'm sure regular readers like me will have noticed the
assault
> of questions that keep occurring time and time again? If there isn't a
faq,
> what does everyone think about starting one?
>
> Questions I can think of are:
> (.) How do I get mail() to work?
> (.) I have a script that doesn't print out the variables I POST to it...
> (.) I have an error saying "Headers already sent", what does that mean?
>
> What does everyone think?
>
> Cheers
>
> Ross
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
hi guys
i want to send an automated mail when a person cliks
on the submitt button of the membership form
carrying his password and confirming his email
the problem is ....
i have absolutuley no clue which function should i use
should it be mail()
or imap_mail()
or sumthing else
pleeez help
thnx a million in advance guys ....
clueless
toby ......
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Mail() should be just fine...
$subject = "Confirmation... sth";
$body = "Your username is: $username. Your pass is: $pass";
mail($to, $subject, $body);
Cheers,
Alex
----- Original Message -----
From: "toby z" <[EMAIL PROTECTED]>
To: "php hlp list" <[EMAIL PROTECTED]>
Sent: Saturday, August 31, 2002 2:52 PM
Subject: [PHP-WIN] generating an automated mail .......
> hi guys
>
> i want to send an automated mail when a person cliks
> on the submitt button of the membership form
>
> carrying his password and confirming his email
>
> the problem is ....
>
> i have absolutuley no clue which function should i use
>
>
> should it be mail()
> or imap_mail()
> or sumthing else
>
> pleeez help
> thnx a million in advance guys ....
>
>
> clueless
>
> toby ......
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I meant to send this to the list for everyone's benefit, not just to
Aleksandar directly. Need to pay more attention to where the email is
address when responding, sigh..
Mike
-------- Original Message --------
Subject: Re: [PHP-WIN] generating an automated mail .......
Date: Sat, 31 Aug 2002 09:41:43 -0400
From: "M. Hockings" <[EMAIL PROTECTED]>
To: Aleksandar Skodric <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<02b301c250ed$ade56b40$0100a8c0@chiller>
Interesting,
This makes me wonder if it is just as easy to send an email containing
the results of some computation. Either an attached file or inline.
Would you have to read the content of the file into a variable and send
it as the body or can it simply be attached easily?
Kind regards,
Mike (just learning PHP)
Aleksandar Skodric wrote:
>Mail() should be just fine...
>
>$subject = "Confirmation... sth";
>$body = "Your username is: $username. Your pass is: $pass";
>
>mail($to, $subject, $body);
>
>Cheers,
>Alex
>----- Original Message -----
>From: "toby z" <[EMAIL PROTECTED]>
>To: "php hlp list" <[EMAIL PROTECTED]>
>Sent: Saturday, August 31, 2002 2:52 PM
>Subject: [PHP-WIN] generating an automated mail .......
>
>
>
>
>>hi guys
>>
>>i want to send an automated mail when a person cliks
>>on the submitt button of the membership form
>>
>>carrying his password and confirming his email
>>
>>the problem is ....
>>
>>i have absolutuley no clue which function should i use
>>
>>
>>should it be mail()
>>or imap_mail()
>>or sumthing else
>>
>>pleeez help
>>thnx a million in advance guys ....
>>
>>
>>clueless
>>
>>toby ......
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Everything you'll ever need on one web page
>>from News and Sport to Email and Music Charts
>>http://uk.my.yahoo.com
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
>
>
>
--
Note new email address -> [EMAIL PROTECTED] <-
Mike's Page : http://www.hockings.net/~mike
Rifle Shooting in Ontario : http://www.hockings.net/rso/
Scarborough Rifle Club : http://www.hockings.net/rso/src/
Canadian Shooting Sports : http://www.CdnShootingSports.org
Ontario Rifle Association : http://www.OntarioRifleAssociation.org
--
Note new email address -> [EMAIL PROTECTED] <-
Mike's Page : http://www.hockings.net/~mike
Rifle Shooting in Ontario : http://www.hockings.net/rso/
Scarborough Rifle Club : http://www.hockings.net/rso/src/
Canadian Shooting Sports : http://www.CdnShootingSports.org
Ontario Rifle Association : http://www.OntarioRifleAssociation.org
--- End Message ---
--- Begin Message ---
Hello,
On 08/31/2002 10:44 AM, M. Hockings wrote:
> This makes me wonder if it is just as easy to send an email containing
> the results of some computation. Either an attached file or inline.
> Would you have to read the content of the file into a variable and send
> it as the body or can it simply be attached easily?
If you would like to send any data as a file attached to a message, you
may want to try this class for composing and sending MIME messages that
lets you do that easily:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
I have an apache server for windows, for testing my php scripts. My problem
is with testing the mail function. Anyone knows a way for windows and an
apache server?
--- End Message ---
--- Begin Message ---
krizz,
Apache is a web server. What you need is an SMTP (outbound email) server.
Check the PHP.INI. There are two settings to make. One of them should be the
same email server that you use for sending email from Outlook Express.
Regards,
=dn
> I have an apache server for windows, for testing my php scripts. My
problem
> is with testing the mail function. Anyone knows a way for windows and an
> apache server?
--- End Message ---