Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Smtp

  1. #1
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Smtp

    Hey, I got a couple questions about setting up your system to do Simple Mail Transfer Protocol functions.

    - Do I need to find my SMTP address to send mail even if I'm just using the mail function as a test to learn PHP?

    - Can I use an SMTP address from a different computer in my house that is connected to mine through wireless internet?

    Sorry if my question's are a little vague.
    Thanks in advance.

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

    Default

    - Do I need to find my SMTP address to send mail even if I'm just using the mail function as a test to learn PHP?
    There are two ways to go about it: using your own SMTP server, or using a remote SMTP server. On Windows, the usual behaviour is to use a remote SMTP server. In this case, you need to connect to it to send any sort of mail, testing or not.
    - Can I use an SMTP address from a different computer in my house that is connected to mine through wireless internet?
    An SMTP "address" isn't "on" anything. When you send mail to user@example.com, your mail client (usually) connects to the SMTP server at example.com and sends the data, addressed to user. As such, it doesn't matter where you send the request from.
    You probably ought to read RFC 821.
    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!

  3. #3
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, I have a book on PHP, and according to my book, I'm supposed to find an SMTP address on my computer, then go into php.ini and modify the [Mail] portion to work with my SMTP address to then send messages via PHP Mail command. However, I use Yahoo's E-Mail service, so I havn't a clue what my SMTP Address is on my computer. All I really want to know is if modifying the [Mail] part of php.ini is the only way that i can send test messages via PHP Mail command.

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

    Default

    Well, I have a book on PHP, and according to my book, I'm supposed to find an SMTP address on my computer, then go into php.ini and modify the [Mail] portion to work with my SMTP address to then send messages via PHP Mail command.
    It probably means your email address.
    I use Yahoo's E-Mail service, so I havn't a clue what my SMTP Address is on my computer.
    Yahoo! may use SMTP. Try using your Yahoo! address to send email. If you can't, I suggest you get a free SMTP email account.
    All I really want to know is if modifying the [Mail] part of php.ini is the only way that i can send test messages via PHP Mail command.
    Probably. You might be able to find and install a Windows SMTP server, but I've never seen one.
    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!

  5. #5
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Allright, sounds good.

    Thanks Twey.

  6. #6
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wait, one thing. Are you saying my book is implying to do this:

    Code:
    [mail function]
    ; For Win32 only.
    SMTP = myemailaddress@yahoo.com
    ?

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

    Default

    No, "SMTP" needs to be set to the address of the SMTP server: in this case, smtp.yahoo.com (yes, I checked it, it does exist).
    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!

  8. #8
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OHHH OK!

    I get it now, allright.

    So can I just use smtp.yahoo.com ?
    Or do i have to go and register a SMTP address at yahoo?

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

    Default

    do i have to go and register a SMTP address at yahoo?
    No, I presume Yahoo!'s standard addresses use SMTP to send email. Presuming you have a @yahoo.com address, smtp.yahoo.com ought to do you fine.
    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!

  10. #10
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wonderful.

    Thanks so much.

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
  •