Professional Web Applications Themes

[PHP] Mail() Problem Sending - PHP Development

I have recently had php installed on my server with sendmail. The server is behind a firewall and SMTP is open on the firewall. However, when I execute the mail(), it appears to have sent the mail, but I never receive it. I am not getting any error messages. Has anyone ever run into this problem? Does anyone have any ideas?...

  1. #1

    Default [PHP] Mail() Problem Sending

    I have recently had php installed on my server with sendmail. The server is behind a firewall and SMTP is open on the firewall. However, when I execute the mail(), it appears to have sent the mail, but I never receive it. I am not getting any error messages. Has anyone ever run into this problem? Does anyone have any ideas?

    Ben C . Guest

  2. #2

    Default Re: [PHP] Mail() Problem Sending

    My ideas: (in order of likelihood)

    Idea #1: Your computer hates you.
    Idea #2: Sendmail isn't running.
    Idea #3: Sendmail isn't setup correctly.
    Idea #4: You have been hacked by Saddam.

    -Michael

    :-)
    Ben C. wrote:
    >I have recently had php installed on my server with sendmail. The server is behind a firewall and SMTP is open on the firewall. However, when I execute the mail(), it appears to have sent the mail, but I never receive it. I am not getting any error messages. Has anyone ever run into this problem? Does anyone have any ideas?
    >
    >
    >
    >

    Michael A Smith Guest

  3. #3

    Default RE: [PHP] Mail() Problem Sending

    Before trying to guess what Saddam can and can't do with computers, try
    sending e-mails to different addresses (different domains... NOT just
    different usernames). Sometimes, the e-mail server you use is NOT
    configured properly, so every e-mail does not gets to you.

    It happened to me too when testing my server's sendmail. The e-mails
    reached well one of my addresses but not another one. So I pointed the
    e-mails to a Hotmail account and it reached it. Try it and see what
    happens.

    For some e-mail servers, you have to write lots of "extra headers" in
    the e-mails in order to pass their guard.

    HTH

    Cesar Aracena
    [url]www.icaam.com.ar[/url]

    > -----Mensaje original-----
    > De: Ben C. [mailto:benccox.net]
    > Enviado el: Lunes, 18 de Agosto de 2003 06:28 p.m.
    > Para: [email]php-generallists.php.net[/email]
    > Asunto: [PHP] Mail() Problem Sending
    >
    > I have recently had php installed on my server with sendmail. The
    server
    > is behind a firewall and SMTP is open on the firewall. However, when
    I
    > execute the mail(), it appears to have sent the mail, but I never
    receive
    > it. I am not getting any error messages. Has anyone ever run into
    this
    > problem? Does anyone have any ideas?
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php


    Cesar Aracena Guest

  4. #4

    Default Re: [PHP] Mail() Problem Sending

    "Curt Zirzow" <curtzirzow.dyndns.org> wrote in message
    news:20030819140524.GW462bagend.shire...
    > * Thus wrote Ivo Fokkema (I.F.A.C.FokkemaLUMC.nl):
    > > True! But actually, I' ve seen people using only the 'From:' header to
    send
    > > mail. Emails can then be dropped easily by servers thinking it is spam.
    > No email server should drop mail.
    Yet they seem to do...? Maybe dropped is not the right word?
    Clients may not receive emails which lack certain headers, as these emails
    are regarded spam by certain ISP's.
    Some people never even get 'normal' Outlook emails which are BCC'ed to them.
    The cause? Beats me... Somewhere, something, blocks/drops/deletes these
    emails...
    > > Ben, I don't know what headers you send, but you could try these
    headers:
    > >
    > > $headers .= "Return-path: Name <emailexample.org>\r\n";
    > Sending this header is virtually a waste of time and effort, it
    > will be ignored and set by the receiving smtp server, and on the
    > very fist line.
    Hmmm... I ofcourse noticed that if I don't use -f in the 5th mail argument,
    return-path is something trashy like [email]ApacheMyHostingCompany.nl[/email]. Well, then
    I delete that from my list...
    > > $headers .= "Error-to: Name <emailexample.org>\r\n";
    > This wont guarantee errors to return to that email address.
    No sh*t, I _never_ get bounced emails back although I set the reply-to and
    error-to headers. Someone told me some SMTP's use this header so I took my
    chances.

    --
    Ivo


    Ivo Fokkema Guest

Similar Threads

  1. Sending Mail Problem
    By jester in forum ASP.NET Security
    Replies: 2
    Last Post: November 13th, 03:29 AM
  2. #25357 [Com]: Mail() function is loosing cahracters when sending mail
    By dj_canard at yahoo dot com in forum PHP Development
    Replies: 0
    Last Post: September 24th, 02:10 PM
  3. [PHP] Problem sending HTML formated mail
    By David T-G in forum PHP Development
    Replies: 2
    Last Post: September 18th, 07:22 PM
  4. Problem sending HTML formated mail
    By SLanger@spirit21.de in forum PHP Development
    Replies: 0
    Last Post: September 17th, 06:48 AM
  5. problem when sending mail
    By scott john in forum PHP Development
    Replies: 3
    Last Post: August 22nd, 07:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139