You are here: Re: not receiving emails expected « PHP Programming Language « IT news, forums, messages
Re: not receiving emails expected

Posted by davjoh on 10/01/07 01:10

On Sep 30, 11:01 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> davjoh wrote:
> > On Sep 28, 3:21 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >> davjoh wrote:
> >>> On Sep 27, 9:00 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> >>>> davjoh wrote:
> >>>>> The following describes the problem I am having. Can anyone help?
> >>>>> $send_to[] = "davjoh...@yahoo.com";
> >>>>> $send_to[] = "product...@advisiongraphics.com";
> >>>>> $send_to[] = "advision_gali...@mac.com";
> >>>>> // send email
> >>>>> foreach ($send_to as $dest)
> >>>>> mail($dest,$email_subject,$message,$header); //This line NOT
> >>>>> working
> >>>>> //expecting it to send email to all the above addresses assigned to
> >>>>> $send_to[] array. Is it because values have not been added to $dest
> >>>>> and if so how to do
> >>>>> mail($r["email"],$email_subject,$message,$header); //This line
> >>>>> working
> >>>> Nope, but you haven't told us enough about your problem. For instance,
> >>>> what's the response from the mail() call? What's in $header?
> >>>> Are you suer it isn't going into a spam black hole somewhere? Are you
> >>>> trying to send too many emails too quickly, and therefore upsetting your
> >>>> MTA?
> >>>> --
> >>>> ==================
> >>>> Remove the "x" from my email address
> >>>> Jerry Stuckle
> >>>> JDS Computer Training Corp.
> >>>> jstuck...@attglobal.net
> >>>> ==================- Hide quoted text -
> >>>> - Show quoted text -
> >>> Here is some more code related to the header
> >>> if (!empty($mail_page))
> >>> {
> >>> // build headers
> >>> $header .= "MIME-Version: 1.0\n";
> >>> $header .= "Content-Type: text/html\n";
> >>> ob_start();
> >>> include($mail_page);
> >>> $message = ob_get_contents();
> >>> ob_end_clean();
> >>> $message .= "\n";
> >>> }
> >>> else
> >>> {
> >>> // build email
> >>> $message = "";
> >>> $message .= sprintf("Subject: %s\n",$subject);
> >>> $message .= "\n";
> >>> $message .= sprintf("Date: %s\n",$r["adate"]);
> >>> $message .= sprintf("Company: %s\n",$r["company"]);
> >>> $message .= sprintf("First Name: %s\n",$r["firstname"]);
> >>> $message .= sprintf("Last Name: %s\n",$r["lastname"]);
> >>> $message .= sprintf("Email: %s\n",$r["email"]);
> >>> $message .= sprintf("Phone: %s\n",$r["tel_phone"]);
> >>> $message .= "\n";
> >>> $message .= sprintf("Mailing: %s\n",$r["mailing"]);
> >>> $message .= "\n";
> >>> $message .= sprintf("Comments:\n",$r["comments"]);
> >>> $message .= sprintf("%s\n",$r["comments"]);
> >>> $message .= "\n";
> >>> }
> >> And don't try to fool with html to start. Get it to work with plain
> >> text, first.
>
> >> And when you do send html email, you should always have a plain text
> >> mime type for those who have text email readers (or choose to disable
> >> html email).
>
> >> Also, some spam filters will block email which has just html.
>
> >> --
> >> ==================
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> ==================- Hide quoted text -
>
> >> - Show quoted text -
>
> > It appears this is the solution.
>
> > The php.ini file needed 'short tags on' enabled to read the
> > array correctly.
>
> No, short tags has nothing to do with reading arrays. And nothing
> you've posted here indicates a problem with short tags.
>
> Also, you should not be depending on short_tags being on. Even Zend
> talks about that.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Hide quoted text -
>
> - Show quoted text -

if I echo the results of reading the array could that help in
determining the problem?

 

Navigation:

[Reply to this message]


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

Copyright © 2005-2006 Powered by Custom PHP Programming

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