Loading ...
Sorry, an error occurred while loading the content.

SMTP authorization

Expand Messages
  • pepe_pol_barbarian
    Hello! I would like to know how to send an email using TMail2000 component with SMTP authorization. I use demo program and I would like to know how to create
    Message 1 of 4 , Jun 1, 2005
    • 0 Attachment
      Hello!
      I would like to know how to send an email using TMail2000 component
      with SMTP authorization.
      I use demo program and I would like to know how to create smtp
      authorization in this particular demo program. Is it possible? I can't
      send an HTML formatted email (text with two pictures in it) because of
      it(and any other).
      Please help me with that. Does anyone did it?

      Ps:In concurent component, INDY SMTP, an authorization is possible,
      and is very simple - we must only set some component properties. So,
      how to do that in Mail2000 component?

      Thanks, best regards
      Pepe
    • Andreas
      ... Hi Pepe, simply set the Properties Username and Password on the TSMTP2000 component to the appropriate values and set the property Handshaking to
      Message 2 of 4 , Jun 2, 2005
      • 0 Attachment
        --- In tmail2000@yahoogroups.com, "pepe_pol_barbarian"
        <pepe_pol_barbarian@y...> wrote:
        > Hello!
        > I would like to know how to send an email using TMail2000 component
        > with SMTP authorization.
        > I use demo program and I would like to know how to create smtp
        > authorization in this particular demo program. Is it possible? I can't
        > send an HTML formatted email (text with two pictures in it) because of
        > it(and any other).
        > Please help me with that. Does anyone did it?
        >
        > Ps:In concurent component, INDY SMTP, an authorization is possible,
        > and is very simple - we must only set some component properties. So,
        > how to do that in Mail2000 component?
        >
        > Thanks, best regards
        > Pepe

        Hi Pepe,

        simply set the Properties 'Username' and 'Password' on the TSMTP2000
        component to the appropriate values and set the property 'Handshaking'
        to 'hsAuto'. Then simply call 'connect'. This will automatically
        perform a login, if the server requires it.

        Sample:

        smtp: TSMTP2000;

        smtp := TSMTP2000.Create;

        ... initialize other properties, etc. ...

        smtp.Username := 'Pepe';
        smtp.Password := '....';
        smtp.Handshaking := hsAuto;
        smtp.Connect;

        Good luck,

        Phryzer
      • pepe_pol_barbarian
        ... Hi Phryzer Thanks a lot for help! Now, I can login to my server(I had Mail2000 in old version, so there were not properties of authorization - in v1.10.3
        Message 3 of 4 , Jun 2, 2005
        • 0 Attachment
          --- In tmail2000@yahoogroups.com, "Andreas" <phryzer@g...> wrote:
          > --- In tmail2000@yahoogroups.com, "pepe_pol_barbarian"
          > <pepe_pol_barbarian@y...> wrote:
          > > Hello!
          > > I would like to know how to send an email using TMail2000 component
          > > with SMTP authorization.
          > > I use demo program and I would like to know how to create smtp
          > > authorization in this particular demo program. Is it possible? I can't
          > > send an HTML formatted email (text with two pictures in it) because of
          > > it(and any other).
          > > Please help me with that. Does anyone did it?
          > >
          > > Ps:In concurent component, INDY SMTP, an authorization is possible,
          > > and is very simple - we must only set some component properties. So,
          > > how to do that in Mail2000 component?
          > >
          > > Thanks, best regards
          > > Pepe
          >
          > Hi Pepe,
          >
          > simply set the Properties 'Username' and 'Password' on the TSMTP2000
          > component to the appropriate values and set the property 'Handshaking'
          > to 'hsAuto'. Then simply call 'connect'. This will automatically
          > perform a login, if the server requires it.
          >
          > Sample:
          >
          > smtp: TSMTP2000;
          >
          > smtp := TSMTP2000.Create;
          >
          > ... initialize other properties, etc. ...
          >
          > smtp.Username := 'Pepe';
          > smtp.Password := '....';
          > smtp.Handshaking := hsAuto;
          > smtp.Connect;
          >
          > Good luck,
          >
          > Phryzer

          Hi Phryzer
          Thanks a lot for help! Now, I can login to my server(I had Mail2000 in
          old version, so there were not properties of authorization - in
          v1.10.3 it is). This is my server response text:
          220 ServerSMTP ESMTP
          250-ServerSMTP
          250-PIPELINING
          250-AUTH=LOGIN PLAIN
          250-AUTH LOGIN PLAIN
          250-STARTTLS
          250-SIZE
          250-X-RCPTLIMIT 100
          250 8BITMIME
          334 VXNlcm5hbWU6
          235 go ahead

          I am logged in...

          In the demo program it is writing that i am connected. But, when I try
          to send an e-mail it doesn't work - I can see info: "Failed on send"
          Why? I did not change anything in source of demo program...
          If somebody knows what is going on, please answer me.
          Regards, Pepe
        • pepe_pol_barbarian
          ... Hi, OK, I can send an email... I have to said that there is an error in demo program. SSoft explore that after adding adresses in Header(Save fields to
          Message 4 of 4 , Jun 2, 2005
          • 0 Attachment
            > Hi Phryzer
            > Thanks a lot for help! Now, I can login to my server(I had Mail2000 in
            > old version, so there were not properties of authorization - in
            > v1.10.3 it is). This is my server response text:
            > 220 ServerSMTP ESMTP
            > 250-ServerSMTP
            > 250-PIPELINING
            > 250-AUTH=LOGIN PLAIN
            > 250-AUTH LOGIN PLAIN
            > 250-STARTTLS
            > 250-SIZE
            > 250-X-RCPTLIMIT 100
            > 250 8BITMIME
            > 334 VXNlcm5hbWU6
            > 235 go ahead
            >
            > I am logged in...
            >
            > In the demo program it is writing that i am connected. But, when I try
            > to send an e-mail it doesn't work - I can see info: "Failed on send"
            > Why? I did not change anything in source of demo program...
            > If somebody knows what is going on, please answer me.
            > Regards, Pepe

            Hi, OK, I can send an email... I have to said that there is an error
            in demo program. SSoft explore that after adding adresses in
            Header(Save fields to header)we must edit in Source (header field) it
            manually and remove some excess signs (<>).
            for example: in line: To: "Name" <EmailAdress>, <>

            chars "," and "<>" are incorrect.
            --------------------------------
            But, I have another problem...
            how to add to HTML mail 2 pictures(not as attachement, but to html code).
            I want to add picture as a background
            <BODY BACKGROUND="cid:background.jpg" TEXT="#000000" LINK="#0000FF"
            ALINK="#FF0000" VLINK="#000080">

            and a picture in the left corner of message:
            <IMG alt="" hspace=0 src="cid:pope.jpg" align=left border=0>

            thanks, for any help...
            Regards, Pepe
          Your message has been successfully submitted and would be delivered to recipients shortly.