You are here: Re: mail() « All PHP « IT news, forums, messages
Re: mail()

Posted by steve on 10/13/80 11:32

the mail() function sucks...even on linux. for iis, i usually just write the
email to file and the file is saved/written to the iis pickup directory
(usually c:\inetpub\mailroot\pickup). if you can't write directly to this
directory, you can use cdonts. you'd use the com() function in php to create
the cdonts object and then set the paratemeters for authentication as well
as others (like attachements, multipart, etc.).

there's plenty of info re. cdonts on microsoft's website.

specifically here, though, it would seem that you need to configure your
mail FROM (being a valid user) and set up iis to allow relaying for/from
your server's ip address. this has nothing to do with to whom the mail is
being sent.

hth,

me


"Etienne Marais" <etienne@cosmiclink.co.za> wrote in message
news:dlsn29$9gq$1@ctb-nnrp2.saix.net...
| Thanks for the reply J.O.
|
| The email certainly exists,
| (the real one was changed to
| john@doe.co.uk below) and it
| worked fine when mailing it
| from another server (same
| script).
|
| Before I rush into things,
| are you shure the to field is
| the problem and not the from
| field (I would not know), I
| just read what other people
| were claiming so I don't know
| if this is an 'email routing'
| issue or and 'smtp authentication'
| issue ?
|
| Thanks
|
|
| J.O. Aho wrote:
|
| > Etienne Marais wrote:
| >
| >> Warning: mail(): SMTP server response: 554 <john@doe.co.uk>: Recipient
| >> address rejected: Relay access denied in
| >> \\nas22ent\domains\l\doe.co.uk\user\htdocs\enrolform.php on line 108
| >
| > There aren't a such user is the mailserver saying.
| >
| >> Is this simply a mail server setting, or
| >> can I get around this with php ?
| >
| > If there is supposed to be a such user, then it's the mailserver that is
| > badly configured.
| >
| > if the TO address is wrong, then it's most likely in the user input of
the
| > php-code.
| >
| >
| > //Aho
|
| --
| Etienne Marais
| Cosmic Link
| South Africa
|

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация