SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Los Angeles
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation How can i setup the PHP.INI to do ...

    Hi everyone how can i setup php.ini to send emails from multiple Domains.

    [mail function]
    ; For Win32 only.
    SMTP = "localhost" (domain1.com; domain2.com)
    smtp_port = 25


    ; For Win32 only.
    ; sendmail_from = ???

    Thank you,
    AngelDrago

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    Boston
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    You can not do that!

    If you want more control of your mail options then look to using a class or write a simple socket based script that will allow you to connect to different mail servers based on the ARGS sent to that script!

    The mail() function is pure junk, it does not follow any of the RFC standards, in PHP 5 there will be changes to it's core, but still it will be a trash function and nothing more!

    look at PEAR::MAIL or have a look at this SMTP CLASS which is part of Pear Mail!

    If you do go for one of the above classes and need a better example than what they include, just post back and I will write you one as a function that you can include in any script that needs a way to send RFC 822/2045 compliant email!


    J!

  3. #3
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Los Angeles
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Hi jbr and thank you for answering ... as you notice i'm new to PHP and trying how i can do this if this is not to much troubble for you i would like you to give me an example of this and that i can work for multible websites... and thank you again

    AngelDrago

  4. #4
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    Boston
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    Sorry I did not see your reply until now!

    Tomorrow morning I will have a little time to write this for you, check back in the early afternoon for a nice example of sending to different mail servers and using different domains and a example with AUTH, plus I will make it so you can send HTML or text type email, you the set of functions I will write for you....


    J!

  5. #5
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Los Angeles
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great thank you very much...

    AngelDrago


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
  •