[PHP] Re: mail() + localhost

2010-07-02 Thread Manuel Lemos
Hello,

on 07/01/2010 10:09 AM Shreyas Agasthya said the following:
 PHP'ers,
 
 I am sure this would have been asked a zillion times but I take this as my
 turn to get some help. I hate to ask such rhetorical questions but quite
 couldn't understand how to tweak this.
 
 All I am trying to do is send a mail from my localhost to my Gmail ID. I
 read stuff about how the SMTP port should be accessible; should be open et
 al. My set-up is very simple:

You cannot use the mail() function because it does not support
authentication.

You need to use some other component that supports SMTP authentication.

I use the MIME message class along with a SMTP class.

http://www.phpclasses.org/mimemessage

You may want to read this article to learn how to set it right to send
messages via Gmail, Hotmail or Yahoo.

http://www.phpclasses.org/blog/package/9/post/1-Sending-email-using-SMTP-servers-of-Gmail-Hotmail-or-Yahoo-with-PHP.html

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - 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 Function In PHP

2010-03-07 Thread Al

Use the Pear Mail package. In particular the smtp class.

It will save you much grief and time.

On 3/6/2010 11:54 PM, Kannan wrote:

Hello
I am creating a application for our college using the
php.In that i want to send mail to all who are all the list.

For that i am just simply use the mail function in php without
configuring any mail system in the system.But the mail didn't send.
For sending the mails wat are requirements and if u have any tutorials
send it to me?

Thanks..












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



[PHP] Re: mail mimedecode with multiple mails in one mbox file

2009-11-15 Thread Manuel Lemos
Hello,

on 11/15/2009 05:22 PM Ashley Sheridan said the following:
 Hi all,
 
 I'm having a bit of difficulty seeing my way through this. I think I'm
 on the right path with mimeDecode, but I can't get it to read all of the
 emails in an mbox file which contains 100 emails; it only reads the
 first.
 
 I've looked over the docs on pear.php.net, but can't seem to find any
 way to get the other 99 emails out!
 
 Does anyone know of any way to do this, or have you done something
 similar another way? Just to clarify, I won't be connecting to an
 external mailbox for this, so it has to be something I can use on a
 local mbox file.

The mbox format is not exactly compatible with the regular MIME message
format.

Anyway, you may use the MIME parser class which supports parsing single
MIME messages as well multi-message messages in the mbox format. Just
set the mbox class variable to 1.

http://www.phpclasses.org/mimeparser


-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - 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 subject encoding breaks

2009-05-12 Thread Thodoris



Hello,

on 05/11/2009 12:25 PM Thodoris said the following:
  

This script seems to work ok in a freebsd development server I have but
a linux production machine breaks the subject's encoding for some
unexpected reason. The subject has a mix of English and Greek characters
that FreeBSD seems to handle like a charm.

Both machines have the same php version (5.2.9) and the scripts encoding
is UTF-8. Iconv and mbstring are configured the same way in php.ini
(although I am not aware whether phpmailer uses iconv or mbstring).

Has anyone had a similar experience? Is it possible that sendmail (which
is the underlying tool) breaks the mail encoding?



I am not sure what you mean by breaking the mail encoding. I use the
MIME message class and it works perfectly with any encoding, even
multibyte character sets. Take a look at the examples test_email_message
and test_multibyte_message.php .

http://www.phpclasses.org/mimemessage


  


I am not sure what is happening exactly but I think that for some reason 
the subject of the e-mail includes more than one encoding while using 
linux. The English part is encoded in ISO-8859-1 and the Greek part into 
something that I can't detect (probably because thunderbird doesn't 
support all encodings).  The body of the message is UTF-8 as expected.


I didn't try the suggested solution since I have solved this, but the 
original question was about phpmailer. I will give it a try however 
because it seems like a better solution and more robust than mail_utf8.


--
Thodoris



[PHP] Re: Mail subject encoding breaks

2009-05-11 Thread Manuel Lemos
Hello,

on 05/11/2009 12:25 PM Thodoris said the following:
 This script seems to work ok in a freebsd development server I have but
 a linux production machine breaks the subject's encoding for some
 unexpected reason. The subject has a mix of English and Greek characters
 that FreeBSD seems to handle like a charm.
 
 Both machines have the same php version (5.2.9) and the scripts encoding
 is UTF-8. Iconv and mbstring are configured the same way in php.ini
 (although I am not aware whether phpmailer uses iconv or mbstring).
 
 Has anyone had a similar experience? Is it possible that sendmail (which
 is the underlying tool) breaks the mail encoding?

I am not sure what you mean by breaking the mail encoding. I use the
MIME message class and it works perfectly with any encoding, even
multibyte character sets. Take a look at the examples test_email_message
and test_multibyte_message.php .

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - 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() is duplicating

2009-03-17 Thread Ashley Sheridan
On Fri, 2009-03-13 at 22:54 -0300, Manuel Lemos wrote:
 Hello,
 
 on 03/13/2009 05:37 PM Rick Pasotto said the following:
  I have several forms on my site that use the same sequence of events:
  The first script displays and validates the form data, the second
  reformats and asks for confirmation or editing, and the third script
  sends the data in an email to the relevent people.
  
  Two of these forms work exactly as they're supposed to but the third
  sends duplicate emails to everyone.
  
  I have looked and looked and I've run diff and I can see no reason why
  this should be happening.
  
  Could someone suggest what I might have wrong?
 
 Usually this happens when you have a To: header in the headers parameters.
 
 -- 
 
 Regards,
 Manuel Lemos
 
 Find and post PHP jobs
 http://www.phpclasses.org/jobs/
 
 PHP Classes - Free ready to use OOP components written in PHP
 http://www.phpclasses.org/
 
Another possibility is that the mail sending is triggered from a page
that is called from a get request rather than post. Some browsers
actually make more than one call when the page is get, thereby
triggering the duplicate mail creation. I had a similar thing with a
database update once before, it's a bugger to be rid of without
switching to post.


Ash
www.ashleysheridan.co.uk


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



Re: [PHP] Re: mail() is duplicating

2009-03-17 Thread Manuel Lemos
Hello,

on 03/17/2009 05:34 PM Ashley Sheridan said the following:
 I have several forms on my site that use the same sequence of events:
 The first script displays and validates the form data, the second
 reformats and asks for confirmation or editing, and the third script
 sends the data in an email to the relevent people.

 Two of these forms work exactly as they're supposed to but the third
 sends duplicate emails to everyone.

 I have looked and looked and I've run diff and I can see no reason why
 this should be happening.

 Could someone suggest what I might have wrong?
 Usually this happens when you have a To: header in the headers parameters.

 Another possibility is that the mail sending is triggered from a page
 that is called from a get request rather than post. Some browsers
 actually make more than one call when the page is get, thereby
 triggering the duplicate mail creation. I had a similar thing with a
 database update once before, it's a bugger to be rid of without
 switching to post.

I suspect that may happen with nervous users that double click form
submit buttons.

Usually I use this forms class that has a built-in feature to show a
form resubmit confirmation message when the use uses the submit function
more than once:

http://www.phpclasses.org/formsgeneration

That feature can be seen in this page:

http://www.meta-language.net/forms-examples.html?example=test_form

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - 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() is duplicating

2009-03-13 Thread Manuel Lemos
Hello,

on 03/13/2009 05:37 PM Rick Pasotto said the following:
 I have several forms on my site that use the same sequence of events:
 The first script displays and validates the form data, the second
 reformats and asks for confirmation or editing, and the third script
 sends the data in an email to the relevent people.
 
 Two of these forms work exactly as they're supposed to but the third
 sends duplicate emails to everyone.
 
 I have looked and looked and I've run diff and I can see no reason why
 this should be happening.
 
 Could someone suggest what I might have wrong?

Usually this happens when you have a To: header in the headers parameters.

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - 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() function HELP

2008-03-04 Thread Shawn McKenzie
Sofia Jacob (CA) wrote:
 I'm getting problems with the mail() function.
 
 ERROR: 
 
 Warning: mail() [function.mail]: Failed to connect to mailserver at  port 
 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in 
 C:\wamp\www\php_sandbox\user_auth_fns.php on line 170
 
 
 I'm using Windows XP prof. and WAMP5 -server 
 
 Here what I did: 
 
 1) I download sendmail.zip from http://glob.com.au/sendmail/
 
 2) I unzip this in a folder on c:\wamp\sendmail 
 
 3) I edited  PHP.INI file 
 
 [mail function]
 ; For Win32 only.
 SMTP = 
 smtp_port = 
 
 ; For Win32 only.
 ;sendmail_from =
 
 ; For Unix only.  You may supply arguments as well (default: sendmail -t 
 -i).
 ;sendmail_path = C:\wamp\sendmail\sendmail.exe -t
 
 ; Force the addition of the specified parameters to be passed as extra 
 parameters
 ; to the sendmail binary. These parameters will always replace the value of
 ; the 5th parameter to mail(), even in safe mode.
 ;mail.force_extra_parameters =
 
 4)I edited  SENDMAIL.INI file 
 
 ; configuration for fake sendmail
 
 ; if this file doesn't exist, sendmail.exe will look for the settings in
 ; the registry, under HKLM\Software\Sendmail
 
 [sendmail]
 
 ; you must change mail.mydomain.com to your smtp server,
 ; or to IIS's pickup directory.  (generally C:\Inetpub\mailroot\Pickup)
 ; emails delivered via IIS's pickup directory cause sendmail to
 ; run quicker, but you won't get error messages back to the calling
 ; application.
 
 smtp_server=mail.yahoo.ca
 
 ; smtp port (normally 25)
 
 smtp_port=465
 
 ; the default domain for this server will be read from the registry
 ; this will be appended to email addresses when one isn't provided
 ; if you want to override the value in the registry, uncomment and modify
 
 default_domain=
 
 ; log smtp errors to error.log (defaults to same directory as sendmail.exe)
 ; uncomment to enable logging
 
 error_logfile=error.log
 
 ; create debug log as debug.log (defaults to same directory as sendmail.exe)
 ; uncomment to enable debugging
 
 ;debug_logfile=debug.log
 
 ; if your smtp server requires authentication, modify the following two lines
 
 auth_username=jacobsofia
 auth_password= ***
 
 ; if your smtp server uses pop3 before smtp authentication, modify the 
 ; following three lines
 
 pop3_server=mail.yahoo.ca
 pop3_username= [EMAIL PROTECTED]
 pop3_password=**
 
 ; to force the sender to always be the following email address, uncomment and
 ; populate with a valid email address.  this will only affect the MAIL FROM
 ; command, it won't modify the From:  header of the message content
 
 [EMAIL PROTECTED]
 
 ; sendmail will use your hostname and your default_domain in the ehlo/helo
 ; smtp greeting.  you can manually set the ehlo/helo name if required
 
 hostname=
 
 
 5) Here my code: 
 
 $email = mysql_result($result, 0, email);
   $from = From: [EMAIL PROTECTED] \r\n;
   $mesg = Tu contraseña  ha sido cambiado a $Password \r\n
   .Por favor utilízalo la próxima cuando hagas log in. \r\n;
   if (mail($email, login información , $mesg, $from))
 echo Enviamos tu nueva contrasena a tu e-mail;
   else
 echo Error;
 
 Thanks for the help
 
 Sofia.

