how come i cant pass value from html to perl? And cant print html from perl script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • happyse27
    New Member
    • Sep 2008
    • 236

    #61
    changed... :465 still cant work... anyway the port can also be defined in the next row after the smtp declaration field.

    Still cant work, kindly assist... cheers...

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #62
      Originally posted by happyse27
      changed... :465 still cant work... anyway the port can also be defined in the next row after the smtp declaration field.

      Still cant work, kindly assist... cheers...
      Did you change the "ssl" to something like "https"? "ssl" isn't a protocol to precede a URL as you have done.

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #63
        Sorry, I can't help anymore than I already have tried to.

        Comment

        • happyse27
          New Member
          • Sep 2008
          • 236

          #64
          hi kevin / all,

          It is fine, thanks..

          1) I just wanted to know, for mail::sender module, how to include ssl and even starttls in the perl script as the documentation of mail::sender module did not specify how to configure ssl or even starttls..

          2) telnet smtp.gmail.com 465 did help.

          3) http://www.perlmonks.org/?viewmode=p...node_id=359731 is where tls can be configured...

          4)testing with outlook express worked...
          You can add Gmail to other email clients, like Microsoft Outlook, Apple Mail, or Mozilla Thunderbird. When you add Gmail, your messages and labels are synced with the email client. Changes to Gmail



          Thanks in advance,
          Andrew

          item 1 found sample code below fior item 3 above
          =============== =========

          Code:
          use Mail::Sender;
          
          my $params = {
                  smtp=> 'bleargh.foo.com', #'mail6.ignum.cz',
                  to => 'jenda@krynicky.cz',
                  subject => 'Mail::Sender.pm - test TLS',
                  charset => 'windows1252',
                  TLS_required => 1,
                  auth => 'PLAIN',
                  authid => 'yyy',
                  authpwd => 'xxx',
                  debug => \*STDERR,
                  msg => <<'*END*'};

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #65
            Originally posted by happyse27
            hi kevin / all,

            It is fine, thanks..

            1) I just wanted to know, for mail::sender module, how to include ssl and even starttls in the perl script as the documentation of mail::sender module did not specify how to configure ssl or even starttls..

            2) telnet smtp.gmail.com 465 did help.

            3) http://www.perlmonks.org/?viewmode=p...node_id=359731 is where tls can be configured...

            4)testing with outlook express worked...
            You can add Gmail to other email clients, like Microsoft Outlook, Apple Mail, or Mozilla Thunderbird. When you add Gmail, your messages and labels are synced with the email client. Changes to Gmail



            Thanks in advance,
            Andrew

            item 1 found sample code below fior item 3 above
            =============== =========

            Code:
            use Mail::Sender;
            
            my $params = {
                    smtp=> 'bleargh.foo.com', #'mail6.ignum.cz',
                    to => 'jenda@krynicky.cz',
                    subject => 'Mail::Sender.pm - test TLS',
                    charset => 'windows1252',
                    TLS_required => 1,
                    auth => 'PLAIN',
                    authid => 'yyy',
                    authpwd => 'xxx',
                    debug => \*STDERR,
                    msg => <<'*END*'};
            Andrew,

            I am not really sure as I have not played with the module that you are referencing. I have sent mail using Perl before, using the Mail::Sendmail module, but have never done anything using SSL to send the mail (this is typically because the mails were all internal and didn't need encryption or encrypted transport).

            I would suggest, if nobody here can help, that you post onto the Perlmonks site, as they probably have an answer for you on this. Please know though, if you have never posted over there, that they are rather particular about having all questions properly formed and asked.

            Regards,

            Jeff

            Comment

            • Icecrack
              Recognized Expert New Member
              • Sep 2008
              • 174

              #66
              Hi Andrew,

              First this Notice from the Cpan Module:

              GOTCHAS

              Local user "someone@somewh ere.com" doesn't exist

              "Thanks" to spammers mail servers usualy do not allow just anyone to post a message through them. Most often they require that either the sender or the recipient is local to the server

              Mail::Sendmail works, Mail::Sender doesn't

              If you are able to connect to the mail server and scripts using Mail::Sendmail work, but Mail::Sender fails with "connect() failed", please review the settings in /etc/services. The port for SMTP should be 25.
              Second try adding more debug/error reporting:

              Code:
              on_errors => 'code',
              Third Check You INSTRUCTIONS THAT COME WITH THE MODULE Mail::Sender:

              auth
              the SMTP authentication protocol to use to login to the server currently the only ones supported are LOGIN, PLAIN, CRAM-MD5 and NTLM.

              Some protocols have module dependencies. CRAM-MD5 depends on Digest::HMAC_MD 5 and NTLM on Authen::NTLM.

              You may add support for other authentication protocols yourself. See below.

              Here are the return codes for errors:

              Code:
              Return codes
              
                ref to a Mail::Sender object =  success
              
                -1 = $smtphost unknown
                -2 = socket() failed
                -3 = connect() failed
                -4 = service not available
                -5 = unspecified communication error
                -6 = local user $to unknown on host $smtp
                -7 = transmission of message failed
                -8 = argument $to empty
                -9 = no message specified in call to MailMsg or MailFile
                -10 = no file name specified in call to SendFile or MailFile
                -11 = file not found
                -12 = not available in singlepart mode
                -13 = site specific error
                -14 = connection not established. Did you mean MailFile instead of SendFile?
                -15 = no SMTP server specified
                -16 = no From: address specified
                -17 = authentication protocol not accepted by the server
                -18 = login not accepted
                -19 = authentication protocol is not implemented

              Comment

              • happyse27
                New Member
                • Sep 2008
                • 236

                #67
                ok thanks... cheers...

                Comment

                Working...