Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^6: Authenticate email

by dylinn (Novice)
on Mar 04, 2015 at 20:38 UTC ( #1118792=note: print w/replies, xml ) Need Help??


in reply to Re^5: Authenticate email
in thread Authenticate email

Correct, there is no username and password in the script I was provided. I was guessing that would be in the code I need to add regarding the Net::SMTP module. To clarify, I am not a programmer of any kind and know absolutely nothing about perl. I was given a script and a readme file with instructions. The readme file did not include information on how to work with servers that do not allow unauthenticated relaying. I am ever so grateful for you kind souls attempting to help me.

Replies are listed 'Best First'.
Re^7: Authenticate email
by Happy-the-monk (Canon) on Mar 04, 2015 at 20:53 UTC

    I am ever so grateful for you kind souls attempting to help me.

    Attempting is the word. Without the code, what can I try to say?

    You could search your code for the word "auth". If you find that, maybe you are near.

    If you don't find it, you may find a ... = Net::SMTP->new . . . somewhere, and look at what it says on the left hand side of the "=".

    You may remember it from the documentation, where it says $smtp = Net::SMTP->new . . ., so let's assume it does say $smtp .

    You may then add a new line below that one that goes $smtp->auth( "USERNAME", "PASSWORD" ); and replace USERNAME and PASSWORD with the real ones. Check if it does any good.

    If it works the way you expect, worry some about your secrets now residing on the remote webserver and if that means, other people with access to that server can now also use your email server...

    Cheers, Sören

    Créateur des bugs mobiles - let loose once, run everywhere.
    (hooked on the Perl Programming language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1118792]
help
Chatterbox?
[hippo]: How about mod_perl? Was that installed from the CentOS packge or from source?
[vedagiri89]: from the source
[hippo]: But APR.pm is under vendor_perl in your error message so you are mixing up modules installed from the packager and by hand. That's rarely a good plan.
[vedagiri89]: the prm is..works fine if i run file directly..not working if i run through apache http file
[hippo]: Environments differ.
[vedagiri89]: so, how to fix that differ
[choroba]: option one is install everything from the vendor

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-06-19 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (113 votes). Check out past polls.

    Notices?