Number 1, in php.ini you left this uncommented so it's using this:
SMTP =
smtp_port =

Number 2, here you didn't uncomment the ;sendmail_path:
; For Unix only.  You may supply arguments as well (default: sendmail
-t -i).
;sendmail_path = C:\wamp\sendmail\sendmail.exe -t

Also, notice the *For Unix only.* comment.  Dunno if it will work anyway
if you have sendmail.

-Shawn

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



[PHP] Re: mail() takes too much time

2007-09-03 Thread Matthew Lasar
I run pretty simple mail group distribution program that uses 
php/mysql and the mail() function. I adapted it from an open source 
script. Most of the time it runs well. But it does take a while to 
run through all 150 members of the list. So I'm half glad that I 
don't have a list of 1000 people or more.


Any way to optimize the mail function in terms of speed? Probably too 
vague a question, sorry.


/ml

At 07:50 AM 9/2/2007, you wrote:

Stut wrote:
 Unless your script is actually hanging for the 4-6 hours this problem
 has nothing to do with PHP.

 How mail is delivered depends on the OS you are using, but usually it
 will get passed to a local MTA which then handles delivering it, at
 which point PHP involvement ends.

 I suggest you look at the Received headers in the messages your getting.
 You should be able to see which server is causing the delay.

Yup, 100% agree that it's not PHP.

Reasons for delays can include a dodgy ISP just taking a long time to
process things, or more typically some form of greylisting e.g. one
MTA deliberately telling the delivering MTA to P*ss off for a while -
compliant servers will resend the mail after a while at which point it
will be accepted. This is a spam prevention technique. See:
http://en.wikipedia.org/wiki/Greylisting

Col

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



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.13.2/983 - Release Date: 
9/1/2007 4:20 PM


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



[PHP] Re: mail() takes too much time

2007-09-03 Thread Colin Guthrie
Matthew Lasar wrote:
 I run pretty simple mail group distribution program that uses php/mysql
 and the mail() function. I adapted it from an open source script. Most
 of the time it runs well. But it does take a while to run through all
 150 members of the list. So I'm half glad that I don't have a list of
 1000 people or more.
 
 Any way to optimize the mail function in terms of speed? Probably too
 vague a question, sorry.

Yeah it is fairly vauge.

I guess one obvious way is to ask whether or not you send the same mail
content to people but just do it 150 times? Or whether you customise the
mail to each person putting in e.g. their name at the top etc. If the
former then you can send the mails in batches of about 30-50 at a time
using the BCC header rather than a direct To header (set the To address
to e.g. yourself or a dummy address that works but is a bitbucket). That
way there will be considerably less calls to mail() to process.

The other way would be to write the mails to a database and process them
later. You could write a special cronjob that runs every few minutes and
pushes them out in the background. It could run every minute or two
(with file locking to prevent more than one instance at a time) and
either process all mails it can or just do about 50 of them and then
quit and leave the rest for the next run. Obviously you have to manage
it to make sure that it can physically catch up with how many mails are
being generated but this isn't too hard.

There are lots of other ways too - I've even seen some people program a
MySQL UDF to send mail and let the database do the work, but I would
have serious doubts about that approach for this use!!

Col

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



Re: [PHP] Re: mail() takes too much time

2007-09-03 Thread brian

Matthew Lasar wrote:
I run pretty simple mail group distribution program that uses php/mysql 
and the mail() function. I adapted it from an open source script. Most 
of the time it runs well. But it does take a while to run through all 
150 members of the list. So I'm half glad that I don't have a list of 
1000 people or more.


Any way to optimize the mail function in terms of speed? Probably too 
vague a question, sorry.




Have a look at the Swift Mailer package:

http://www.swiftmailer.org/

I use it to send out well over 1000 mails at a time and it works quite 
fine for me. Check out the anti-flood extension for sending large batches:


$swift = new Swift(new Swift_Connection_SMTP('localhost'), 'domain.org');


/* 100 mails per batch with a 30 second pause between batches
 */
$swift-attachPlugin(new Swift_Plugin_AntiFlood(100, 30), 'anti-flood');


/* list of recipients is an object wrapping an array
 */
$recipients = new Swift_RecipientList();
$recipients-addTo('[EMAIL PROTECTED]', 'foo bar');


/* headers
 */
$message = new Swift_Message('the subject');
$message-setCharset('utf-8');
$message-setReplyTo('[EMAIL PROTECTED]');
$message-setReturnPath('[EMAIL PROTECTED]');
$message-headers-set('Errors-To', '[EMAIL PROTECTED]');


/* multipart is a breeze
 */
$message-attach(new Swift_Message_Part($plain_content));
$message-attach(new Swift_Message_Part($html_content, 'text/html'));


/* if you're sending the mails from, eg. an admin page ...
 */
set_time_limit(0);
ignore_user_abort();
flush();


/* send it out
 */
$num_sent = $swift-batchSend($message, $recipients, new 
Swift_Address('[EMAIL PROTECTED]', 'from'));


This really should be rolled into the PEAR project, IMO.

brian

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



Re: [PHP] Re: mail() takes too much time

2007-09-03 Thread Stut

Matthew Lasar wrote:
I run pretty simple mail group distribution program that uses php/mysql 
and the mail() function. I adapted it from an open source script. Most 
of the time it runs well. But it does take a while to run through all 
150 members of the list. So I'm half glad that I don't have a list of 
1000 people or more.


Any way to optimize the mail function in terms of speed? Probably too 
vague a question, sorry.


Don't use the mail function. On a unix-based system it will pass the 
message directly to sendmail which will attempt to deliver the message 
in realtime. When you're sending a large amount of mail that sucks.


Your best option is to switch to using a system that connects to the 
SMTP server on localhost directly. That way you can dump each message on 
to the local MTA quickly and then forget about it.


As an example one of the newletters I maintain has over 300,000 
subscribers and the system that sends the emails (written in PHP of 
course) takes less than 6 hours. The mail queue on that machine gets 
very big and then it's up to the MTA to work through sending the 
messages as quickly as it can (which usually takes about 28 hours).


-Stut

--
http://stut.net/

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



[PHP] Re: mail() takes too much time

2007-09-03 Thread Colin Guthrie
Stut wrote:
 Matthew Lasar wrote:
 I run pretty simple mail group distribution program that uses
 php/mysql and the mail() function. I adapted it from an open source
 script. Most of the time it runs well. But it does take a while to run
 through all 150 members of the list. So I'm half glad that I don't
 have a list of 1000 people or more.

 Any way to optimize the mail function in terms of speed? Probably too
 vague a question, sorry.
 
 Don't use the mail function. On a unix-based system it will pass the
 message directly to sendmail which will attempt to deliver the message
 in realtime. When you're sending a large amount of mail that sucks.
 
 Your best option is to switch to using a system that connects to the
 SMTP server on localhost directly. That way you can dump each message on
 to the local MTA quickly and then forget about it.

I don't think this is correct, at least on my system. I know this
because I deliberatly ban internal machines on my network from
delivering mail to outside server (internal LAN cannot connect to port
25 on any system other than our gateway - this is to stop any windows
machines that may sneak into my network from spamming the world!).

When I test web apps locally I have to watch to override email addresses
such that I don't try to sent to real people but when I forget, they all
end up stuck in my local machine's MTA. So for that reason, mail() must
speak to my MTA, not try to deliver directly. Perhaps it depends on your
sendmail implementation? I prefer postfix (which has a sendmail
compatible binary). YMMV.

Col.

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



Re: [PHP] Re: mail() takes too much time

2007-09-03 Thread Stut

Colin Guthrie wrote:

Stut wrote:

Matthew Lasar wrote:

I run pretty simple mail group distribution program that uses
php/mysql and the mail() function. I adapted it from an open source
script. Most of the time it runs well. But it does take a while to run
through all 150 members of the list. So I'm half glad that I don't
have a list of 1000 people or more.

Any way to optimize the mail function in terms of speed? Probably too
vague a question, sorry.

Don't use the mail function. On a unix-based system it will pass the
message directly to sendmail which will attempt to deliver the message
in realtime. When you're sending a large amount of mail that sucks.

Your best option is to switch to using a system that connects to the
SMTP server on localhost directly. That way you can dump each message on
to the local MTA quickly and then forget about it.


I don't think this is correct, at least on my system. I know this
because I deliberatly ban internal machines on my network from
delivering mail to outside server (internal LAN cannot connect to port
25 on any system other than our gateway - this is to stop any windows
machines that may sneak into my network from spamming the world!).

When I test web apps locally I have to watch to override email addresses
such that I don't try to sent to real people but when I forget, they all
end up stuck in my local machine's MTA. So for that reason, mail() must
speak to my MTA, not try to deliver directly. Perhaps it depends on your
sendmail implementation? I prefer postfix (which has a sendmail
compatible binary). YMMV.


It depends a lot on how your machine is configured, but the way I 
described it is usually the way it works. Note that if sendmail cannot 
send the messages immediately it will pass it into the local mail queue 
and that's probably what's happening on your system because sendmail 
will find port 25 blocked.


-Stut

--
http://stut.net/

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



[PHP] Re: mail() takes too much time

2007-09-02 Thread Colin Guthrie
Stut wrote:
 Unless your script is actually hanging for the 4-6 hours this problem
 has nothing to do with PHP.
 
 How mail is delivered depends on the OS you are using, but usually it
 will get passed to a local MTA which then handles delivering it, at
 which point PHP involvement ends.
 
 I suggest you look at the Received headers in the messages your getting.
 You should be able to see which server is causing the delay.

Yup, 100% agree that it's not PHP.

Reasons for delays can include a dodgy ISP just taking a long time to
process things, or more typically some form of greylisting e.g. one
MTA deliberately telling the delivering MTA to P*ss off for a while -
compliant servers will resend the mail after a while at which point it
will be accepted. This is a spam prevention technique. See:
http://en.wikipedia.org/wiki/Greylisting

Col

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



Re: [PHP] Re: mail header questions

2006-12-01 Thread Chantal Rosmuller

  The strange thing is that even the fifth parameter solution doesn't work.
  I use Postfix as MTA by the way.

 Strange - I use postfix on my dev server and it works fine. Are you
 running anything non-default in postfix (eg chroot) ?

 --
 Postgresql  php tutorials
 http://www.designmagick.com/

Hi Chris, the fifth parameter did work when I tested it later on my webserver, 
so there's something wrong with postfix on my local machine.

regards, Chantal

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



Re: [PHP] Re: mail header questions

2006-12-01 Thread Youri LACAN-BARTLEY
Hi there Chantal,
Hi all,

have you ever thought of using phpMailer or swiftmailer?
That has solved me a lot of hassle with time, especially as far as
correctly setting the Return-Path is concerned.

Good luck !

Chantal Rosmuller wrote:
 The strange thing is that even the fifth parameter solution doesn't work.
 I use Postfix as MTA by the way.
 Strange - I use postfix on my dev server and it works fine. Are you
 running anything non-default in postfix (eg chroot) ?

 --
 Postgresql  php tutorials
 http://www.designmagick.com/
 
 Hi Chris, the fifth parameter did work when I tested it later on my 
 webserver, 
 so there's something wrong with postfix on my local machine.
 
 regards, Chantal
 

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



