[PHP] Re: mail problem at interland

2005-02-01 Thread kids_pro
Does PEAR installed in most Linux hosting box?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail problem at interland

2005-02-01 Thread kids_pro
Does PEAR installed in most Linux hosting box? 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail problem at interland

2005-01-29 Thread Ben Ramsey
David Edwards wrote:
Hi,
I have a fairly simple script written that uses the mail() function on a 
client site hosted at Interland. I have used a similar script quite a few 
times before with no problem. However although the script generates no 
errors, no emails appear at their intended destination. Interland support 
has not been that helpful and they did suggest I try the '-f' option in the 
header. That did not work either. Has anyone seen this before, I am running 
out of ideas. The mail portion of the script is below:

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: $emailfrom\n";
$mailsent = mail($emailto, $subject, $msg, $headers,"-f" . $emailfrom);
Any help would be MUCH appreciated.

If you haven't solved this yet, try sending it via SMTP instead of using 
mail(). This will require that you send it by first logging into a valid 
e-mail account and sending it through a socket. PEAR::Mail 
 can do all this for you.

Take a look at the documentation here: 
.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: mail problem at interland

2005-01-28 Thread Manuel Lemos
Hello,
on 01/28/2005 12:09 AM David Edwards said the following:
I have a fairly simple script written that uses the mail() function on a 
client site hosted at Interland. I have used a similar script quite a few 
times before with no problem. However although the script generates no 
errors, no emails appear at their intended destination. Interland support 
has not been that helpful and they did suggest I try the '-f' option in the 
header. That did not work either. Has anyone seen this before, I am running 
out of ideas. The mail portion of the script is below:

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: $emailfrom\n";
$mailsent = mail($emailto, $subject, $msg, $headers,"-f" . $emailfrom);
The headers seem to be fine, except maybe for those priority headers 
that are useless and may be the cause of some spam filters understand it 
as a pattern of spam.

Other than that, you are not telling what exactly you are putting in the 
$emailto, $subject and $msg, and there you may because commiting a fault 
that may cause that your message be discarded. Without telling what you 
are putting there, it is hard to help further.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: mail problem

2004-07-11 Thread John Taylor-Johnston
You don't need sendmail. In php.ini you need to add something.

SMTP = [EMAIL PROTECTED] is not right? You want an address, not an email.

SMTP = smtp.uol.com.br is more likely the correct address.


Joao Gomes wrote:

