[PHP] imap mail() problems

2003-04-03 Thread Alec Wallis
Hi

I am experiencing problems with the mail functions, in that I can not send emails to 
multiple addresses in the to field, or send Cc's.  The multiple addresses show up in 
the email when it arrives to the first email address, but the other copies never 
arrive.

The code I use is:

mail($strTo, $strSubject, $strBody, $header);

with the optional header fields being:

$header = "Cc: [EMAIL PROTECTED]";

Any ideas welcome

Cheers

Alec



[PHP] Problem connecting to POP3 accounts

2003-04-03 Thread Alec Wallis
Hi

I am currently experiencing some problems connecting to POP3 accounts using imap_open.

I am using the following code:

$ArrayImap = imap_open ($strMailServer, $strUsername, $strPassword);

with the mail server being set to:

$strMailServer = "{domain.co.uk/pop3:110}INBOX";

It seems to connect ok, as if an incorrect username or password is entered incorrectly 
something different happens.  The error message I seem to get is:

Notice: (null)(): Mailbox is empty (errflg=1) in Unknown on line 0
PHP Notice: (null)(): Mailbox is empty (errflg=1) in Unknown on line 0 

When I view the mailbox in Outlook it has messages in it and so isn't empty.  Can 
anyone help me please?


Alec


Re: [PHP] imap mail() problems

2003-04-04 Thread Alec Wallis
Thanks for the suggestions, I have tried them all but with no joy.  Still
exactly the same problem.  Pretty sure its not my SMTP server as using
Outlook it works fines.  Any other ideas as would prefer not to have to use
the mail() function multiple times.

Alec

- Original Message -
From: "Mario Soto" <[EMAIL PROTECTED]>
To: "Alec Wallis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 6:04 PM
Subject: Re: [PHP] imap mail() problems


Try first to take off the \r char on the string. It worked very good for me
using only the \n to send more headers. Other is to put the address into
angle bracets (<[EMAIL PROTECTED]>) and in this way you can use a name on the
server (read some rfc's, it will be helpful if you're using email often in
php programs; begin reading the 822). Other is try to send one message at
the time. Remember that you can une more than once the mail() function on
the program. Other, chech if your SMTP server allow to send CC and BCC
messages. Some ones for security reasons don't let you to do that. Other add
the CC address to $strSubject separated with a semi colon and still use the
CC extra header.

Greetings, and my best wishes.

Mario Soto
[EMAIL PROTECTED]
-.-.-.-

- Original Message -
From: Alec Wallis
To: [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 11:54 AM
Subject: [PHP] imap mail() problems


Hi

I am experiencing problems with the mail functions, in that I can not send
emails to multiple addresses in the to field, or send Cc's.  The multiple
addresses show up in the email when it arrives to the first email address,
but the other copies never arrive.

The code I use is:

mail($strTo, $strSubject, $strBody, $header);

with the optional header fields being:

$header = "Cc: [EMAIL PROTECTED]";

Any ideas welcome

Cheers

Alec






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