Re: [PHP] Re: mail header questions

2006-11-29 Thread Chantal Rosmuller
On Wednesday 29 November 2006 00:45, Chris wrote:
you will most likely change what

 
  I forgot to mention that I can't set the return-path either.

 That can *only* be an email address - you can't include a name in the
 return-path. Also it can't be changed if safe-mode is on for the server.

  From your code, where does $mainmail come from? It's not in the code
 you posted at all.

 $headers .= From: $mainmail \r\n;

 --
 Postgresql  php tutorials
 http://www.designmagick.com/

Hi Chris,

The return path works now, $mainmail comes from a different file config.php 
that is included. $mainmail is also used for the return-path and that works 
so $mainmail being empty is also not the problem.

The strange thing is that even the fifth parameter solution doesn't work. I 
use Postfix as MTA by the way.

Chantal

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



Re: [PHP] Re: mail header questions

2006-11-29 Thread Chris

Chantal Rosmuller wrote:

On Wednesday 29 November 2006 00:45, Chris wrote:
you will most likely change what


I forgot to mention that I can't set the return-path either.

That can *only* be an email address - you can't include a name in the
return-path. Also it can't be changed if safe-mode is on for the server.

 From your code, where does $mainmail come from? It's not in the code
you posted at all.

$headers .= From: $mainmail \r\n;

--
Postgresql  php tutorials
http://www.designmagick.com/


Hi Chris,

The return path works now, $mainmail comes from a different file config.php 
that is included. $mainmail is also used for the return-path and that works 
so $mainmail being empty is also not the problem.


The strange thing is that even the fifth parameter solution doesn't work. I 
use Postfix as MTA by the way.


Strange - I use postfix on my dev server and it works fine. Are you 
running anything non-default in postfix (eg chroot) ?


--
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Re: mail header questions

2006-11-28 Thread Chantal Rosmuller
Hi Manuel,

  1) I can't get the From header right, when I receive the test mail the
  sender is apache

 There is From: and From . From is not a real header. It is just set by
 some MTA to the return path address and is also used as separator in
 mailbox files with multiple messages in the mbox format.

 If you can set the Return-Path address, you will most likely change what
 appears in the From header.

I forgot to mention that I can't set the return-path either.

 You may want to try this using the MIME message composing and sending
 class, that lets you set the Return-Path header and can also detect the
 right line break sequence for your platform.

 http://www.phpclasses.org/mimemessage

That's a good idea, but I would still like to know what I am doing wrong in my 
own script.

Thanks for your help 

 Regards,
 Manuel Lemos

 Metastorage - Data object relational mapping layer generator
 http://www.metastorage.net/

 PHP Classes - 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 header questions

2006-11-28 Thread Chris

Chantal Rosmuller wrote:

Hi Manuel,


1) I can't get the From header right, when I receive the test mail the
sender is apache

There is From: and From . From is not a real header. It is just set by
some MTA to the return path address and is also used as separator in
mailbox files with multiple messages in the mbox format.

If you can set the Return-Path address, you will most likely change what
appears in the From header.


I forgot to mention that I can't set the return-path either.


That can *only* be an email address - you can't include a name in the 
return-path. Also it can't be changed if safe-mode is on for the server.


From your code, where does $mainmail come from? It's not in the code 
you posted at all.


$headers .= From: $mainmail \r\n;

--
Postgresql  php tutorials
http://www.designmagick.com/

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



[PHP] Re: mail header questions

2006-11-27 Thread Manuel Lemos
Hello,

on 11/27/2006 05:14 PM Chantal Rosmuller said the following:
 I'm working on a mailform and it's kind of working but I still have 2 
 problems:
 
 1) I can't get the From header right, when I receive the test mail the sender 
 is apache

There is From: and From . From is not a real header. It is just set by
some MTA to the return path address and is also used as separator in
mailbox files with multiple messages in the mbox format.

