Re: BCC mail with mime attachments
| From: | DL Neil | Date: | Sat, 24 Nov 2001 11:33:14 +0000 |
| Subject: | Re: BCC mail with mime attachments | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14567@lists.php.net to get a copy of this message | ||
> Does anyone tried to send mail with BCC: header attaching some files (using
> mail() ) .
> I've written some script codeing attachements to MIME.
> It works with all types of attachements and any number of receivers, but
> only when I use TO: header. When I'm trying to send it with BCC: it send
> e-mail but instead of mime attachement that would be good for my mail
> program I only get a long uncode message.
>
> Where should I put BCC: (i.e. at the end of message) or what should I
> change?
Paweł,
I use the scripts from PHPguru.org.
The rules of what you can include in headers are stated in the RFC documents - always worth a quick
scan.
Sometimes it seems a good idea to leave To: blank and put everyone under Bcc: for privacy reasons. A
good
practice is to send yourself a copy of the msg so that you can have some idea that it 'got
out' - particularly
if you use an external address which simply forwards back to your in-house email server (a la Yahoo
etc) for the
purpose. You can, of course, invent a suitable receiver name/title to use in the To:, eg ListNm
Subscriber - but
pay careful attention if you do/do not want subscribers to conduct correspondence with this
account/name!
PHP's Mail() seems to have a somewhat 'fixed' view of how things will be done. I
suspect that if you miss out
something it is expecting, eg the To: field, it stops cooperating.
Recommend you manufacture and insert a To: entry, and keep all else in the Bcc:, and see if that
works for
you...
=dn