php-install Digest 12 Jul 2003 10:51:24 -0000 Issue 1458

Topics (messages 11265 through 11269):

Can I define SMTP account and password for mail() ?
        11265 by: Urs Liska
        11266 by: Ruprecht Helms
        11267 by: Stratsimir Kolchevski

Re: Can I define SMTP account and password for mail()
        11268 by: Urs Liska

error NOTICE
        11269 by: Marco Mastrorilli

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 --- Hello,

I'm quite new to PHP and need some help with the mail setup because I didn't find anything in the manuals and the books I have.

I want to send mails through a php script. My problem is that I didn't find a way to tell php not only the smtp server to send the mail through but also the username and password the smtp server expects. When running the script on my ISP's server it works but the mail is sent from an "CGI-Mailer" account (seemingly central for the ISP). When running the script from my home machine (after having pointed php (in php.ini) to the smtp server through which I can send my emails) I get an error message complaining about required authentication.

Do I understand something wrong or is there really no way to tell php about the username and password for the smtp server?

I would really appreciate any help.
Regards
Urs Liska


--- End Message ---
--- Begin Message ---
Hi Urs Liska,

> I'm quite new to PHP and need some help with the mail setup because I 
> didn't find anything in the manuals and the books I have.
> 
> I want to send mails through a php script. My problem is that I didn't 
> find a way to tell php not only the smtp server to send the mail through 

normaly you did not need to authenticate on a smtp-server. Because of
the spamproblem it can be that the smtp-server has the mechanism smtp
after pop to accept mails only from known senders (a kind of
spamprotection).

So you need to configure your mailserver or ask about the configuration
of the ISP's mailserver.

Regards,
Ruprecht


-----------------------------------------------
Ruprecht Helms IT-Service & Softwareentwicklung

Tel./Fax  +49[0]7621 16 99 16
Homepage: http://www.rheyn.de
email:    [EMAIL PROTECTED]
------------------------------------------------


--- End Message ---
--- Begin Message --- Ruprecht Helms wrote:
Hi Urs Liska,


I'm quite new to PHP and need some help with the mail setup because I didn't find anything in the manuals and the books I have.

I want to send mails through a php script. My problem is that I didn't find a way to tell php not only the smtp server to send the mail through


normaly you did not need to authenticate on a smtp-server. Because of
the spamproblem it can be that the smtp-server has the mechanism smtp
after pop to accept mails only from known senders (a kind of
spamprotection).

So you need to configure your mailserver or ask about the configuration
of the ISP's mailserver.

Regards,
Ruprecht



use this class - http://phpmailer.sourceforge.net/ to enable the
smtp authentication


HTH



Stratsimir




--- End Message ---
--- Begin Message --- Hello Stratsimir Kolchevski,

thank you for the hint. I just downloaded phpmailer and will have a closer look at the source (since I don't want to just use it but also to understand :-)

Regards
Urs

Stratsimir Kolchevski schrieb:
Ruprecht Helms wrote:

Hi Urs Liska,


I'm quite new to PHP and need some help with the mail setup because I didn't find anything in the manuals and the books I have.

I want to send mails through a php script. My problem is that I didn't find a way to tell php not only the smtp server to send the mail through



normaly you did not need to authenticate on a smtp-server. Because of the spamproblem it can be that the smtp-server has the mechanism smtp after pop to accept mails only from known senders (a kind of spamprotection).

So you need to configure your mailserver or ask about the configuration
of the ISP's mailserver.

Regards,
Ruprecht



use this class - http://phpmailer.sourceforge.net/ to enable the
smtp authentication


HTH



Stratsimir





--- End Message ---
--- Begin Message ---
-Notice: Use of undefined constant data......
-Notice: Use of undefined constant mail.......
-Undefined variable........

Why in my scripts i always get error notice like this? 
How can i solve this problem?

Thanks

--- End Message ---

Reply via email to