If you can set the Return-Path address, you will most likely change what
appears in the From header.


 2) The BCC headers (there's more then one) are not stripped.

I suspect that the headers appear in the body. That may be due to wrong
line break for your platform.

You may want to try this using the MIME message composing and sending
class, that lets you set the Return-Path header and can also detect the
right line break sequence for your platform.

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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() encoded subject line

2006-10-16 Thread Colin Guthrie
Emil Edeholt wrote:
 Hi,
 
 I hope this is not too off topic but I have a problem when I use mail().
 When I add the header Content-Type: text/plain; charset=UTF-8 the body
 of the mail is encoded fine but the subject is not encoded. I've tried
 to utf8_encode() and utf8_decode() the subject text but neither helps.
 
 Any idea of how to pass what encoding to use on an email subject?
 
 Thanks!
 
 Regards Emil
 

Have a look at the Zend Mail wrapper.

You have to specially encode the subject to be completely stand alone
from the encoding of the body. All header that contain special
characters (e.g. the From name) have to be stand-alone as the
Content-Type header only applies to the body of the message.

See here: http://www.snook.ca/archives/servers/encoding_accent/

In the Zend Framework:
http://framework.zend.com/fisheye/browse/~raw,r=598/Zend_Framework/trunk/library/Zend/Mail.php
Look at the _encodeHeader() function and more specifically the
Zend_Mime::encodeQuotedPrintable($value) method.

Hope that helps.

Col

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



[PHP] Re: mail() encoded subject line

2006-10-16 Thread Manuel Lemos
Hello,

on 10/16/2006 02:32 PM Emil Edeholt said the following:
 I hope this is not too off topic but I have a problem when I use mail().
 When I add the header Content-Type: text/plain; charset=UTF-8 the body
 of the mail is encoded fine but the subject is not encoded. I've tried
 to utf8_encode() and utf8_decode() the subject text but neither helps.
 
 Any idea of how to pass what encoding to use on an email subject?

Headers encoding is independent of message body encoding set by
Content-Type. Headers need to be encoded with q-encoding algorithm.

You may want to take a look at this popular MIME message class. Just use
the SetEncodedHeader function to add the Subject or another header that
may use 8 bit (non-ASCII) data.

The character set encoding of the message is set using the
default_charset class variable. But you can use a different character
set encoding for individual headers, using the 3rd parameter of the
SetEncodedHeader function.

Take a look at the test_email_message.php example script that shows how
to send messages with non-ASCII characters in the Subject and body.

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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 que system written in PHP for Linux?

2006-07-16 Thread Manuel Lemos
Hello,

on 07/15/2006 01:07 AM eastcoastguyz said the following:
 I have a client who's web site needs to send out opt-in e-mail. I
 contacted the web hosting service who they intend to host this with and
 they have a limit of 500 e-mail messages sent per hour. I suspect most
 web hosting services have a limit on this, so I thought about how to
 address this. The e-mail being sent out would be personalized, and
 there could be other processes from this same web site sending out
 e-mail to a list too. So I thought about developing a mail que system
 written in PHP to help with this.
 
 If this already exists, please point me to it. If there is a better way
 to do this, I would be interested to hear it. Thanks!

When you use the mail function in Linux, it uses sendmail or compatible.
In Linux, all MTA are compatible with sendmail. Sendmail is already a
queue system. There does not seem to be much point in duplicating a
sendmail function that it already does better than PHP could. PHP will
certainly will not override your ISP limits.


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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 in Spam Box

2006-06-19 Thread eqla3.com eqla3.com

is there an example of the correct code?


Re: [PHP] Re: Mail in Spam Box

2006-06-19 Thread eqla3.com eqla3.com

On 6/19/06, eqla3.com eqla3.com [EMAIL PROTECTED] wrote:


is there an example of the correct code?



is my messege get in the right place?


===
web archive
a href=http://7b99.com/;./a


[PHP] Re: Mail in Spam Box

2006-06-18 Thread Manuel Lemos
on 06/18/2006 12:29 PM kartikay malhotra said the following:
 I've use PHP mail to send mail to my Gmail ID. But it gets delivered to my
 Spam box and not the Inbox :(
 
 Am I missing a header, signature, certificate?

Maybe if you show how you are composing the message you are sending we
can advise.

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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 in Spam Box - its working now

2006-06-18 Thread kartikay malhotra

Hey!

Its working now. I replaced @mydomain with some valid mail address (gmail
address) and the mail was delivered to the Inbox. Feel free to use the code
if it helps. Attachments are allowed.

Also, it works without a subject (for gmail), but the mail address I used
now was genuine. Also genuine yahoo addresses are allowed, but not fake
ones. Pls tell me how does gmail know if the address from some remote domain
is genuine and not fake? After all, everything else is same.

Thanks Community
KM

On 6/19/06, Manuel Lemos  [EMAIL PROTECTED] wrote:


on 06/18/2006 12:29 PM kartikay malhotra said the following:
 I've use PHP mail to send mail to my Gmail ID. But it gets delivered to
my
 Spam box and not the Inbox :(

 Am I missing a header, signature, certificate?

Maybe if you show how you are composing the message you are sending we
can advise.

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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




Fwd: [PHP] Re: Mail in Spam Box - my code

2006-06-18 Thread kartikay malhotra

Oops, sent this previous mail to Manuel instead of the group... :)

Hi All!

Sure, here is what I've:


?php

 $uploaddir='/tmp/';
 $account_file = account.txt; //Substitute with a valid file on ur system
 $account_file = $uploaddir.basename($account_file);

 $file = fopen($account_file,'rb');
 $data = fread($file,filesize($account_file));
 fclose($file);

//  echo $data;

 $to =  [EMAIL PROTECTED];
 $from = [EMAIL PROTECTED];
 $message = Hi! Where are you these days?;

 $headers = From: $from;


// Generate a boundary string
 $semi_rand = md5(time());
 $mime_boundary = ==Multipart_Boundary_x{$semi_rand}x;

// Add the headers for a file attachment
 $headers .= \nMIME-Version: 1.0\n .
Content-Type: multipart/mixed;\n .
 boundary=\{$mime_boundary}\;



// Add a multipart boundary above the plain message
 $message = This is a multi-part message in MIME format.\n\n .
   --{$mime_boundary}\n .
   Content-Type: text/plain; charset=\iso-8859-1\\n .
   Content-Transfer-Encoding: 7bit\n\n .
$message . \n\n;

// Base64 encode the file data
 $data = chunk_split(base64_encode($data));


$fileatt_type=text/plain;
$fileatt_name=Hola;

// Add file attachment to the message
 $message .= --{$mime_boundary}\n .
Content-Type: {$fileatt_type};\n .
 name=\{$fileatt_name}\\n .
Content-Disposition: attachment;\n .
 filename=\{$fileatt_name}\\n .
Content-Transfer-Encoding: base64\n\n .
$data . \n\n .
--{$mime_boundary}--\n;

// echo $message;

// Send the message

$ok = @mail($to, $subject, $message, $headers);
if ($ok) {
echo pMail sent Successfully/p;
} else {
echo pMail send failed/p;
}



?

Thanks  Regards
KM

On 6/19/06, Manuel Lemos [EMAIL PROTECTED] wrote:


on 06/18/2006 12:29 PM kartikay malhotra said the following:
 I've use PHP mail to send mail to my Gmail ID. But it gets delivered to
my
 Spam box and not the Inbox :(

 Am I missing a header, signature, certificate?

Maybe if you show how you are composing the message you are sending we
can advise.

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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() and exim

2006-04-07 Thread Manuel Lemos
Hello,

on 04/08/2006 12:11 AM Webmaster said the following:
 I'm not sure if this is the right list to ask this on or not
 
 Here's the situation... my php scripts were generating emails as
 expected.  I was shocked when they told me that exim was not responding
 to requests on port 25 and had to be restarted.  So, PHP communicates
 with exim internally and doesn't have the need for ports as far as PHP
 generated emails go?  Can anyone describe how this communication takes
 place between PHP and exim (or any mail server for that matter)??  Is
 this why exim would not send my emails via thunderbird but would send
 them via PHP???

You are a bit confused, but that is a normal confusion. You do not need
an SMTP server to send messages. The role of the SMTP server is to
receive messages, not to send them. What sends messages is an MTA (Mail
Transfer Agent). Some SMTP servers are attached to MTA, so they can
receive messages to be resent to their final recipients.

PHP under Unix/Linux calls the sendmail program. Every Unix/Linux MTA
emulates sendmail, including exim. The sendmail program just attempts to
resend the message or queue it for later delivery attempt.

Thunderbird and other mail clients could use sendmail to deliver
messages if they were running on the same machine, but they do not
support it.

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - 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 function

2006-02-27 Thread Cristian MARIN
I don't know exactly if this problem belongs to this news forum. This is 
more or less a SMTP question.


The email servers names are kept into the mail MIME headers even if the 
message only passed through them and was then forwarded the servers 
names and IP's. This is done for anti-spam mesures, relay purposes, 
bouncing and other SMTP good reasons.

There are 3 ways to avoid this as far as I know:
1. To use internal networks relay servers with fake unroutable IP's like 
127.x.x.x or 192.168.x.x. However the IP address of the gateway is 
visible and this will work only in case of big networks.
2. To use so many email redirect servers that the MIME message beeing 
too long will start cutting the origins.
3. To connect to the relay server using a masquerading anonymous public 
server with squid or other proxy software running on it.


However this is not legal and I will advise to not use these methods. 
You may be considered a SPAM sender and be sued for these kind of actions.




Cristian MARIN - [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

Developer Designers Division
InterAKT Online - http://www.interaktonline.com


Mohsen Pahlevanzadeh wrote:


Dear all,
I wanna mail to x user that x  can't see my IP address.
Do you know same function?
--Mohsen




[PHP] Re: mail() and Return-Path header

2006-02-02 Thread Barry

Søren Schimkat wrote:

Hi Guys

I'm using the mail function for sending mail, and I would like to specify the
Return-Path header, but it would seem that PHP or Apache is modyfying the
header.

This is the simple code:

mail('[EMAIL PROTECTED]', 'Subject', 'Message', From:
[EMAIL PROTECTED]: [EMAIL PROTECTED]);

.. but when the message bounces - it bounces to [EMAIL PROTECTED] instead of
the bounce adress?

Any hints on how to solve this problem?



Return Path? isn't it Reply-To?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: mail() and Return-Path header

2006-02-02 Thread Søren Schimkat
Quoting Barry [EMAIL PROTECTED]:

 Søren Schimkat wrote:
  Hi Guys
 
  I'm using the mail function for sending mail, and I would like to specify
 the
  Return-Path header, but it would seem that PHP or Apache is modyfying the
  header.
 
  This is the simple code:
 
  mail('[EMAIL PROTECTED]', 'Subject', 'Message', From:
  [EMAIL PROTECTED]: [EMAIL PROTECTED]);
 
  .. but when the message bounces - it bounces to [EMAIL PROTECTED] instead
 of
  the bounce adress?
 
  Any hints on how to solve this problem?
 
 
 Return Path? isn't it Reply-To?



Nope. The Reply-To header is for reply's. Bouncing of mail due to errors is
sendt to the adress set by the Return-Path header.



 --
 Smileys rule (cX.x)C --o(^_^o)
 Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



-- 
mvh Søren Schimkat
www.schimkat.dk

---
www.dyrenes-venner.dk/densorteliste.asp

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



Re: [PHP] Re: mail() and Return-Path header

2006-02-02 Thread Richard Lynch
On Thu, February 2, 2006 7:23 am, Barry wrote:
 Søren Schimkat wrote:
 Hi Guys

 I'm using the mail function for sending mail, and I would like to
 specify the
 Return-Path header, but it would seem that PHP or Apache is
 modyfying the
 header.

 This is the simple code:

 mail('[EMAIL PROTECTED]', 'Subject', 'Message', From:
 [EMAIL PROTECTED]: [EMAIL PROTECTED]);

 .. but when the message bounces - it bounces to [EMAIL PROTECTED]
 instead of
 the bounce adress?

 Any hints on how to solve this problem?


 Return Path? isn't it Reply-To?

Return-path: and Reply-To: are definately different headers.

Return-path is NOT a normal header, and cannot be set through the 4th
PHP argument.

It can be set by the 5th argument.  This feature was added in 4.0.5 --
and if you're using something older than that, you should upgrade
anyway. :-)

http://php.com/manual/en/function.mail.php

You want a valid Return-path: to help avoid spam filters, and to get
back error messages from MTA/MUAs that don't trust From and Reply-to.

Course, it's only a matter of time before Return-path is not trusted,
and some genius will come up with YAH (yet another header) that we'll
all have to cope with. :-v

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Re: mail() with port authentication

2005-10-06 Thread Mark Rees
 Do I need to use Pear to specify port 587 and authentication when
 sending mail? I could not find any way to do it using mail().


Windows or Unix? On Windows you can set the port by setting smtp_port in
php.ini. Unix doesn't appear to have a direct equivalent, but you might be
able to do something with sendmail_path?

As for SMTP authentication, when I wanted to do this on Windows I went for
phpmailer
http://phpmailer.sourceforge.net/

Hope this is of some help

Mark

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



[PHP] Re: mail function-new line-security

2005-09-28 Thread A.J. Brown
I think you're thinking of spam injection through register_globals.  If 
so, yes it is vulnerable.

You need to force the variable data to come from the $_POST variable:

[code]

$name = $_POST['name'];
$phone = $_POST['phone'];
$user_mail = $_POST['user_mail'];
$my_email = $_POST['my_email'];

$usermailmsg =
This is the information you submitted.\n
If this is not correct, please contact us at mailto:$my_email.\n\n
Name: $name\n
Phone: $phone\n

...
Please feel free to write us with any comments or suggestions so that we may 
better serve you.\n
mailto:$my_email\n\n;;

mail($user_mail, $subject, $usermailmsg, $headers);

[/code]
-- 

Sincerely,

A.J. Brown


Peppy [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I have been working on making my contact forms more secure.  In my research, 
the occurence of the new line character \n at the end of the $headers 
variable in the  mail function seems to be a security risk and opens one up 
to injection of spam email.  This part I understand.  I have been unable to 
find out this same information about the message variable.

If I have a variable defining the message like this, can I use the new line 
character or am I opening myself up to more spam injection.

$usermailmsg =
This is the information you submitted.\n
If this is not correct, please contact us at mailto:$my_email.\n\n
Name: $name\n
Phone: $phone\n
...
Please feel free to write us with any comments or suggestions so that we may 
better serve you.\n
mailto:$my_email\n\n;;

mail($user_mail, $subject, $usermailmsg, $headers);

Thanks in advance for any help.

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



[PHP] Re: Mail-format...

2005-09-22 Thread joshua may
I was having the same issue with one of my clients just today in fact. 
We just filtered the email addresses to ensure they're valid. There's a 
million regex's out there to do this for you..


Cheers
Josh

Gustav Wiberg wrote:

Hi there!

I wonder why I get get these kind of mails (look down below in this 
mail) I recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]




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



Re: [PHP] Re: Mail-format...

2005-09-22 Thread Gustav Wiberg
- Original Message - 
From: joshua may [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Thursday, September 22, 2005 9:50 AM
Subject: [PHP] Re: Mail-format...


I was having the same issue with one of my clients just today in fact. We 
just filtered the email addresses to ensure they're valid. There's a 
million regex's out there to do this for you..


Cheers
Josh

Gustav Wiberg wrote:

Hi there!

I wonder why I get get these kind of mails (look down below in this mail) 
I recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]




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



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 2005-09-21



Hi there!

A million? Have you done the count? ;-) *just joking*

Thanx!

/G
http://www.varupiraten.se/

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



Re: [PHP] Re: Mail-format...

2005-09-22 Thread M. Sokolewicz

Gustav Wiberg wrote:

- Original Message - From: joshua may [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Thursday, September 22, 2005 9:50 AM
Subject: [PHP] Re: Mail-format...


I was having the same issue with one of my clients just today in fact. 
We just filtered the email addresses to ensure they're valid. There's 
a million regex's out there to do this for you..


Cheers
Josh

Gustav Wiberg wrote:


Hi there!

I wonder why I get get these kind of mails (look down below in this 
mail) I recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]




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



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 
2005-09-21




Hi there!

A million? Have you done the count? ;-) *just joking*

Thanx!

/G
http://www.varupiraten.se/


No counting, but I'm pretty sure there's more than a million ;p
Every php (wanna-be) dev creates a regexp for email-validation at some 
point (or even more than one). So I'm pretty sure there's *tons* of them 
(and that means billions, and probably more). Unless you want unique 
regexps, which brings it down to quite a lot less ;p


- tul

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



Re: [PHP] Re: Mail-format...

2005-09-22 Thread Gustav Wiberg


- Original Message - 
From: M. Sokolewicz [EMAIL PROTECTED]

To: Gustav Wiberg [EMAIL PROTECTED]
Cc: php-general@lists.php.net; joshua may [EMAIL PROTECTED]
Sent: Thursday, September 22, 2005 5:24 PM
Subject: Re: [PHP] Re: Mail-format...



Gustav Wiberg wrote:

- Original Message - From: joshua may [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Thursday, September 22, 2005 9:50 AM
Subject: [PHP] Re: Mail-format...


I was having the same issue with one of my clients just today in fact. 
We just filtered the email addresses to ensure they're valid. There's a 
million regex's out there to do this for you..


Cheers
Josh

Gustav Wiberg wrote:


Hi there!

I wonder why I get get these kind of mails (look down below in this 
mail) I recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]




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



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 
2005-09-21




Hi there!

A million? Have you done the count? ;-) *just joking*

Thanx!

/G
http://www.varupiraten.se/


No counting, but I'm pretty sure there's more than a million ;p
Every php (wanna-be) dev creates a regexp for email-validation at some 
point (or even more than one). So I'm pretty sure there's *tons* of them 
(and that means billions, and probably more). Unless you want unique 
regexps, which brings it down to quite a lot less ;p


- tul

*lol* Guess it's hard to find a unique solution when there's tons out 
there.. What search-string should be applied in google? (regexp + mail ?)


/G
http://www.varupiraten.se/

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



[PHP] Re: Mail-id validation script

2005-08-13 Thread Manuel Lemos

Hello,