> Hi,
>
> I am a beginner in php and I am trying to send emails from my machinne, I
> dont have any mail server installed in my computer (e.g. sendmail), btw i am
> running Windows XP, i wrote this script:
>  $name=$HTTP_POST_VARS['name'];
> $email=$HTTP_POST_VARS['email'];
> $feedback=$HTTP_POST_VARS['feedback'];
>
> $toaddress = '[EMAIL PROTECTED]';
> $subject = 'Feedback from web site';
> $mailcontent = 'Customer name: '.$name."\n"
> 'Customer email: '.$email."\n"
> "Customer comments: \n".$feedback."\n";
> $fromaddress = 'From: [EMAIL PROTECTED]';
>
> mail($toaddress, $subject, $mailcontent, $fromaddress);
> ?>
>
> and changed the php.ini to:
>
> [mail function]
> ; For Win32 only.
> SMTP = [EMAIL PROTECTED]
> smtp_port = 25
> ; For Win32 only.
> sendmail_from = [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail problem

2004-07-11 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Joao Gomes wrote:
> [mail function]
> ; For Win32 only.
> SMTP = [EMAIL PROTECTED]

I don't think [EMAIL PROTECTED] is a valid hostname.

-- 
Tim Van Wassenhove 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail() problem

2004-06-03 Thread Ben Ramsey
I would also suggest adding the following headers to the message, as 
they are supposed to help keep the spam filters from recognizing a 
message as spam:

X-Priority: 3
X-MSMail-Priority: Normal
Of course, you can read up on the various priority levels and change 
them if you want, but these settings are for "normal" priority mail and 
will help to pass it through the spam filters, from what I understand. 
They've worked for us so far.

Stephen Lake wrote:
Another suggestion is if its an HTML format mail, make sure you use
properie making sure all tags are closed that kind of stuffsome
software will block if the HTML is not well formed
"Rick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
   Does anyone know a good format for sending email using the mail()
function that doesnt get stopped by antispam software?
I need to send and email from my sever when a new member creates an
account,
this ive done but my email gets binned straight away? must be the headers?
Regards
Rick
--
Regards,
 Ben Ramsey
 http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
Visit for more information or to join the movement.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: mail() problem

2004-06-02 Thread Stephen Lake
Another suggestion is if its an HTML format mail, make sure you use
properie making sure all tags are closed that kind of stuffsome
software will block if the HTML is not well formed

"Rick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
> Does anyone know a good format for sending email using the mail()
> function that doesnt get stopped by antispam software?
>
> I need to send and email from my sever when a new member creates an
account,
> this ive done but my email gets binned straight away? must be the headers?
>
> Regards
>
> Rick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail() problem

2004-06-02 Thread Ligaya Turmelle
minor suggestion:   make sure you have a from address.

Respectfully,
Ligaya Turmelle

"Rick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
> Does anyone know a good format for sending email using the mail()
> function that doesnt get stopped by antispam software?
>
> I need to send and email from my sever when a new member creates an
account,
> this ive done but my email gets binned straight away? must be the headers?
>
> Regards
>
> Rick

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail problem

2003-07-26 Thread Manuel Lemos
Hello,

On 07/26/2003 09:35 AM, Paul Marinas wrote:
Hi, i have to send some e-mails with pictures, in html format, i was
wondering if anyone knows where to find a php class that dose this.
You may want to try using this class that does exactly what you need and 
more. It lets you compose HTML messages, eventually with text version 
alternative in the same body to prevent that it gets trapped in spam 
filters, and lets you include any number of picture files either 
embedded in the message HTML part or as attachments.

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: mail problem

2003-07-26 Thread J. Cox

"Paul Marinas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi, i have to send some e-mails with pictures, in html format, i was
> wondering if anyone knows where to find a php class that dose this.

http://phpmailer.sourceforge.net/ should do the trick.

J. Cox
http://www.xaraya.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Mail problem

2003-05-27 Thread Manuel Lemos
Hello,

On 05/27/2003 07:39 AM, Rosen wrote:
The problem is in the "Cc: Support <[EMAIL PROTECTED]>\r\n".
If I write it "Cc: [EMAIL PROTECTED]" - i.e. only E-mail
adress without "Support <..mailadress>" - it works.
Can someone tell me where is the problem ?
This looks like one of those bugs of the mail function. In that case you 
may want to try this class has it implements several work arounds to the 
mail function:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Mail problem with more than 1k users

2002-09-23 Thread Justin French

on 24/09/02 2:12 PM, Peter J. Schoenster ([EMAIL PROTECTED]) wrote:

> Eeks. I hate that. I hate email that does not indicate it knows who
> I am. Why is sending one email to one user so bad? I can't think of a
> reason that would trump the personalization that I like so much. But
> I'm all ears. 

I hate it too, but the complications of personalised email really do
outweigh the benefits, unless you're prepared for:

a) long development time
b) constantly hitting the "ceiling" of your code/server limits and having to
re-evaluate the code ("it worked for 1000, but now i have 3000", etc)
c) placing HUGE burdens on the server


Bulk mail in a personalised manner should be done with dedicated software
and a dedicated server... I think it's a little wishful to place such
burdens on a WEB server... especially one which is a shared server.

Even if the code does work, the sysadmin should shut it down to prevent the
massive performance hit you cause.


If you've got your own server(s), that's a different story... but then I'd
be using ezmlm or something like that.


Justin French


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mail problem with more than 1k users

2002-09-23 Thread Peter J. Schoenster


> On 09/23/2002 08:08 PM, Research And Development wrote:

> > So I re-designed the script to send emails in parts. 500 emails per
> > header. But after the database reached more than 3,000 records the
> > emailing did not work at all. Sendmail refused to send to any of the
> > emails in the database result set.
> > 
> > Any thoughts?

