SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: php/mail-smtp

  1. #1
    SitePoint Member
    Join Date
    Oct 2001
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php/mail-smtp

    hi,
    Is this code any good. It should "emulate" other smtp than the one that is in your php.ini file, but, i think there us something fishi here.

    Code:{
    ini_set ("SMTP", "smtp.yourhost.com");
    @mail($email, $mailsubject, $report, "From: $fromwho\nX-Mailer: www.narkomanija.com")
    }

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2001
    Location
    Dallas/Ft. Worth
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    re:

    Avdija,

    I am not sure if you're trying to change any values in your php.ini file (and you have no control over your php.ini), but one way to do it is this. In .htaccess you can add lines like these depending whether it's a flag or a value:
    ------------------------------------------
    php_flag magic_quotes_gpc On
    php_value sendmail_from "me@mydomain.com"
    ------------------------------------------

    And these will make changes to your php configuration.

    As direct answer to your question, I don't know, but maybe my "first" answer helped a bit.

    Good luck! (ili mozda na bosanskom...sretno i hairli!)

    Amir


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
  •