Rfc 821 socket smtp

Ciao folks
I am wondering if someone can help me...I am writing a small program and need to send messages via a socket...is there a specific socket I can use or do I need to set one up??...basically I want to be able to send messages to several e-mail addresses but want to make sure I send it over an appropriate socket. I have checked the RFC related information and to be honest it is not the most helpful if you can provide any assistance will be much appreciated.
Regards
Pippo

Ciao folks
I am wondering if someone can help me...I am writing a small program and need to send messages via a socket...is there a specific socket I can use or do I need to set one up??...basically I want to be able to send messages to several e-mail addresses but want to make sure I send it over an appropriate socket. I have checked the RFC related information and to be honest it is not the most helpful if you can provide any assistance will be much appreciated.
Regards
Pippo

Similar Messages

  • Remote Enabled RFC for Reading SMTP Adress out of ADR6

    Hi,
    just searching for a Remote Enabled Funtion which is able to return the SMTP Adress out of Table ADR6 for a given business Partner ID. (which needs also to be converted to ADDRNUMBER via BUT000 / BUT020 to match the Key Field of ADR6)
    Any hints for me ?
    Thanks
    Marco

    Marco,
    Use the following sequence of BAPI's:
    Call: BAPI_BUPA_ADDRESSES_GET,
    Then call:
    BAPI_BUPA_ADDRESS_GETDETAIL
    This will allow you to get the e-mail address for a given partner id.  You can write a wrapper bapi, to consoldiate the two steps into one process if needed.
    Take care,
    Stephen

  • SMTP email attachments

    Hi all,
    There have been a few discussions on the list about sending fairly
    straightforward emails from SMTP. Has anyone tried sending attachments?
    I have a requirement to send quite large attachments ( upto 15Mb ),
    some of the files will be zipped. Does anyone have any idea how to do this
    and has anyone had any problems sending files of this size through a
    Forte SMTP link?
    Thanks in advance for any advice,
    Dylan Jones.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    FYI,
    one of the internet sites, where you can find all of the RFC is:
    http://www.cis.ohio-state.edu/hypertext/information/rfc.html
    Dariusz.
    -----Original Message-----
    From: Shirke, Manish [SMTP:[email protected]]
    Sent: Tuesday, September 15, 1998 8:58 AM
    To: 'Dariusz Rakowicz'
    Subject: RE: SMTP email attachments
    hi Dariusz,
    Thanks for your previous response. Do you know the algorithm for
    base64 encoding. If you have a reference to where
    I can find it please let me know.
    Thanks and regards,
    Manish Shirke
    Indus Consultancy Services
    From: Dariusz Rakowicz[SMTP:[email protected]]
    Reply To: Dariusz Rakowicz
    Sent: Tuesday, September 15, 1998 9:38 AM
    To: 'Michael Strauss'; 'Jones, Dylan'; [email protected]
    Subject: RE: SMTP email attachments
    Yes, you have to encode them (like base64) into a ASCII text, and then
    attached them to your DATA part in SMTP. It is not very complicated,
    and why
    wouldn't it work through Forte SMTP link? Though it goes through Forte
    it
    still is SMTP. More about that you can find in the following RFC's:
    RFC 821 - for SMTP
    RFC 2045 - for attachments
    Good luck, hope it helps.
    Dariusz Rakowicz
    Consultant
    BORN Information Services
    http://www.born.com
    8101 E. Prentice Ave, Suite 310
    Englewood, CO 80111
    303-846-8273
    mailto:[email protected]
    -----Original Message-----
    From: Michael Strauss [SMTP:[email protected]]
    Sent: Monday, September 14, 1998 10:06 PM
    To: 'Jones, Dylan'; [email protected]
    Subject: RE: SMTP email attachments
    Dylan
    I have sent SMTP mail, but not through Forte. My understanding isthat
    the
    client software, in this case Forte, will have to present theattachment
    to
    SMTP as embedded text (i.e. a stream of text), formatted properly tolook
    like an attachment.
    If this is zipped data, then you will also have to encode it in MIMEor
    BIN/HEX format to ensure that it is transmitted properly. I do notknow
    the
    algorithm for this.
    I have only ever sent plain text files as attachements. I haveincluded
    pre
    and post amble strings from my own routine. I think that there is
    probably
    some redundant information in these strings, but they work, so Ihave left
    them alone.
    If you can understand them, the RFCs for SMTP will explain all ofthis.
    Michael Strauss
    Mazda Australia Pty Limited
    This is the preamble message that you have to embed before you sendthe
    file: Note that $3 referes to the actual filename attached.
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="=#=#=#=#=88=#="
    X-Mozilla-Status: 0001
    This is a multi-part message in MIME format
    --=#=#=#=#=88=#=
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    --=#=#=#=#=88=#=
    Content-Type: text/plain; name="$3"
    Content-Disposition: attachment; filename="$3"
    This is the postamble text
    --=#=#=#=#=88=#=--
    -----Original Message-----
    From: Jones, Dylan [mailto:[email protected]]
    Sent: Tuesday, 15 September 1998 11:30
    To: [email protected]
    Subject: SMTP email attachments
    Hi all,
    There have been a few discussions on the list about sending fairly
    straightforward emails from SMTP. Has anyone tried sendingattachments?
    I have a requirement to send quite large attachments ( upto 15Mb ),
    some of the files will be zipped. Does anyone have any idea how todo this
    and has anyone had any problems sending files of this size through a
    Forte SMTP link?
    Thanks in advance for any advice,
    Dylan Jones.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages arevirus
    free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Need Authentication for SMTP Access

    I have this Java program (SendMail.java) for sending email; however, my ISP requires authentication for SMTP server access, i.e. I receive a 550 Authentication Required error. Does anyone know how to go about coding authentication into a program like SendMail so that the userID and password can be sent back to the server?
    * SendMail.java
    * Created on July 13, 2005, 8:09 PM
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    * @author Owner
    // SendMail by Tony Swain.
    // Send mail via SMTP
    // To do Appletisize it.
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.InputStreamReader;
    import java.io.PrintStream;
    import java.net.Socket;
    import java.util.StringTokenizer;
    import java.net.Authenticator;
    import java.net.*;
    // To do. Finish multiThreading &| write que Thread.
    // this programs sends mail Via SMTP as defined in RFC 821.
    // ftp://ftp.isi.edu/in-notes/rfc821.txt
    public class SendMail   
    Object mailLock              = null;  //In case we want a multi-threaded mailer
    public String mailServerHost = "";
    public String from           = "";
    public String to             = "";
    public String replyTo        = "";
    public String subject        = "Java is Fun";
    public String mailData       =
       "HyperSendMail";
    public String errorMsg = "";
    public Socket mailSendSock = null;
    public  BufferedReader inputStream = null;
    public PrintStream outputStream    =  null;
    public String serverReply          = "";
    SendMail()
       // Doesn't do anything but we need this for extension purposes.
    // Server, from,to,subject, data
    SendMail(String server,String tFrom,String tTo,String sub,String sendData)
       mailServerHost = server;
       mailLock=this; // Thread Monitor passed constructor later. Default this Monitor.
       from = tFrom;
       to   = tTo;
       if(sendData != null)
          mailData = sendData; 
    /*  Just a note to remind myself to add this for cross app./Applet & Runnable.
       & Threadsafe readLine()  I'm too lazy ATM
    SendMail()
       if(mailLock != null)
          if(mailLock instanceof Applet)
             Applet app = (Applet)
    public void send()
       if(!open())          //Yikes! get out of here.
          return;    
       try
          outputStream.println("HELO sendMail");
          serverReply = inputStream.readLine(); 
       catch(Exception e0)
          e0.printStackTrace();
       try
          outputStream.println("MAIL FROM: "+from);
          serverReply = inputStream.readLine();
            // I cheat and don't look for the whole 550
            // we know 5 is an error anyway. Add it in if you want.
          if(serverReply.startsWith("5"))
             close("FROM: Server error :"+serverReply);
             return;
       // Note the switch here. we could get mail from somewhere and by
       // pre setting replyTo reply somewhere else :)
          if(replyTo == null)
             replyTo = from;
          outputStream.println("RCPT TO: <"+to+">");
           // Ya got me! I didn't look for any  250 OK messages. Add it in if you really want.
           // A real programmer will spend 30 hours writing self modifying code in order
           // to save 90 nano seconds ;)  we assume if it did't give an error it must be OK.
          serverReply = inputStream.readLine();
          if(serverReply.startsWith("5"))
             close("Reply error:"+serverReply);
             return;
          outputStream.println("DATA");
          serverReply = inputStream.readLine();
          if(serverReply.startsWith("5"))
             close("DATA Server error : "+serverReply);
             return;
          outputStream.println("From: "+from);
          outputStream.println("To: "+to);
          if(subject != null)
             outputStream.println("Subject: "+subject);
          if(replyTo != null)
             outputStream.println("Reply-to: "+replyTo);
          outputStream.println("");
          outputStream.println(mailData);
          outputStream.print("\r\n.\r\n");
          outputStream.flush();
          serverReply = inputStream.readLine();
          if(serverReply.startsWith("5"))
             close("DATA finish server error: "+serverReply);
             return;
          outputStream.println("quit");
          serverReply = inputStream.readLine();
          if(serverReply.startsWith("5"))
             close("Server error on QUIT: "+serverReply);
             return;
          inputStream.close();
          outputStream.close();
          mailSendSock.close();
       catch(Exception any)
          any.printStackTrace();
          close("send() Exception");
       close("Mail sent");
    public boolean open()
       synchronized(mailLock)
          try
             mailSendSock = new Socket(mailServerHost, 25);
             outputStream = new PrintStream(mailSendSock.getOutputStream());
             inputStream = new BufferedReader(new InputStreamReader(
              mailSendSock.getInputStream()));
             serverReply = inputStream.readLine();
             if(serverReply.startsWith("4"))
                errorMsg = "Server refused the connect message : "+serverReply;
                return false;
          catch(Exception openError) 
             openError.printStackTrace();
             close("Mail Socket Error");
             return false;
          System.out.println("Connected to "+mailServerHost);
          return true;
    public void close(String msg)
              //try to close the sockets
       System.out.println("Close("+msg+")");
       try
          outputStream.println("quit");
          inputStream.close();
          outputStream.close();
          mailSendSock.close();
       catch(Exception e)
          System.out.println("Close() Exception");
         // We are closing so see ya later anyway
    public static void main(String Args[])
    SendMail sm = new
    // * NOTE:
    // Erase these values right away! Just to show you how it is done.
    // Whatever you do don' release it with my mail server hardcoded.
    // last thing I need is 10 million Java mail test spams :)
    SendMail(
              "outgoing.myISP.net",         //Mail Server
              "[email protected]",       // sender
              "[email protected]",       // Recipient
              "Java mail test",               // Subject
              "test test test!");             // Message Data
              sm.send();                      // Send it!
    }

    There is no one in the forum who can shed some light on my problem?

  • Smtp and pop3 protocol

    hi everybody,
    i want to develop my own implementation of pop3 and smtp protocols in java(i.e without using java mail api).
    can anybody tell me how to contact other smtp server through my program.
    bye

    For communications, use Sockets.
    For what to send over them, see the following:
    SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
    POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
    ...it's all in there.
    HTH,
    Fredrik

  • SMTP and POP3 mail unavailable

    Hi,
    I have installed and configured eMail application on collaboration suite. SMTP (in and out) and POP3 are started.
    When I try to connect from Outlook, it finds SMTP and POP3 server but cannot login to send/retrive emails.
    Also when I try to send mail from WebMail, the application returns the error:
    An error occurred while sending the message
    Server returned: Could not connect to SMTP host: OraServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
    Please help me to solve this issue.

    For communications, use Sockets.
    For what to send over them, see the following:
    SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
    POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
    ...it's all in there.
    HTH,
    Fredrik

  • Email password smtp and pop3 server problem

    My mail is continually asking me to enter password for my hotmail account, both for the pop3.live.com and smtp.live.com. It gives me an option to either enter my password or cancel, and neither option works. It is rejecting the password and my email won't work because of this! Is there a w way I can re set the password or anything?

    For communications, use Sockets.
    For what to send over them, see the following:
    SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
    POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
    ...it's all in there.
    HTH,
    Fredrik

  • How to send CC and/or BC using smtp-package

    I know how to send a message using the sun.net.smtp.SmtpClient.
    How can I include CC and/or BC ?
    Do I have to send this message a second/third time?

    If you are using raw SMTP then you could look through RFC 821 to see if your answer is there:
    http://www.faqs.org/rfcs/rfc821.html

  • SMTP Dispute !!

    Hello fiends,
    Recently, I made one SMTP server (in Java) and showed it to my college teacher. He said my server is wrong.
    Teacher said
    1) There is nothing called SMTP receiver, that is, SMTP can only send emails and can never accept emails. Only POP3 or IMAP can accept emails from other SMTP servers.
    2) I told him that my SMTP receiver will put the email in the user mail boxes directly and after that user can use POP3 client to fetch the emails from there. He says I am wrong, according to him SMTP can neither accept an email nor it can put it in users mail box directly.
    After getting some lectures from him, I have still not changed my mind.
    I think
    1) There is SMTP sender that sends email to destination SMTP receiver.
    2) SMTP receiver then puts the received email in a common storage, from there the distributing agent tranfers the mail to user mail boxes or the receiver can directly put the mail in the user mail box.
    I even told him that I have read RFC 821 and its given in it, but he doesn't know anything about RFC or anything about its existence. He feels my basics are not clear !!
    This is getting very serious now, he has insulted me in front of all and my project has not received any attention.
    I just want to know whose statements are wrong. Please tell me if I am making any mistakes.
    You people have always helped me.
    Thanks

    It could be that you are discussing different things?
    A mail client (e.g outlook) uses POP3/IMAP to get mailes from the mail server, but uses SMTP to send mails. A client doesn't need to be connected using e.g. POP3 and SMTP to the same server. It can look like this.
    --------  sending mail SMTP   -------------------      SMTP
    |      |--------------------> |  SMTP server (1) | -------------------------
    |      |                      -------------------                           |
    |Client|                                                                    V
    |      | Receiving mail POP3  ------------------------     SMTP            -------------------
    |      |<-------------------- | POP3/SMTP server (2) | <------------------ | SMTP server (3) |
    (1) Does not accept mail, only used to send.
    (2) Does only accept mail, never used to send.
    (3) Another company SMTP server, which is used to both send/receive mail.Could it be that your teacher is talking about this scenario?
    /Kaj

  • The SMTP Error Code from a message that was not sucessfully delivered ?

    hello,
    I'm developing an aplication that uses Java Mail and
    send emails, but I need to get the error code if this
    email was not sucessfully delivered, use
    mail.smtp.dsn.notify to destination return an email in case
    of failure.
    Thaks for your help.
    rania+

    Do you mean the SMTP server reply codes? These are the codes that are returned when the client tries passing the message to the server. The are from RFC 821 (http://www.ietf.org/rfc/rfc0821.txt).
    500 Syntax error, command unrecognized
    [This may include errors such as command line too long]
    501 Syntax error in parameters or arguments
    502 Command not implemented
    503 Bad sequence of commands
    504 Command parameter not implemented
    211 System status, or system help reply
    214 Help message
    [Information on how to use the receiver or the meaning of a
                particular non-standard command; this reply is useful only
                to the human user]
    220 <domain> Service ready
    221 <domain> Service closing transmission channel
    421 <domain> Service not available,
    closing transmission channel
    [This may be a reply to any command if the service knows it
                must shut down]
    250 Requested mail action okay, completed
    251 User not local; will forward to <forward-path>
    450 Requested mail action not taken: mailbox unavailable
    [E.g., mailbox busy]
    550 Requested action not taken: mailbox unavailable
    [E.g., mailbox not found, no access]
    451 Requested action aborted: error in processing
    551 User not local; please try <forward-path>
    452 Requested action not taken: insufficient system storage
    552 Requested mail action aborted: exceeded storage allocation
    553 Requested action not taken: mailbox name not allowed
    [E.g., mailbox syntax incorrect]
    354 Start mail input; end with <CRLF>.<CRLF>
    554 Transaction failed

  • ORA-29279: SMTP permanent error: 500 5.3.3 Unrecognized command

    Dear All,
    I'm trying to send mail WTH of below given proc, but I got ORA-29279: SMTP permanent error: 500 5.3.3 Unrecognized command error, however I'm able to send mails WTH of a java program for the same mailhost
    CREATE OR REPLACE PROCEDURE Send_Mail_Test
    AS
       l_mailhost    VARCHAR2 (64)       := 'smtp.gmail.com';
       l_from        VARCHAR2 (64)       := '[email protected]';
       l_to          VARCHAR2 (64)       := '[email protected]';
       l_mail_conn   UTL_SMTP.connection;
    BEGIN
    --   l_mail_conn := UTL_SMTP.open_connection (l_mailhost, 25);--(l_mailhost, 465);
       l_mail_conn := UTL_SMTP.open_connection (l_mailhost, 587);
       UTL_SMTP.helo (l_mail_conn, l_mailhost);
    -- For Authenication
       utl_smtp.command(l_mail_conn,'STARTTLS');
       UTL_SMTP.command (l_mail_conn, 'AUTH LOGIN');
       utl_smtp.command(l_mail_conn, utl_encode.base64_encode(utl_raw.cast_to_raw('[email protected]')));
       utl_smtp.command(l_mail_conn, utl_encode.base64_encode(utl_raw.cast_to_raw('mypassword')));
       UTL_SMTP.mail (l_mail_conn, l_from);
       UTL_SMTP.rcpt (l_mail_conn, l_to);
       UTL_SMTP.open_data (l_mail_conn);
       UTL_SMTP.write_data (l_mail_conn,
                               'Date: '
                            || TO_CHAR (SYSDATE, 'DD-MON-YYYY HH24:MI:SS')
                            || UTL_TCP.crlf
       UTL_SMTP.write_data (l_mail_conn, 'From: ' || l_from || UTL_TCP.crlf);
       UTL_SMTP.write_data (l_mail_conn, 'Subject: ' || 'test' || UTL_TCP.crlf);
       UTL_SMTP.write_data (l_mail_conn, 'To: ' || l_to || UTL_TCP.crlf);
       UTL_SMTP.write_data(l_mail_conn, utl_tcp.CRLF);
       UTL_SMTP.write_data (l_mail_conn, 'test');
       UTL_SMTP.close_data (l_mail_conn);
       UTL_SMTP.quit (l_mail_conn);
    END Send_Mail_Test;
    /Pls suggest
    Thanks
    *009*

    009 wrote:
    I'm trying to send mail WTH of below given proc, but I got ORA-29279: SMTP permanent error: 500 5.3.3 Unrecognized command error, however I'm able to send mails WTH of a java program for the same mailhostNot an Oracle error. Irrelevant what the Java code do as you could be doing something different using UTL_SMTP, you could be running it from a different IP address, etc. Also the message seem to be very clear that you are sending an invalid SMTP command to the server.
    If UTL_SMTP fails with a SMTP error, it means that the mail server itself reported an error. Thus this is not an Oracle error, a problem with the database, etc.
    What it typically is, is:
    a) the client code incorrectly conversing SMTP (and not sticking to the correct SMTP commands and sequence)
    b) the client requesting the SMTP server something that is not supported (like relaying mail)
    In all cases, the easiest method to troubleshoot this is not to use PL/SQL and UTL_SMTP at all, but to interactively converse with the mail server from the Oracle database server
    1) ssh or telnet or open a command/shell console on the Oracle server
    2) using telnet, connect to the mail server (e.g. telnet mail-server.abc.com 25 )
    3) repeat the same command sequence as your PL/SQL code does (these should be typically the HELO, MAIL FROM, RCPT TO, DATA and QUIT command in this sequence)
    If you like to know more about the SMTP protocol, read [RFC 821 - Simple Transfer Mail Protocol|http://www.faqs.org/rfcs/rfc821.html] - this is the official specification for the protocol. Also read RFC 2554 ( SMTP Service Extension for Authentication ) in case your mail server supports authentication extensions.

  • Configurare server smtp

    Avrei bisogno di impostare il server smtp di account diversi da icloud in modo da poter inviare sempre le email indipendentemente dalla connessione su iPad e iPhone. Impostando un nuovo account su iPad non dovrei ritrovar melo anche su iPhone? Grazie

    If you're going to write an SMTP server you don't need a tutorial, you need to read the RFCs that specify the requirements for an SMTP server. The foundation is RFC 821 and there are others that appeared later.

  • Bug? htmldb_util.reset_pw gives ORA-29278: SMTP transient error 451

    After changing mailprovider we had some troubles mailing from the database.
    After mailing to his SMTP-server we got the error message:
    ORA-29278: SMTP transient error: 451
    We were able to correct our custom code by replacing all the end-of-line LF with calls to
    UTL_TCP.CRLF.
    However, our Apex-application is still broken. By calling HTMLDB_UTIL.RESET_PW
    the system should mail the new pwd to our user.
    Should
    But it doesn't
    In the Mail Log/queue we again get the ORA-29278,
    so my deduction is that in the message that RESET_PW assembles a single LF is
    used and not the CRLF.
    Question: is there a way to overcome this bug?
    BTW, the SMTP-server is present. Writing a HTMLDB_MAIL.SEND by hand gives no trouble at all.

    CRLF characters are required to separate each SMTP command, per RFC 821 (http://www.ietf.org/rfc/rfc0821.txt), and that is what the APEX_MAIL package does.
    But the portion that "you are afraid of" which contains CHR(10) is the message[b] body of the reset password functionality of APEX - there can be any combination of characters in there. It is not a requirement that the body of the message uses CRLF for line endings. So, unfortunately, I don't think the deduction applies here.
    Let's start with some basic things. If you change the "SMTP Host Address" in the internal Administration Services of APEX to a known good SMTP host, does the problem go away?
    451 means "Requested action aborted: error in processing". That could be anything. It could even be an issue with your provider, your connection to the provider, etc. Does your provider have a log of the incoming "conversation" and a log of the abort? That may be helpful.
    Joel
    P.S. By the way, which version of Application Express/HTML DB are you using?

  • Unable to send email from my server to internet mail address. Labview.

    I have had great success sending mail when I SMTP to the actual mail server that the email address is on. But when I try to send from my server to some other email address I get an unable to relay "email address" server response. If someone has any ideas on this I would appreciate it. I have included some information that may aid in this endeavor. (I do not want to use Active X thanks to Outlook's dislike of that)
    Example:
    [email protected] email to mail.bellsouth.net works fine. [email protected] email to mail.company.com works fine. [email protected] from mail.company.com gives unable to relay message. (Vice Versa)
    Exact server response from SendEmail_LV6.vi from developer zone: (
    ht
    tp://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EB9956A4E034080020E74861&p_node=DZ52050&p_submitted=N&p_rank=&p_answer=&p_source=External)
    220 server.company.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5329 ready at Fri, 23 Jan 2004 10:27:22 -0600
    250 server.company.com Hello [10.1.1.176]
    250 2.1.0 [email protected]...Sender OK
    550 5.7.1 Unable to relay for [email protected]
    554 5.5.2 No valid recipients
    500 5.3.3 Unrecognized command

    I agree, it is ususual for an SMTP server to check the validity of the reverse-path address, because mailers could just use a invalid address on a valid domain, e.g. [email protected] The address in the "MAIL FROM:" command gives the reverse path to communicate errors and can be different from the actual sender address.
    In any case, this is quite irrelevant for the current discussion, because address verification has nothing to do with relaying.
    The error message:
    550 5.7.1 Unable to relay for [email protected]
    is completely unrelated to your:
    450 Unable to find nowhere.com
    Just to clarify, I was talking about address in the FROM: field of the message header, and not what is
    communicated in the "MAIL FROM:" SMTP command. (Similarly, the TO: field in the header is not used for message targeting and can be anything, it can even be missing and the SMTP server still does not care. Targeting is done entirely with the RCPT TO: SMTP command which not contained in the header (the mail header is part of the message DATA). Refer to RFC 821 for further details.
    You probably won't find a legitimate SMTP server that allows relaying, so the solution is to use the designated SMTP server for the particular location.
    LabVIEW Champion . Do more with less code and in less time .

  • General OEM Question

    Can anyone give me a general idea I have created one simple job where I count the number of rows in a table but now I would like to send the output to my e-mail. Also if anyone has some sample code that can give me an idea on how to creat other jobs like checking to see if the database is up and running and if not e-mail me. Thanks in advance.
    Matt

    Hi,
    one chance over the PACKAGE utl_smtp .
    * OVERVIEW
    * This package provides SMTP client-side access functionality in PL/SQL.
    * With this package, a PL/SQL program can send electronic mails via SMTP.
    * This package does not allow the PL/SQL program to receive e-mails via
    * SMTP. The user of this package should be familiar with the SMTP protocol
    * as defined in RFC 821 and RFC 1869.
    * This package is meant to provide an API to SMTP protocol directly. Users
    * may find it useful to define additional helper routines to encapsulate
    * the interaction with a SMTP server.
    * USES
    * A SMTP connection is initiated by a call to open_connection, which
    * returns a SMTP connection. After a connection is established, the
    * following calls are required to send a mail:
    * helo() - identify the domain of the sender
    * mail() - start a mail, specify the sender
    * rcpt() - specify the recipient
    * open_data() - start the mail body
    * write_data() - write the mail body (multiple calls allowed)
    * close_data() - close the mail body and send the mail
    * The SMTP connection is closed by calling quit().
    * A note on API style and raising PL/SQL exception:
    * Most of the API has a function form and a procedure form. The function
    * form returns the reply message after the command is sent, in the form
    * of "XXX <an optional reply message>", where XXX is the reply code.
    * The procedure form of the same API calls the function form of the API,
    * checks the reply code and raises transient_error or permanent_error
    * exception if the reply code is in 400 or 500 range. The function form
    * of the API does not raise either of the 2 exceptions.
    * All API may raise invalid_operation exception if it is called in either
    * of the situations:
    * 1. calling API other than write_data(), write_raw_data() or close_data()
    * after open_data(0 is called, or
    * 2. calling write_data(), write_raw_data() or close_data() without
    * first calling open_data()
    * EXAMPLES
    * Retrieve the home page from http://www.acme.com/
    * DECLARE
    * c utl_smtp.connection;
    * PROCEDURE send_header(name IN VARCHAR2, header IN VARCHAR2) AS
    * BEGIN
    * utl_smtp.write_data(c, name || ': ' || header || utl_tcp.CRLF);
    * END;
    * BEGIN
    * c := utl_smtp.open_connection('smtp-server.acme.com');
    * utl_smtp.helo(c, 'foo.com');
    * utl_smtp.mail(c, '[email protected]');
    * utl_smtp.rcpt(c, '[email protected]');
    * utl_smtp.open_data(c);
    * send_header('From', '"Sender" <[email protected]>');
    * send_header('To', '"Recipient" <[email protected]>');
    * send_header('Subject', 'Hello');
    * utl_smtp.write_data(c, utl_tcp.CRLF || 'Hello, world!');
    * utl_smtp.close_data(c);
    * utl_smtp.quit(c);
    * EXCEPTION
    * WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
    * utl_smtp.quit(c);
    * raise_application_error(-20000,
    * 'Failed to send mail due to the following error: ' || sqlerrm);
    * END;
    * SMTP connection type
    TYPE connection IS RECORD (
    host VARCHAR2(255), -- Host name of SMTP server
    port PLS_INTEGER, -- Port number of SMTP server
    tx_timeout PLS_INTEGER, -- Transfer time-out (in seconds)
    private_tcp_con utl_tcp.connection, -- For internal use only
    private_state PLS_INTEGER -- For internal use only
    * SMTP reply structure
    regards
    Karl-Heinz Schnvpel

Maybe you are looking for

  • Suddenly can't connect to public wifi

    I've been away from home for several weeks and have been using the hotel public wifi with no problems. A few days ago my ipod crashed and since rebooting and restarting I cannot connect to the hotel's public wifi. It connects briefly and then disconn

  • How can I add a simple URL to Streamwork?

    Hi, I want to add a simple URL to a StreamWork activity. I do not care whether this is in a text or a collection etc. All I would like to see is that the URL is displayed as such (i.e. blue, underlined) and a user can navigate to the URL with a simpl

  • How to disabled Turbo Boost in Lenovo IdeaPad V570?

    I looked in the BIOS, but the layout "Advanced" hidden. Can still know how to disable TurboBoost? (sorry for my english)  Solved! Go to Solution.

  • Example program for returninng and importing with value addition

    HI , I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions Thnaks .

  • Lost iCal data after upgrade

    I've just updated my husband's MacBook from Leopard to Snow Leopard. Everything has gone perfectly well, apart from iCal and Address Book, both of which are now empty. How do I reunite them with their data? If it isn't hiding somewhere on his MacBook