I guess you are putting 500 emails in the Bcc field. I guess. I like to 
personalize outgoing mail. I has a script sending *lots* of email and I 
didn't think it through. My cohort had to clean up after me and he said 
that he just changed a parameter to sendmail to queue the mail, I 
*think* ... I haven't sent a lot of mail since then but I'll look at 
how I was using sendmail. 

On 24 Sep 2002 at 0:41, Manuel Lemos wrote:

> I am not sure what you mean by 500 emails per header.
> 
> Anyway, if you are personalizing messages, ie send a message per user,
> avoid that at all costs and if possible send a single message to all
> users.

Eeks. I hate that. I hate email that does not indicate it knows who 
I am. Why is sending one email to one user so bad? I can't think of a 
reason that would trump the personalization that I like so much. But 
I'm all ears. 

Peter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Mail problem with more than 1k users

2002-09-23 Thread Manuel Lemos

Hello,

On 09/23/2002 08:08 PM, Research And Development wrote:
> Hello. I wrote a PHP script that will pull records from a database 
> (emails) and then mail something to the emails in the result set. Pretty 
> simple and it worked.
> 
> Now that the database has over 1 thousand records I began to experience 
> performance problems. I figured that my problem was that Sendmail does 
> not process emails that have more than x number of emails.
> 
> So I re-designed the script to send emails in parts. 500 emails per 
> header. But after the database reached more than 3,000 records the 
> emailing did not work at all. Sendmail refused to send to any of the 
> emails in the database result set.
> 
> Any thoughts?

I am not sure what you mean by 500 emails per header.

Anyway, if you are personalizing messages, ie send a message per user, 
avoid that at all costs and if possible send a single message to all users.

-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-09-01 Thread David Robley

