Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 55

Thread: PHP SMTP_port. . . huh?

  1. #11
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    What are the headers on the message?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  2. #12
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    What? I'm not sure I understand the question. Are you refering to the $headers variable? That enables me to send an HTML email. An email with no headers does not work either.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #13
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Alright, I am getting really confuised. I am not sure if this is even the function that I am looking for. Here is what I need:

    A user submits an application via a form.
    A webadmin accepts the application.
    An email is sent by PHP to the user saying that the application was accepted.

    Is this even the right function to use? Can PHP do it? I am sooooooo lost
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  4. #14
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Either way; if you are trying to send an email from a website/web app, you need to use a server side language in order for it to work properly or as it is intended (if that makes any sense).

    Hope this helps.
    Last edited by thetestingsite; 04-08-2008 at 11:24 PM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #15
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by thetestingsite View Post
    Either way; if you are trying to send an email from a website/web app, you need to use a erver side language in order for it to work properly or as it is intended (if that makes any sense).

    Hope this helps.
    Okay, so it's the right language. What do I do? The message shows up under the hmailserver's undelivered tab (no errors in the php page) and the to address is the sendmail_from address. . . I am so lost. Why would it be trying to send it to the sendmail_from address?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  6. #16
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    One thing you could try is getting rid of the ini_set() functions in the script. By default, the php.ini file has localhost at port 25 as the mail server/port. In other words, if you get rid of this, the script should default to the hmailserver install as the mail server. As I have said before, the script itself is functional; but (something I didn't mention is that) I did take out the ini_set calls at the top of the script in order to test on one of my servers.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #17
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    So, should I put everything in the ini_set functions into the actual ini file, or are you saying that there is more to it?

    EDIT: I tried and I am getting the same error. The message is trying to be sent to the sendmail_from address. . . At least that what hmailserver says.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  8. #18
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    I'm saying that the default php.ini file should be sufficient enough for your script to work.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  9. #19
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Well for some reason it doesn't.
    Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in [FILE] on line 39
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  10. #20
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    What? I'm not sure I understand the question. Are you refering to the $headers variable?
    No, I mean the actual headers on the message when it reaches your mailserver. What are they?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •