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

Re: [tmail2000] problem in smtp component

Expand Messages
  • Ozgur Cetin
    Yes you are right Phryzer. Thanx a lot. It works perfect now! ... From: Phryzer To: tmail2000@yahoogroups.com Sent: Tuesday, November 25, 2003 10:34 AM
    Message 1 of 4 , Nov 25, 2003
    • 0 Attachment
      Yes you are right Phryzer. Thanx a lot. It works perfect now!
       
      ----- Original Message -----
      From: Phryzer
      Sent: Tuesday, November 25, 2003 10:34 AM
      Subject: Re: [tmail2000] problem in smtp component

      Hi,
       
      which error-message do you get?
       
      I can see from your code that the from-address does not match the username of the smtp host. Maybe your SMTP host does not allow sending
      e-mails with from addresses that are not known to the smtp host? Many servers block such e-mails to prevent spam.
       
      You might want to change the from address to the username of the smtp host and try again. If it still doesn't work, you should post the error
      messages.
       
      change this line
       
      mailmessage20001.SetFrom('ahm','ahm@...');
       
      to
       
      mailmessage20001.SetFrom('ozzy','ozzy@...');
       
      Since you use the 'SendReplyTo() method, the replies should be sent to the correct address 'ahm@...'.
       
      Hope I could help you.
       
      - Phryzer
      ----- Original Message -----
      Sent: Tuesday, November 25, 2003 1:51 AM
      Subject: [tmail2000] problem in smtp component

      Hi from istanbul
       
      I'm using D7 and version 1.10.3 Beta.
       
      I have a strange problem with sending emails.
       
      mailmessage20001.ToList.Clear;
      mailmessage20001.ToList.Add('Ozgur Cetin','ozzy@...');
      mailmessage20001.Subject:='Alarm Haberalma Merkezi';
      mailmessage20001.SetReplyTo('ahm','ahm@...');
      mailmessage20001.SetFrom('ahm','ahm@...');
      mailmessage20001.SetTextPlain('Ağustos ayı raporunuz ektedir. saygılarımızla.');
      mailmessage20001.AttachFile('C:\xx.txt','Agustos.txt',False);
      mailmessage20001.RebuildBody;
      smtp20001.host:='mail.comon.com.tr';
      smtp20001.UserName:='ozzy@...';
      smtp20001.Password:='439034';
      smtp20001.Connect;
      smtp20001.SendMessage;
      smtp20001.quit;
       
      when I use these codes to send the email it doesnt work!
       
      but when I comment out the setfrom line as below
       
      // mailmessage20001.SetFrom('ahm','ahm@...');
       
      it starts to send emails but I need to set from.
       
       
      can anyone help me?
       
      thanx alot
       
       
       


      =============================================================

      The group's home page is here:
        http://groups.yahoo.com/group/tmail2000/

      To post a message:
        send email to: tmail2000@yahoogroups.com  
        or go here: http://groups.yahoo.com/group/tmail2000/post

      To modify your subcription options (e.g. stop receiving discussions)
      go to:
        http://groups.yahoo.com/mygroups/tmail2000/join or
        http://groups.yahoo.com/convwiz

      To subscribe/unsubscribe, send blank email to:
        tmail2000-subscribe@yahoogroups.com
        tmail2000-unsubscribe@yahoogroups.com

      To talk only with the moderator, developer of TMail2000, write email to:
        mycelo@...

      Please expect 1-2 weeks for my response.

      PLEASE POST IN ENGLISH!


      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      =============================================================

      The group's home page is here:
        http://groups.yahoo.com/group/tmail2000/

      To post a message:
        send email to: tmail2000@yahoogroups.com  
        or go here: http://groups.yahoo.com/group/tmail2000/post

      To modify your subcription options (e.g. stop receiving discussions)
      go to:
        http://groups.yahoo.com/mygroups/tmail2000/join or
        http://groups.yahoo.com/convwiz

      To subscribe/unsubscribe, send blank email to:
        tmail2000-subscribe@yahoogroups.com
        tmail2000-unsubscribe@yahoogroups.com

      To talk only with the moderator, developer of TMail2000, write email to:
        mycelo@...

      Please expect 1-2 weeks for my response.

      PLEASE POST IN ENGLISH!


      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
    Your message has been successfully submitted and would be delivered to recipients shortly.