In article <002101c25029$2ca0c490$[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> I have this set on both boxes. Here are the settings -
> 
>   local box (which does send mail)isp box (does not send
> mail)
> sendmail_from me@@localhost.com   'no value'
> sendmail_path /usr/sbin/sendmail -t -i/usr/sbin/sendmail -t -i
> SMTP  localhost   localhost
> 
> 
> >
> >
> > I actually had to set the SMTP setting to localhost on our
> > solaris boxes to
> > get this to work. I discovered this because we have a few
> > older machines
> > without php.ini files altogether, and the default is to have
> > this set (the
> > older machines worked).
> >

You may wish to test the value tht mail() returns - if it returns true 
then the mail has been successfully handed off to the MTA and beyond the 
scope of PHP; in this case you then need to look at your system mail logs 
to see if there is something useful there. It may also be that the mail is 
successfully sent, but bounces for whatever reason; a check of the 
relevant mailboxes (postmaster, admin etc) may turn up more info.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos

Hello,

On 08/30/2002 07:15 AM, Mark Colvin wrote:
> I have some more information that may be relevant to my problem. I compared
> the phpinfo() from both servers and there is a difference. The sendmail_from
> variable in the php.ini on my server is set to [EMAIL PROTECTED] The same
> variable on my isp's ini file is set to 'no value'. Would this stop my
> emails from being sent and if so can I change this value from within my
> script or would it have to be directly amended in the php.ini file?

Maybe. You may have to define that variable in the ISP but that may not 
be your only problem.


-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos

Hello,

On 08/30/2002 05:26 AM, Mark Colvin wrote:
> My development platform is linux 7.2 and php4.0.6. The production server is
> also linux (I think 7.2) but the php version 4.1.1.

If it is not sending a message, maybe the mail() function is not enabled 
because configure could not find sendmail program in the path. In that 
case you will need to recompile PHP with sendmail in the path of the 
user that runs configure.

-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin

I have this set on both boxes. Here are the settings -

  local box (which does send mail)isp box (does not send
mail)
sendmail_from   me@@localhost.com   'no value'
sendmail_path   /usr/sbin/sendmail -t -i/usr/sbin/sendmail -t -i
SMTPlocalhost   localhost


>
>
> I actually had to set the SMTP setting to localhost on our
> solaris boxes to
> get this to work. I discovered this because we have a few
> older machines
> without php.ini files altogether, and the default is to have
> this set (the
> older machines worked).
>



This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin

Erwin,

sendmail on my local server does indeed reside in /usr/lib/sendmail although
phpinfo shows sendmail_path = /usr/sbin/sendmail -t -i it still sends the
mail? Why is this the case and would you suggest anything to enable me to
get my mail working with my isp. I do not have direct access to php.ini with
my isp.

Mark

> -Original Message-
> From: Erwin [mailto:[EMAIL PROTECTED]]
> Sent: 30 August 2002 14:27
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: Mail problem
>
>
> > Am I correct in
> > assuming that the SMTP and sendmail_from variables are only relevant
> > for webservers on windows hosts and all I need to be concerned with
> > is sendmail_path?
>
> Yes, that is correct. Did you check for existence of
> /usr/sbin/sendmail?
> Sendmail often resides in /usr/lib/sendmail, so you could
> check that. Try
> file_exists, or open a pipe with popen.
>
> Grtz Erwin
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-08-30 Thread M . A . Bond

I actually had to set the SMTP setting to localhost on our solaris boxes to
get this to work. I discovered this because we have a few older machines
without php.ini files altogether, and the default is to have this set (the
older machines worked).

Thanks

Mark Bond


-Original Message-
From: Mark Colvin [mailto:[EMAIL PROTECTED]] 
Sent: 30 August 2002 13:40
To: 'Erwin'
Cc: Php (E-mail)
Subject: RE: [PHP] Re: Mail problem


Still not resolved. I checked my local php.ini and the sendmail_path
variable is commented out. If I do a phpinfo() on the same server,
sendmail_path has a value of /usr/sbin/sendmail -t -i ? I don't know where
it pick up this value from but I can send emails from this server. The
production server that is situated with my isp also has the sendmail_path
set to /usr/sbin/sendmail -t -i but this won't send emails. Both web servers
are on linux 7.2 boxes. Am I correct in assuming that the SMTP and
sendmail_from variables are only relevant for webservers on windows hosts
and all I need to be concerned with is sendmail_path? I have searched
various places for an answer as to why I can't mail from my production
server without much success.



This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mail problem

2002-08-30 Thread Erwin

> Am I correct in
> assuming that the SMTP and sendmail_from variables are only relevant
> for webservers on windows hosts and all I need to be concerned with
> is sendmail_path?

Yes, that is correct. Did you check for existence of /usr/sbin/sendmail?
Sendmail often resides in /usr/lib/sendmail, so you could check that. Try
file_exists, or open a pipe with popen.

Grtz Erwin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin

Still not resolved. I checked my local php.ini and the sendmail_path
variable is commented out. If I do a phpinfo() on the same server,
sendmail_path has a value of /usr/sbin/sendmail -t -i ? I don't know where
it pick up this value from but I can send emails from this server. The
production server that is situated with my isp also has the sendmail_path
set to /usr/sbin/sendmail -t -i but this won't send emails. Both web servers
are on linux 7.2 boxes. Am I correct in assuming that the SMTP and
sendmail_from variables are only relevant for webservers on windows hosts
and all I need to be concerned with is sendmail_path? I have searched
various places for an answer as to why I can't mail from my production
server without much success.



This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Mail problem

2002-08-30 Thread Erwin

>> The sendmail_from variable in the php.ini on my server is set to
>> [EMAIL PROTECTED] The same variable on my isp's ini file is set to
>> 'no value'. Would this stop my emails from being sent and if so can
>> I change this value from within my script or would it have to be
>> directly amended in the php.ini file?

I don't think this would stop emails from being sent.

There are two ways to change the From header:

- Use the function ini_set("sendmail_from", "" );
- Use "From: " as the fourth argument to your mail call

Grtz Erwin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin

I have some more information that may be relevant to my problem. I compared
the phpinfo() from both servers and there is a difference. The sendmail_from
variable in the php.ini on my server is set to [EMAIL PROTECTED] The same
variable on my isp's ini file is set to 'no value'. Would this stop my
emails from being sent and if so can I change this value from within my
script or would it have to be directly amended in the php.ini file?



This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Mail problem

2002-08-30 Thread Mark Colvin

Manuel,

My development platform is linux 7.2 and php4.0.6. The production server is
also linux (I think 7.2) but the php version 4.1.1.
On your second point, do you mean I should say something like this -
header("Location: http://ccmltdcouk.site.securepod.com/test.php";)
This is our temporary domain name. I hope this helps.


> The mail function mail fail for many reasons but you are not checking
> its return value. Possibly it is just PHP configuration issue on your
> server. Which platform do you use?
>
> Another point is that the Location: header is meant to be
> interpreted by
> the user browser, not your server. So, it should include the
> real server
> domain because localhost for each user is their own machine, not your
> server.
>
>
> --
>
> Regards,
> Manuel Lemos
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Mail problem

2002-08-30 Thread Manuel Lemos

Hello,

On 08/30/2002 04:46 AM, Mark Colvin wrote:
> The script below works on my development web server which sits on our
> company LAN. When I transfer the script to our isp hosted webserver, the
> script does not work. I changed 192.168.10.9/iarnaweb/ to read localhost/
> for the isp webserver version (I have also tried replacing localhost with
> the actual ip address). On my development server, the email is sent and the
> redirection happens but on the production server neither of these happens.
> Any ideas?
> 
>$toaddress = "[EMAIL PROTECTED]";
>   $subject = "Enquiry via Web Site.";
>   $mailcontent = "Customer Name: ".$name."\n"
>  ."Position: ".$position."\n"
>  ."Company Name: ".$company."\n"
>  ."Address: ".$address."\n"
>  ."E-mail: ".$email."\n"
>  ."Tel No: ".$telno."\n"
>  ."Customer Comments: ".$enquiry."\n";
> 
>   mail($toaddress, $subject, $mailcontent);
> 
>   header("Location: http://192.168.10.9/iarnaweb/contactack.html";);
> 
> ?>

The mail function mail fail for many reasons but you are not checking 
its return value. Possibly it is just PHP configuration issue on your 
server. Which platform do you use?

Another point is that the Location: header is meant to be interpreted by 
the user browser, not your server. So, it should include the real server 
domain because localhost for each user is their own machine, not your 
server.


-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mail() problem with email

2002-04-30 Thread Manuel Lemos

Hello,

Fred wrote:
> Hello,
> 
> I have a pb with mail() function.
> my script run ok on a linux but not on a nt:
>  ini_set("SMTP", "192.168.0.126");
> ini_set("sendmail_from", "info <[EMAIL PROTECTED]>");
> mail("fred <[EMAIL PROTECTED]>", "the subject", "message");
> ?>
> 
> On my windows nt server I can only run:
>  ini_set("SMTP", "192.168.0.126");
> ini_set("sendmail_from", "[EMAIL PROTECTED]");
> mail("[EMAIL PROTECTED]", "the subject", "message");
> ?>
> 
> I have an error as soon as i use eaml like: mail <[EMAIL PROTECTED]>
> It is allways the same smtp server.
> 
> Is someone have an idea ??

It is possible that you may be facing the multiple line response bug of 
SMTP code for Windows.

You may want to try this SMTP class here and enable debug information to 
see if it can deliver your messages right or see what errors come from 
it if it fails.

http://www.phpclasses.org/browse.html/package/14.html

If you decide to use this class, you may also want to try this wrapper 
class that uses the above with a simpler interface:

http://www.phpclasses.org/browse.html/package/9.html

Regards,
Manuel Lemos



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mail problem (reading mail from a pop3 server)

2001-10-05 Thread Richard Lynch

http://php.net/imap/

You may want to read all the other pages that are parallel with that one.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Nikola Veber <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php forum <[EMAIL PROTECTED]>
Sent: Thursday, October 04, 2001 9:31 PM
Subject: mail problem (reading mail from a pop3 server)


> Hi !
>
> I would like to add an option for reading e-mail from the pop3 server to
my site. Is this
> possible at all ?
>
> Thanks
> Nikola
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: mail problem

2001-09-13 Thread Adrian D'Costa

On Thu, 13 Sep 2001, Peter Houchin Sun Rentals STR Manager wrote:

> php.ini mail related line:
> sendmail_path   =   sendmail -t -i  ;for unix only, may supply 
> arguments as well (default is 'sendmail -t -i')

I suggest you put the full path in the sendmai path.

Adrian


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]