on 08/13/2005 01:49 AM Nahalingam Kanakavel said the following:
This is naha, I am very new to PHP as well as this group, I am in need of 
your guidence all my way.


Now I am doing a project using PHP, in that I created a form.
That form has a field called e-mailid, to validate that I need a script 
(function), whether I have to write it in the server side or client side, 
which one is better?. I need your suggestions, If any script is there plz 
send it to me.


This class does exactly what you ask:

http://www.phpclasses.org/emailvalidation


--

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()===false but msg is sent!

2005-07-02 Thread Jasper Bryant-Greene

Andy Pieters wrote:

So what I do is (

$header=header for multipart mime message;
$body=body with multipart mime message;
$result=mail(Name Firstname $address,Subject,$message,$header);
echo ($result?ok:bogus);


Well, firstly your subject does not match what you're doing. PHP is 
weakly-typed, so $result may be a value that evaluates to FALSE while 
not actually being a boolean value.


In your subject you use the === operator to check types, but you're not 
doing it in the code sample.


You should use

echo ($result === false) ? 'bogus' : 'ok';

or similar.

Jasper

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



[PHP] Re: mail()===false but msg is sent!

2005-07-02 Thread Manuel Lemos

Hello,

on 07/02/2005 07:11 PM Andy Pieters said the following:
 Hi all

 I have this situation where mail() returns a false status but the 
message is

 actually accepted AND reaches destination!

 The PHP Version is 4.3.10, the OS Linux

 So what I do is (

 $header=header for multipart mime message;
 $body=body with multipart mime message;
 $result=mail(Name Firstname $address,Subject,$message,$header);
 echo ($result?ok:bogus);


 So anyone got any ideas?

The mail function practically never fails under Linux because it just 
handles the message to sendmail program or equivalent. This may be a 
mail() function bug.


In any case, you may want to try this class that comes with a wrapper 
function named sendmail_mail(). It works like mail() and takes the same 
arguments but it calls sendmail program directly. If it also fails, it 
may be a problem in your sendmail installation. Otherwise, it is a 
problem in the mail() function.


http://www.phpclasses.org/mimemessage


--

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


--

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() Alternative?

2005-03-23 Thread Manuel Lemos
Hello,
on 03/23/2005 04:14 PM Dan Joseph said the following:
I've had a production system moved to a new server.  Our geniuses here
have refused to allow sendmail on the server and all my e-mail
functions are now gone.  Is there a way around this?  I have already
checked the manual, I don't see anything
You may want to try this MIME message class. It comes with wrapper 
functions that act as direct replacements of the mail() function and let 
you send the messages by alternative means which can be calling the 
sendmail program directly or relaying the message to a SMTP server of 
choice.

http://www.phpclasses.org/mimemessage
--
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() takes a long time to process

2005-02-27 Thread Manuel Lemos
Hello,
on 02/26/2005 09:25 PM Dustin Krysak said the following:
Hi there, I have a script that uses the mail() function, but for some 
reason the script takes a really long time to finish processing (like 5 
minutes). there are some other functions performed (like sql insert, 
etc) that happen immediately as they should. But the mail takes some 
time to finish processing. If I remove the mail function, the script 
finishes immediately. Any ideas? I have included my code below (used for 
the mail). ideas?
Usually this means that the destination server is trying to resolve your 
machine host name from the IP address and it is not possible because the 
DNS misses the respective PTR records. This may happen if you are 
sending messages from domestic (dial-up/ADSL/Cable) Internet account.

--
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 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 
http://pear.php.net/package/Mail can do all this for you.

Take a look at the documentation here: 
http://pear.php.net/manual/en/package.mail.mail.intro.php.

--
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 with attachment

2004-12-09 Thread Dre
I did not try it yet .. but I will

Manuel Lemos [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,

 Dre wrote:
   Thanks Manuel, I will check the class
  
   and here is the code of the mail sending script
   //==
   ?php
 $att_name = $_POST['att'];
 echo $att_name;
 $att_size = filesize($att_name);
 $handle= fopen($att_name, r);
 $file = fread($handle, $att_size);

 You need to open the file as binary but I do not think that could cause
 the problem that you described. Did you try the class that I mentioned?
 Did it work?

 -- 

 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 with attachment

2004-12-08 Thread Manuel Lemos
Hello,
Dre wrote:
I'm trying to send a mail with attachment, using mail() fucntion ..
the mail is sent with the attached file, but when I open my mail box to
check the mail I sent using my script, I find the normal text contents and
the attachment displayed as text too !!!
ex. if I attached a document, it will not be just attached when I open the
mail, it will be displayed as text.
I'm using multipart MIME
You are probably doing something wrong but without seeing the source of 
your code, it is hard to tell what is the problem.

Anyway, you may want to try this class that is capable of composing and 
sending messages with as many attachments as you want and works properly:

http://www.phpclasses.org/mimemessage
--
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 with attachment

2004-12-08 Thread Dre
Thanks Manuel, I will check the class

and here is the code of the mail sending script
//==
?php
  $att_name = $_POST['att'];
  echo $att_name;
  $att_size = filesize($att_name);
  $handle= fopen($att_name, r);
  $file = fread($handle, $att_size);

  $file = chunk_split(base64_encode($file));
  $num = md5(time());

  $hdr = From:.[EMAIL PROTECTED];
  $hdr .= MIME-Version: 1.0\r\n;
  $hdr .= Content-Type: multipart/mixed; ;
  $hdr .= Content-Transfer-Encoding: 7bit\r\n\n;
  $hdr .= boundary=$num\r\n;
  $hdr .= --$num\r\n;

  $hdr .= Content-Type: text/plain\r\n;
  $hdr .= Content-Transfer-Encoding: 8bit\r\n\n;
  $hdr .= $_POST['content'].\r\n;
  $hdr .= --$num\n;

  $hdr .= Content-Type: $att_type; ;
  $hdr .= name=\.$_POST['att'].\\r\n;
  $hdr .= Content-Transfer-Encoding: base64\r\n;
  $hdr .= Content-Disposition: attachment; ;
  $hdr .= filename=\.$_POST['att'].\\r\n\n;
  $hdr .= $file\r\n;
  $hdr .= --$num--;

  if(mail( [EMAIL PROTECTED], $_POST['re'], $_POST['content'], $hdr))
  {echo done;}
  else
  {echo shit;}
  fclose($handle);
?

//==


Manuel Lemos [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,

 Dre wrote:
  I'm trying to send a mail with attachment, using mail() fucntion ..
  the mail is sent with the attached file, but when I open my mail box to
  check the mail I sent using my script, I find the normal text contents
and
  the attachment displayed as text too !!!
  ex. if I attached a document, it will not be just attached when I open
the
  mail, it will be displayed as text.
  I'm using multipart MIME

 You are probably doing something wrong but without seeing the source of
 your code, it is hard to tell what is the problem.

 Anyway, you may want to try this class that is capable of composing and
 sending messages with as many attachments as you want and works properly:

 http://www.phpclasses.org/mimemessage


 -- 

 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 with attachment

2004-12-08 Thread Manuel Lemos
Hello,
Dre wrote:
 Thanks Manuel, I will check the class

 and here is the code of the mail sending script
 //==
 ?php
   $att_name = $_POST['att'];
   echo $att_name;
   $att_size = filesize($att_name);
   $handle= fopen($att_name, r);
   $file = fread($handle, $att_size);
You need to open the file as binary but I do not think that could cause 
the problem that you described. Did you try the class that I mentioned? 
Did it work?

--
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 problems - phpinfo information

2004-10-13 Thread Manuel Lemos
Hello,
On 10/13/2004 01:41 PM, Jed R. Brubaker wrote:
I have been having all kinds of problems with the mail() function in PHP. I 
realize that there are problems inheritly, but I think I am still trying to 
track down the problem.

My latest theory is that PHP isn't set up to work with the right mailing 
program. I know that our system is supposed to be using qmail that actually 
sits on a different server, but I found interesting information in phpinfo 
that is making me wonder if a local sendmail is handling the requests 
instead.

Here are the things I am finding in phpinfo:
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
SMTP localhost localhost
smtp_port 25 25
Path to sendmail /usr/sbin/sendmail -t -i
Enviornment
MAIL /var/mail/kpratt (what does this one do?)
With all of the above refering to sendmail, is there anyway that my mail() 
can actually be using qmail?
I don't think so.
qmail is by default at /var/qmail. If you have installed qmail, you 
should have uninstalled sendmail first, otherwise it may cause system 
havoc (all sorts of problems).

Anyway, qmail comes with a sendmail emulation wrapper in 
/var/qmail/bin/sendmail. The right thing to do is to uninstall sendmail 
and do something like:

ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
Notice that it is /usr/lib/sendmail, which is the default sendmail 
program location since ever. Usually that location is a symbolic link to 
the real location of the sendmail (emulation) program. 
/usr/sbin/sendmail is the location of the real sendmail program (not the 
qmail emulation).

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


Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
 Hello,
 
 On 10/01/2004 12:47 AM, Sam Smith wrote:
 Can anyone tell why the mail (see below) is not being relayed to
 [EMAIL PROTECTED]:
 
 #Note: There were 2 To: addresses. Below is the header from the successful
 mail to the second address.
 
 Each address will receive different message copies.

I wish.

The problem is the first address is not receiving the message. I suspect the
verizon mail server is rejecting it thinking it's spam because of something
missing in the header.

I put the Note in so no one would be confused by the fact the example mail
*was* delivered successfully.

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



Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
 have you tried sending the same message, via the same path (i.e.,
 smtp server), but not generated via php, to this recipient?  by
 same that includes the same rfc821 from/return-path.

I logged on to the web server where php is running and did telnet localhost
25
hello ...

The mail was reported to have not been received.

 
 do make certain that your correspondent doesn't have some funky spam
 filtering of their own.

Excellent idea.

 
 the bottom line, however, is that this isn't a php issue. you're
 successfully getting the message, so your script is working fine.

Yes, thanks.

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



Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Mark

--- Sam Smith [EMAIL PROTECTED] wrote:

  have you tried sending the same message, via the same path (i.e.,
  smtp server), but not generated via php, to this recipient?  by
  same that includes the same rfc821 from/return-path.
 
 I logged on to the web server where php is running and did telnet
 localhost
 25
 hello ...
 
 The mail was reported to have not been received.
 
  
  do make certain that your correspondent doesn't have some funky
 spam
  filtering of their own.
 
 Excellent idea.
 
  
  the bottom line, however, is that this isn't a php issue. you're
  successfully getting the message, so your script is working fine.
 
 Yes, thanks.

I  believe the problem is that Verizon checks the MAIL FROM address
during the SMTP session against the domain portion of the From
header. If they don't match, the mail is rejected (or dropped). This
was an issue for a webboard I use...

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


=
Mark Weinstock
[EMAIL PROTECTED]
***
You can't demand something as a right unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



[PHP] Re: mail() and Verizon

2004-09-30 Thread Manuel Lemos
Hello,
On 10/01/2004 12:47 AM, Sam Smith wrote:
Can anyone tell why the mail (see below) is not being relayed to
[EMAIL PROTECTED]:
#Note: There were 2 To: addresses. Below is the header from the successful
mail to the second address.
Each address will receive different message copies.
--
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 function and qmail

2004-09-26 Thread M. Sokolewicz
Php Mysql wrote:
mail function in php requires to use 'sendmail'. But I have only
'qmail' on the box. How I can send email in PHP?
Thanks
just pretend it doesn't say sendmail but qmail. It works on both :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: mail function and qmail

2004-09-26 Thread Catalin Trifu
Php Mysql wrote:
mail function in php requires to use 'sendmail'. But I have only
'qmail' on the box. How I can send email in PHP?
Thanks
Hi,
   After u installed qmail, there is a qmail compatible sendmail 
created for you in /var/lib/qmail/bin (i think that's where it should be).
   As qmail docu' says y should copy or symlink this sendmail to the
/bin/sendmail or /usr/bin/sendmail on u'r system.
   Make sure u first backup u'r original sendmail.
   This should make PHP's mail stuff work as expected with qmail

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


[PHP] Re: mail() function problem

2004-09-02 Thread Dre
is that mean that I don't really have to install any mail server or sendmail
prgram on my testing server??

Jasper Howard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 i use apache on my windows xp machine and have never gotten around to
 settings up any kind of sendmail program, I'm pretty sure you have to
 download one or atleast its some extra configuration.

 -- 


 --
 Jasper Howard :: Database Administration
 Velocity7
 1.530.470.9292
 http://www.Velocity7.com/
 --
 Dre [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I'm using an Apache server .. doesn't it come with a sendmail program ??
  I really don't know
 
  Jasper Howard [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   do you have a sendmail program on your testing server?
  
   -- 
  
  
   --
   Jasper Howard :: Database Administration
   Velocity7
   1.530.470.9292
   http://www.Velocity7.com/
   --
   Dre [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
Hi
I was trying to use the mail() function, but it did not work, maybe
   because
of some settings problem or something that I can't figure out
   
I went online and tried to execute the following
//===
  ?php
 $from = $_POST['from'];
 $subject = $_POST['subject'];
 $content = $_POST['content'];
 $to = [EMAIL PROTECTED];
   $headers = From:.$from;
 if(mail($to, $subject, $content, From: $from)) {
echosent;
}
 else{ echo not sent;
 }
 ?
//===
the variable values sent from a Form in another and they are sent
   correctly
   
but I keep having this error
//===
Warning: mail(): Failed to connect to mailserver at localhost port
 25,
verify your SMTP
and smtp_port setting in php.ini or use ini_set() in
C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on
line
  194
//===
   
   
my php.ini settings for the mail function are
   
//=
[mail function]
; For Win32 only.
SMTP = localhost
   
smtp_port = 25
sendmail_from = [EMAIL PROTECTED]
//=
   
thanks in advance
Dre,

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



Re: [PHP] Re: mail() function problem

2004-09-02 Thread Dre
Thank you Lone , I will try it out

Lone Wolf [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 What you need to do is set your SMTP server inside the php.ini file...


 [mail function]
 SMTP = smtp.server.com  ; for win32 only
 sendmail_from = [EMAIL PROTECTED] ; for win32 only
 ;sendmail_path = ;for unix only, may supply arguments as well ; (default
is
 sendmail -t)

 The test string I used to make sure my example worked:
 ?php
 print mail ('[EMAIL PROTECTED]',
 'No need for reply -- PHP test!', /* subject */
 hi JohnnLine 2n);/* body*/
 ?

 Robert

  -Original Message-
  From: Dre [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 01, 2004 6:48 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Re: mail() function problem
 
 
  Sorry .. but I'm really so new at this
  I'm using Apache Server on a MS Windows XP Pro. OS, and I'm
  trying to send a mail through a form .. what do I need to
  install or configure to be able to do this.
 
  thanks in advance
 
 
  Dre [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   I'm using an Apache server .. doesn't it come with a
  sendmail program
   ?? I really don't know
  
   Jasper Howard [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
do you have a sendmail program on your testing server?
   
--
   
   
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi
 I was trying to use the mail() function, but it did not work,
 maybe
because
 of some settings problem or something that I can't figure out

 I went online and tried to execute the following
 //===
   ?php
  $from = $_POST['from'];
  $subject = $_POST['subject'];
  $content = $_POST['content'];
  $to = [EMAIL PROTECTED];
$headers = From:.$from;
  if(mail($to, $subject, $content, From: $from)) {
 echosent;
 }
  else{ echo not sent;
  }
  ?
 //===
 the variable values sent from a Form in another and
  they are sent
correctly

 but I keep having this error
 //===
 Warning: mail(): Failed to connect to mailserver at localhost
 port
  25,
 verify your SMTP
 and smtp_port setting in php.ini or use ini_set() in
  C:\Program
 Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
   194
 //===


 my php.ini settings for the mail function are

 //=
 [mail function]
 ; For Win32 only.
 SMTP = localhost

 smtp_port = 25
 sendmail_from = [EMAIL PROTECTED] //=

 thanks in advance
 Dre,
 
  -- 
  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



[PHP] Re: Mail Functions help

2004-09-01 Thread AceZero2790
I did some research and found out that my ISP's SMTP server is 
smtp.comcast.net.

If I configure my mail functions to connect to this should my script be able 
to send e-mails?

Research and Experimentation (yes, I did some!):

I tried connecting to it using this telnet command:

telnet smtp.comcast.net

But I got this: 

Connecting to smtp.comcast.net..could not connect to smtp.comcast.net on port 
23. A connecting attempt failed because the connection party did not properly 
respond after a period of time..

Then I tried this:

telnet smtp.comcast.net 25

A new window popped up and said this:

220 Comcast.net - Mailennium ESMTP/Multibox rwcrmhc11 #140

Did it work? So if I put smtp.comcast.net in php.ini should my e-mail script 
work?

-Andrew


Re: [PHP] Re: Mail Functions help

2004-09-01 Thread John Holmes
From: [EMAIL PROTECTED]
Did it work? So if I put smtp.comcast.net in php.ini should my e-mail 
script
work?
I don't know about you, but my magic-php-8-ball says Yes!
http://www.amazon.com/exec/obidos/ASIN/B1ZWV7/indrasnet/002-7362067-2944804
Make sure you restart your webserver after the php.ini change, of course.
---John Holmes... 

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


Re: [PHP] Re: Mail Functions help

2004-09-01 Thread Jason Wong
On Wednesday 01 September 2004 22:50, [EMAIL PROTECTED] wrote:
 I did some research and found out that my ISP's SMTP server is
 smtp.comcast.net.

That's what we like to see.

 If I configure my mail functions to connect to this should my script be
 able to send e-mails?

 Research and Experimentation (yes, I did some!):

Yep, you're getting there ...

 I tried connecting to it using this telnet command:

 telnet smtp.comcast.net

If you don't specify a port number telnet will default to the 'telnet' port 
which is 23.

 But I got this:

 Connecting to smtp.comcast.net..could not connect to smtp.comcast.net on
 port 23. A connecting attempt failed because the connection party did not
 properly respond after a period of time..

 Then I tried this:

 telnet smtp.comcast.net 25

 A new window popped up and said this:

 220 Comcast.net - Mailennium ESMTP/Multibox rwcrmhc11 #140

 Did it work? So if I put smtp.comcast.net in php.ini should my e-mail
 script work?

Yes it would work, providing that:

1) that the machine which you tried the telnet on is the same as your 
webserver

2) Comcast really is your upstream provider and allows you to relay (send) 
mail through smtp.comcast.net

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The perversity of nature is nowhere better demonstrated by the fact that, when
exposed to the same atmosphere, bread becomes hard while crackers become soft.
*/

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



[PHP] Re: mail() function problem

2004-09-01 Thread Jasper Howard
do you have a sendmail program on your testing server?

-- 


--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi
 I was trying to use the mail() function, but it did not work, maybe
because
 of some settings problem or something that I can't figure out

 I went online and tried to execute the following
 //===
   ?php
  $from = $_POST['from'];
  $subject = $_POST['subject'];
  $content = $_POST['content'];
  $to = [EMAIL PROTECTED];
$headers = From:.$from;
  if(mail($to, $subject, $content, From: $from)) {
 echosent;
 }
  else{ echo not sent;
  }
  ?
 //===
 the variable values sent from a Form in another and they are sent
correctly

 but I keep having this error
 //===
 Warning: mail(): Failed to connect to mailserver at localhost port 25,
 verify your SMTP
 and smtp_port setting in php.ini or use ini_set() in
 C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194
 //===


 my php.ini settings for the mail function are

 //=
 [mail function]
 ; For Win32 only.
 SMTP = localhost

 smtp_port = 25
 sendmail_from = [EMAIL PROTECTED]
 //=

 thanks in advance
 Dre,

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



[PHP] Re: mail() function problem

2004-09-01 Thread Dre
I'm using an Apache server .. doesn't it come with a sendmail program ??
I really don't know

Jasper Howard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 do you have a sendmail program on your testing server?

 -- 


 --
 Jasper Howard :: Database Administration
 Velocity7
 1.530.470.9292
 http://www.Velocity7.com/
 --
 Dre [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi
  I was trying to use the mail() function, but it did not work, maybe
 because
  of some settings problem or something that I can't figure out
 
  I went online and tried to execute the following
  //===
?php
   $from = $_POST['from'];
   $subject = $_POST['subject'];
   $content = $_POST['content'];
   $to = [EMAIL PROTECTED];
 $headers = From:.$from;
   if(mail($to, $subject, $content, From: $from)) {
  echosent;
  }
   else{ echo not sent;
   }
   ?
  //===
  the variable values sent from a Form in another and they are sent
 correctly
 
  but I keep having this error
  //===
  Warning: mail(): Failed to connect to mailserver at localhost port 25,
  verify your SMTP
  and smtp_port setting in php.ini or use ini_set() in
  C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
194
  //===
 
 
  my php.ini settings for the mail function are
 
  //=
  [mail function]
  ; For Win32 only.
  SMTP = localhost
 
  smtp_port = 25
  sendmail_from = [EMAIL PROTECTED]
  //=
 
  thanks in advance
  Dre,

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



[PHP] Re: mail() function problem

2004-09-01 Thread Dre
Sorry .. but I'm really so new at this
I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a
mail through a form ..
what do I need to install or configure to be able to do this.

thanks in advance


Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I'm using an Apache server .. doesn't it come with a sendmail program ??
 I really don't know

 Jasper Howard [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  do you have a sendmail program on your testing server?
 
  -- 
 
 
  --
  Jasper Howard :: Database Administration
  Velocity7
  1.530.470.9292
  http://www.Velocity7.com/
  --
  Dre [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi
   I was trying to use the mail() function, but it did not work, maybe
  because
   of some settings problem or something that I can't figure out
  
   I went online and tried to execute the following
   //===
 ?php
$from = $_POST['from'];
$subject = $_POST['subject'];
$content = $_POST['content'];
$to = [EMAIL PROTECTED];
  $headers = From:.$from;
if(mail($to, $subject, $content, From: $from)) {
   echosent;
   }
else{ echo not sent;
}
?
   //===
   the variable values sent from a Form in another and they are sent
  correctly
  
   but I keep having this error
   //===
   Warning: mail(): Failed to connect to mailserver at localhost port
25,
   verify your SMTP
   and smtp_port setting in php.ini or use ini_set() in
   C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
 194
   //===
  
  
   my php.ini settings for the mail function are
  
   //=
   [mail function]
   ; For Win32 only.
   SMTP = localhost
  
   smtp_port = 25
   sendmail_from = [EMAIL PROTECTED]
   //=
  
   thanks in advance
   Dre,

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



[PHP] Re: mail() function problem

2004-09-01 Thread Jasper Howard
i use apache on my windows xp machine and have never gotten around to
settings up any kind of sendmail program, I'm pretty sure you have to
download one or atleast its some extra configuration.

-- 


--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I'm using an Apache server .. doesn't it come with a sendmail program ??
 I really don't know

 Jasper Howard [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  do you have a sendmail program on your testing server?
 
  -- 
 
 
  --
  Jasper Howard :: Database Administration
  Velocity7
  1.530.470.9292
  http://www.Velocity7.com/
  --
  Dre [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi
   I was trying to use the mail() function, but it did not work, maybe
  because
   of some settings problem or something that I can't figure out
  
   I went online and tried to execute the following
   //===
 ?php
$from = $_POST['from'];
$subject = $_POST['subject'];
$content = $_POST['content'];
$to = [EMAIL PROTECTED];
  $headers = From:.$from;
if(mail($to, $subject, $content, From: $from)) {
   echosent;
   }
else{ echo not sent;
}
?
   //===
   the variable values sent from a Form in another and they are sent
  correctly
  
   but I keep having this error
   //===
   Warning: mail(): Failed to connect to mailserver at localhost port
25,
   verify your SMTP
   and smtp_port setting in php.ini or use ini_set() in
   C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
 194
   //===
  
  
   my php.ini settings for the mail function are
  
   //=
   [mail function]
   ; For Win32 only.
   SMTP = localhost
  
   smtp_port = 25
   sendmail_from = [EMAIL PROTECTED]
   //=
  
   thanks in advance
   Dre,

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



Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
Please switch to a UNIX box.For example Fedora.
Because it has everythings that you need.
--- Dre [EMAIL PROTECTED] wrote:

 I'm using an Apache server .. doesn't it come with a
 sendmail program ??
 I really don't know
 
 Jasper Howard [EMAIL PROTECTED] wrote in
 message
 news:[EMAIL PROTECTED]
  do you have a sendmail program on your testing
 server?
 
  -- 
 
 
 

--
  Jasper Howard :: Database Administration
  Velocity7
  1.530.470.9292
  http://www.Velocity7.com/
 

--
  Dre [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   Hi
   I was trying to use the mail() function, but it
 did not work, maybe
  because
   of some settings problem or something that I
 can't figure out
  
   I went online and tried to execute the following
  

//===
 ?php
$from = $_POST['from'];
$subject = $_POST['subject'];
$content = $_POST['content'];
$to = [EMAIL PROTECTED];
  $headers = From:.$from;
if(mail($to, $subject, $content, From:
 $from)) {
   echosent;
   }
else{ echo not sent;
}
?
  
 //===
   the variable values sent from a Form in another
 and they are sent
  correctly
  
   but I keep having this error
  
 //===
   Warning: mail(): Failed to connect to mailserver
 at localhost port 25,
   verify your SMTP
   and smtp_port setting in php.ini or use
 ini_set() in
   C:\Program Files\Apache
 Group\Apache2\htdocs\mysite/myfile.php on line
 194
  
 //===
  
  
   my php.ini settings for the mail function are
  
   //=
   [mail function]
   ; For Win32 only.
   SMTP = localhost
  
   smtp_port = 25
   sendmail_from = [EMAIL PROTECTED]
   //=
  
   thanks in advance
   Dre,
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My home phone is: +98213810146  
My email address is  
  m_pahlevanzadeh at yahoo dot com   
My website is: http://webnegar.net




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
If you use Windows as your server,You must install
M$Exchange server.It is a mailserver under Windows.
Of course,If you want to install Linux,I can help u.
It has benefit for u.
Even i made a group on yahoo phplovers.
You can join to my group  will get help.
It has 56 members.
My email address is 
m_pahlevanzadeh at yahoo dot com
If you have a question on Linux,I can help u.
But it is your chioce...Linux or Windows.
When you develop under windows,You must upload it to
an UNIX box.May be you will have problem.
Please start with Linux as your OS.
Yours,Mohsen
--- Dre [EMAIL PROTECTED] wrote:

 Sorry .. but I'm really so new at this
 I'm using Apache Server on a MS Windows XP Pro. OS,
 and I'm trying to send a
 mail through a form ..
 what do I need to install or configure to be able to
 do this.
 
 thanks in advance
 
 
 Dre [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I'm using an Apache server .. doesn't it come with
 a sendmail program ??
  I really don't know
 
  Jasper Howard [EMAIL PROTECTED] wrote in
 message
  news:[EMAIL PROTECTED]
   do you have a sendmail program on your testing
 server?
  
   -- 
  
  
  

--
   Jasper Howard :: Database Administration
   Velocity7
   1.530.470.9292
   http://www.Velocity7.com/
  

--
   Dre [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
Hi
I was trying to use the mail() function, but
 it did not work, maybe
   because
of some settings problem or something that I
 can't figure out
   
I went online and tried to execute the
 following
   

//===
  ?php
 $from = $_POST['from'];
 $subject = $_POST['subject'];
 $content = $_POST['content'];
 $to = [EMAIL PROTECTED];
   $headers = From:.$from;
 if(mail($to, $subject, $content, From:
 $from)) {
echosent;
}
 else{ echo not sent;
 }
 ?
   
 //===
the variable values sent from a Form in
 another and they are sent
   correctly
   
but I keep having this error
   
 //===
Warning: mail(): Failed to connect to
 mailserver at localhost port
 25,
verify your SMTP
and smtp_port setting in php.ini or use
 ini_set() in
C:\Program Files\Apache
 Group\Apache2\htdocs\mysite/myfile.php on line
  194
   
 //===
   
   
my php.ini settings for the mail function are
   
//=
[mail function]
; For Win32 only.
SMTP = localhost
   
smtp_port = 25
sendmail_from = [EMAIL PROTECTED]
//=
   
thanks in advance
Dre,
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
-DIGITAL  SIGNATURE---
///Mohsen Pahlevanzadeh
 Network administrator   programmer 
  My home phone is: +98213810146  
My email address is  
  m_pahlevanzadeh at yahoo dot com   
My website is: http://webnegar.net




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



RE: [PHP] Re: mail() function problem

2004-09-01 Thread Lone Wolf
What you need to do is set your SMTP server inside the php.ini file...


[mail function] 
SMTP = smtp.server.com  ; for win32 only 
sendmail_from = [EMAIL PROTECTED] ; for win32 only 
;sendmail_path = ;for unix only, may supply arguments as well ; (default is
sendmail -t) 

The test string I used to make sure my example worked: 
?php
print mail ('[EMAIL PROTECTED]', 
'No need for reply -- PHP test!', /* subject */
hi JohnnLine 2n);/* body*/
?

Robert

 -Original Message-
 From: Dre [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 01, 2004 6:48 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: mail() function problem
 
 
 Sorry .. but I'm really so new at this
 I'm using Apache Server on a MS Windows XP Pro. OS, and I'm 
 trying to send a mail through a form .. what do I need to 
 install or configure to be able to do this.
 
 thanks in advance
 
 
 Dre [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
  I'm using an Apache server .. doesn't it come with a 
 sendmail program 
  ?? I really don't know
 
  Jasper Howard [EMAIL PROTECTED] wrote in message 
  news:[EMAIL PROTECTED]
   do you have a sendmail program on your testing server?
  
   --
  
  
   --
   Jasper Howard :: Database Administration
   Velocity7
   1.530.470.9292
   http://www.Velocity7.com/
   --
   Dre [EMAIL PROTECTED] wrote in message 
   news:[EMAIL PROTECTED]
Hi
I was trying to use the mail() function, but it did not work, 
maybe
   because
of some settings problem or something that I can't figure out
   
I went online and tried to execute the following 
//===
  ?php
 $from = $_POST['from'];
 $subject = $_POST['subject'];
 $content = $_POST['content'];
 $to = [EMAIL PROTECTED];
   $headers = From:.$from;
 if(mail($to, $subject, $content, From: $from)) {
echosent;
}
 else{ echo not sent;
 }
 ?
//===
the variable values sent from a Form in another and 
 they are sent
   correctly
   
but I keep having this error 
//===
Warning: mail(): Failed to connect to mailserver at localhost 
port
 25,
verify your SMTP
and smtp_port setting in php.ini or use ini_set() in 
 C:\Program 
Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line
  194
//===
   
   
my php.ini settings for the mail function are
   
//=
[mail function]
; For Win32 only.
SMTP = localhost
   
smtp_port = 25
sendmail_from = [EMAIL PROTECTED] //=
   
thanks in advance
Dre,
 
 -- 
 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



[PHP] Re: Mail module array limits

2004-08-17 Thread Manuel Lemos
Hello,
On 08/17/2004 02:17 PM, Sandy Keathley wrote:
I want to send emails to 2700 addresses selected from a MySQL 
database (an opt-in list).  I am using the Mail module, assembling 
the addresses into an array, and passing that to the module.  I have 
done this before with a few hundred addresses, but in this case, it 
fails.

I know that some of the addresses are no longer good, as a number 
of them bounce back to a special return box.  I have no way of 
knowing how many were delivered, but I added a special one to the 
end of the array, and it was not delivered, so I have to assume that 
not all are going out.

My thought is that there is a limit to the size of the array that Mail 
can handle.  I have not tried using the builtin PHP mail function.

Does anyone know a better way to accomplish this?
The mail function does not take arrays as arguments. Even if you are 
assembling addresses or using multiples To:, Cc: or Bcc: headers, your 
mailing system may be imposing a limit of recipients per messages.

Today is no longer a good idea sending a single message to many recipients.
Even if you split your mailing in several iterations of the mail 
function, to preserve the recipients privacy, you need to use Bcc:, but 
that way several well known mailing systems will tag your messages as 
spam because the recipients addresses are not visible in To: or Cc: header.

This means that the safest way to send messages to many recipients is to 
queue them separately. It takes a lot of time to queue, but the messages 
do not take the risk of being tagged as spam. Despite of this, there are 
some system specific optimizations that can be done to reduce the queue 
time. Just let me know which mail system do you use (Windows based, 
sendmail, qmail, exim, postfix, etc..) so I can advise.

--
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() on *nix using ssmtp or an external smtp server?

2004-08-16 Thread Manuel Lemos
Hello,
On 08/16/2004 10:00 AM, Markus Mayer wrote:
- Does anyone know of a way to make PHP on *nix use an external smtp server 
without having to hack around in the source code of PHP?
- Has anyone got either ssmtp or esmtp working with PHP?
You may want to try this class that can be used to do precisely what you 
want. You can compose and send messages and have them delivered to an 
SMTP server of your choice.

If you do not want to change your scripts much, it comes with a wrapper 
function name smtp_mail() that can be used with exactly the same 
arguments as the mail() function, but it lets you send messages via an 
SMTP server. It can even let you configure authentication credentials if 
 you are required to authenticate to relay on the SMTP server.

http://www.phpclasses.org/mimemessage
--
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() and the From: attribute...

2004-08-13 Thread Manuel Lemos
Hello,
On 08/13/2004 09:23 AM, Tristan Pretty wrote:
I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query...
 
Anyhoo,
In the mail() function, if I use the final field for the From: attribute.
I'm having probs...
 
HAving:
...From: [EMAIL PROTECTED]); doesn't work on all recipients... BUT..
... From: justaname); Works on others... but not all...?
 
Surely this can't be? I've never come accross this before?
Any ideas what's up?
The From address may be irrelevant in most cases. If it is relevant in 
any case is because the recipient server has some kind a filtering facility.

What usually is relevant is the return path address. That determines 
where the messages that are rejected should be bounced, but more 
important than that, it determines which address is informed as sender 
to the recipient server e-mail address.

The way you set the return path address depends on the actual mailing 
system you are using. In some cases it is not possible to change it.

You may want to take a look at this class that comes with several 
sub-classes to deliver messages via different methods: mail(), SMTP, 
sendmail, qmail, etc.. You just need to set the Return-Path header with 
the bounce address and each of the classes takes care of making it the 
real return path address.

http://www.phpclasses.org/mimemessage
--
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() not working

2004-07-31 Thread Tularis
Robin Wilson wrote:
Hi
I get the following error message:
Fatal error: Call to undefined function: mail() in
/srv/www/htdocs/blog/serendipity_functions.inc.php on line 1394
I have changed my php.ini file to find the correct path to sendmail and to
put an option on the end (-f [EMAIL PROTECTED]) to make the
mail come from me, not from my linux system (otherwise my ISPs smtp server
doesn't accept it).
Sending mail works fine with the command line mail command.
What should I do to make this work?
Thanks
Robin
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 29/07/04
enable the function in php.ini :)
There's this small setting somewhere around there that prevents the use 
of certain functions, and you probably configured it to prevent the use 
of mail().

--
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 http://home.mysth.be/~timvw

-- 
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 program

2004-06-28 Thread Torsten Roehr
Syed Ghouse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all

i want to send more than 1000 mails from php program at a time.how can i
send it and will the execution of program become slow.

pls reply to the above ASAP

syed

Please search the mailing list archive at:
http://marc.theaimsgroup.com/?l=php-general

This question is being asked (and answered) frequently.

Regards, Torsten Roehr

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



[PHP] Re: mail program

2004-06-28 Thread pete M
http://phpmailer.sourceforge.net/

check the tutorials

Syed Ghouse wrote:
 Hi all 
 
 i want to send more than 1000 mails from php program at a time.how can i send it and 
 will the execution of program become slow.
 
 pls reply to the above ASAP
 
 syed
 

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



[PHP] Re: mail program

2004-06-28 Thread Manuel Lemos
Hello,
On 06/28/2004 10:02 AM, Syed Ghouse wrote:
i want to send more than 1000 mails from php program at a time.how
can i send it and will the execution of program become slow.
It depends on your environment. Are you running PHP on Linux/Unix or 
Windows? If it is Linux/Unix, does it use as local mailer sendmail, 
qmail, etc? If it is Windows, which version it is? Depending on the 
answers to these questions, there are optimizations that can be made to 
drastically boost the mailing performance.

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

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 command with PHP 4.3.4-1.1 and Fedora Core 1

2004-05-18 Thread David Robley
[EMAIL PROTECTED] (C.F. Scheidecker Antunes) wrote in 
news:[EMAIL PROTECTED]:

 Hello all,
 
 I have updated an old system to Fedora 1 and php php-4.3.4-1.1.
 
 However the mail comand does not work anymore.
 
 The php.ini of the original system did not have anything special.
 
 Sendmail is not being run locally in this machine.
 
 What might be causing it?
 
 Thanks in advance,
 
 C.F.

The problem is that sendmail, or other mail app, is not installed on the 
local machine. Sendmail, or equivalent, must be installed before compiling 
php.

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



[PHP] Re: mail() and passwords

2004-03-09 Thread Manuel Lemos
Hello,

On 03/09/2004 05:37 AM, Will wrote:
How do I modify the following to except a password for the SMTP server?
The mail function does not support authentication.

You may want to try this class that comes with a wrapper function named 
smtp_mail(). It emulates the mail() function except that it lets you 
configure details like the authentication credentials.

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass

--

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() and passwords

2004-03-09 Thread Will
I figured out how to do it.

This is what I put in the php.ini file:
SMTP = mydomains_smtp_server.com

sendmail_from = [EMAIL PROTECTED]

This worked great!!!  It is sent right to a SMTP which is setup to
authenticate all outgoing mails.

~WILL~


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 09, 2004 7:29 PM
To: Will
Cc: [EMAIL PROTECTED]
Subject: Re: mail() and passwords

Hello,

On 03/09/2004 05:37 AM, Will wrote:
 How do I modify the following to except a password for the SMTP
server?

The mail function does not support authentication.

You may want to try this class that comes with a wrapper function named 
smtp_mail(). It emulates the mail() function except that it lets you 
configure details like the authentication credentials.

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass


-- 

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 Function

2004-03-08 Thread Will
Please help me with this.  Can someone give me an example of their 
php.ini on the settings of the mail function.

~WILL~

Will wrote:
Hello All,
I have a question.  I installed PHP on a windows XP machine.
When I try to send a form it says:
Warning: mail(): sendmail_from not set in php.ini or custom From: header.
My header are as follows:
?
require (admin/inc/setup.php);
$subject = FeedBack From Site;

$msg = Senders Name:   $_POST[name]\n;
$msg .= Senders Email: $_POST[email]\n;
$msg .= Message:   \r$_POST[message]\n;
$mailheader .= From:   $_POST[email]\n;
$mailheader .= A message has been sent from Domain;
mail($recipient, $subject, $msg, $mailheader);

require (tmpl/send_form.htm);
?
The recipient is in the setup.php file, just to let you know.

My sendmail_from is as follows:
sendmail_from = [EMAIL PROTECTED]
Please help :)

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


Re: [PHP] Re: Mail Function

2004-03-08 Thread Tom Rogers
Hi,

Tuesday, March 9, 2004, 12:05:22 AM, you wrote:
W Please help me with this.  Can someone give me an example of their 
W php.ini on the settings of the mail function.

W ~WILL~


A wild guess but try it with \r\n as line endings, I don't run the
server under windows so can't help with the ini settings.
-- 
regards,
Tom

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



Re: [PHP] Re: Mail Function

2004-03-08 Thread Stuart
Will wrote:
My sendmail_from is as follows:
sendmail_from = [EMAIL PROTECTED]
Did you restart Apache (assuming you're using the module) after making 
this change?

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


[PHP] Re: Mail class to send several e-mails within one smtp connection

2004-02-29 Thread Michael Kunze
Juergen Mueller Pro.Vider.De Gmbh wrote:

 does anybody know a simply mailing function, which does
 open a smtp connection to an mailserver, sends say 20 mails
 with different bodies to that mailserver and than closes
 the smtp connection again?

phpmailer.sh.net

use $mail-SMTPKeepAlive()

-- 
Michael Kunze
http://www.smrealms.de/

Def: Children: The most common sexually transmitted disease.

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



[PHP] Re: mail()

2004-02-18 Thread Juan Torres
thanks!

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



[PHP] Re: mail()

2004-02-17 Thread Justin Patrin
Juan Torres wrote:

Hi,

I have a problem with mail() function. I'm using PHP with Windows 2000
Professional and Internet Information Server 5.0.
My php code is:
mail([EMAIL PROTECTED], Prueba Envio Email PHP, Linea 1\nLinea 2\nLinea
3);
And my browser shows:
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED] in
c:\inetpub\wwwroot\projects_php\testing\email\default.php on line 21
Why? Can anybody help me?

Thanks!
Juan Torres.
It means that the SMTP server you set in your php.ini won't let you send 
mail like that. If yhe SMTP server you're using is your ISP's, it will 
probably not let you send messages from a yahoo address. Try using the 
e-mail address they gave you when you signed up. If you don't have one, 
ask whoever owns the SMTP server how to allow relaying. Likely this will 
take changing your From: address. If you want replies to go to your 
yahoo address, use the Reply-To: header.

If you do need authentication or more control, I'd suggest using PEAR's 
Mail package.

http://pear.php.net/package/Mail

PEAR takes a little getting used to, but you'll thank me in the end.

An easier solution would be to set up an SMTP server on your machine. 
This website may be useful: http://www.softstack.com/advsmtp.html The 
problem with this is that some mail providers (aol.com, etc.) may not 
accept your mail. Your best bet is to figure out what to send to the 
SMTP server of your ISP to allow you to send mail.

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


[PHP] Re: mail()

2004-02-16 Thread Manuel Lemos
Hello,

On 02/16/2004 08:26 AM, Juan Torres wrote:
I have a problem with mail() function. I'm using PHP with Windows 2000
Professional and Internet Information Server 5.0.
My php code is:
mail([EMAIL PROTECTED], Prueba Envio Email PHP, Linea 1\nLinea 2\nLinea
3);
And my browser shows:
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED] in
c:\inetpub\wwwroot\projects_php\testing\email\default.php on line 21
Why? Can anybody help me?
This means that you need to authenticate to send messages using that 
server. The mail function does not support authentication.

You may want to try  this class that comes with a wrapper function named 
smtp_mail() that can replace the mail() function but also let you 
specify the user name and password for authenticating with your SMTP server:

http://www.phpclasses.org/mimemessage

You also need this:

http://www.phpclasses.org/smtpclass

--

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 function problem

2004-01-10 Thread Jonas
Rolf Berkenbosch wrote:
 Hi All,
  
 I have a big problem with the mail function in PHP.
 I have installed PHP 4.3.3. But no email where send
 With the mail function. If I run this script as root. There
 Is no problem..
  
 What do I need to change??
  
 Thanks,
  
 Rolf

hm I think the webserver or the user who is running the PHP Script has no 
access/execute rights for the Mailserver..

Greetings, Veers
and sry for my bad english...

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



[PHP] Re: Mail function problem

2004-01-10 Thread Manuel Lemos
Hello,

On 01/10/2004 11:36 AM, Rolf Berkenbosch wrote:
I have a big problem with the mail function in PHP.
I have installed PHP 4.3.3. But no email where send
With the mail function. If I run this script as root. There
Is no problem..
 
What do I need to change??
Which platform as you using, Windows ou Linux/Unix? Did you configure 
PHP to send messages properly?

--

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 question (mime)

2003-12-16 Thread Justin Patrin
You may want to try using PEAR's Mail_Mime class.

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


Re: [PHP] Re: mail question (mime)

2003-12-16 Thread Cesar Cordovez
...and talking about mail, is there a class to parse an incoming mail? 
Let me explain: I'm using the great POP3 pear class to receive mail, but 
I'm having trouble separating the different parts in an 
multipart/alternative type of msg.  Is there a class to receive the 
result from POP3 class and convert it into an array of all the specific 
parts of an mail?

Thanks!

Justin Patrin wrote:

You may want to try using PEAR's Mail_Mime class.

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


  1   2   3   4   >