Need Help To login with SMTP server For Send Mail

Discussion in 'Apache' started by Manual_Submission_Team, Jan 1, 2009.

  1. #1
    Hi,

    In starting we was use mail() function to send mail to desired location.

    But due to some security reason my server not allow me to use this function.

    He told me that you can use SMTP login info for send mail.

    Having not more idea about this. SO i took help of SEs and get some code and follow his rules, but not success till now.

    Can any one help me or can give me proper code to use our SMTP server for mail sent.

    I am using right now.

    I followed below code but from where i can get Mail.php in starting.

    I am not a expert programmer thats why asking this types of stupid questions please dont mind.

    Please help me to resolve my problem.

    in case of below code and error show not found Mail::factory class.

    I know errors are in red color area.

    Need your help please complete above code or give me suggestions that how can i use our mail server.

    In SEs i saw need pearl to send mail and at my cpanel show

    Perl way /usr/bin/perl/
    and Sending mail way /usr/sbin/sendmail

    What should i do ...... please help me.

    If you know any suitable site then please give me link ........ i think i check about all related sites thats why i am asking here in last.

    I dont know i am in right category or not but i think apache is suitable category for my problem thats why i create this thread here.

    Request with admin or moderator that if i am in wrong category then please this thread and help me for suitable category.

    Need your help in urgent ........ if you have any code then you can post here or pm me.

    Thanks for help in advance.

    Thanks
    Manual Submission Team :)
     
    Manual_Submission_Team, Jan 1, 2009 IP
  2. John Mccuire

    John Mccuire Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    John Mccuire, Jan 5, 2009 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    You can also use PHPMailer to send mail using SMTP authentication. Sample script is available here.

    You can download PHPMailer class file from soruceforge.net.

    Kailash
     
    kailash, Jan 5, 2009 IP
  4. Manual_Submission_Team

    Manual_Submission_Team Peon

    Messages:
    194
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for your links :)

    Thanks for your suggestions and help.

    Will try by your way and let you know about results.

    Thanks again for your response.

    Thanks
    Manual Submission Team :)
     
    Manual_Submission_Team, Jan 6, 2009 IP