Sending email from smtp

Hi ,
below is the scripts for sending email which i copied from PL/SQL User guide :
declare
l_mailhost VARCHAR2(64) := '1.1.1.1';
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);
utl_smtp.helo(l_mail_conn, l_mailhost);
utl_smtp.mail(l_mail_conn, l_from);
utl_smtp.rcpt(l_mail_conn, l_to);
-- If we had the message in a single string, we could collapse
-- open_data(), write_data(), and close_data() into a single call to data().
utl_smtp.open_data(l_mail_conn);
utl_smtp.write_data(l_mail_conn, 'This is a test message.' || chr(13));
utl_smtp.write_data(l_mail_conn, 'This is line 2.' || chr(13));
utl_smtp.close_data(l_mail_conn);
utl_smtp.quit(l_mail_conn);
EXCEPTION
WHEN OTHERS THEN
-- Insert error-handling code here
NULL;
end;
though it managed to execute properly , and i could receive the email from LOTUS NOTES
BUT from LOTUS NOTES i could not see any address in the To : and there's no message in the details section as well
is this an smtp issue ?
pls advise
tks & rdgs

The issue is you not understanding SMTP and Internet Message Bodies.
SMTP is the delivery mechanism. Think of it as a truck that delivers the a-mail payload. SMTP has no interest or concerns as to what the payload is. It simply moves it. Nothing more.
The payload needs to be a valid Internet Message Body. It should consist of a header and a body. An e-mail header should include the following fields:
From: <sender>
To: <recipient>
Subject: <subject>
The header is terminated by a blank like. After which the message body starts.
Things like attachments requires additional header fields specifying what the bounadaries are of attachments in the body. With these boundaries being used in the message body.
Two suggestions. Read the RFCs on Internet Message Bodies (links provided below). Look at the raw contents of an e-mail in your e-mail box - often it is much easier to grasp the concepts explained in these RFCs by looking at your own mailbox.
At http://www.faqs.org/rfcs/rfc-titles.html :
RFC 2049 - Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
RFC 2048 - Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures
RFC 2047 - MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text
RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Authentication Error while Sending Email from SMTP server.

    Authentication Error while Sending Email from SMTP server.  Can receive emails but cannot send emails from this account. 

    no email account was setup on the phone unless it was issued by your company.
    gmail is required but no server address ports to enter.
    my gmail account was setup before i took delivery of the phone but could have been done when phone was activated.
    i added cox pop3 email and had to manually enter both pop3 and smtp servers with both boxes checked on both servers.
    i doubt if it's a verizon issue.

  • Send email from OWB with authenticated SMTP server (AUTH_LOGIN)

    Hi all,
    I want to send email from Oracle Warehouse Builder 11.2.0.2 using a SMTP server with basic authentication (AUTH_LOGIN).
    I've created an ACL for OWBSYS user according to note ID 1229769.1 in support.oracle.com.
    But, I need to configure again the ACL to connect to the SMTP server using user and password.
    I read the article in metalink, *How to Send an Email Using SMTP over an SSL Connection [ID 1323140.1]*+
    but I don't know how can I configure again the ACL for use in OWB.
    How OWB is able to authenticate with the SMTP server?
    Thanks!
    Maximiliano.

    Duplicate -
    How to send email from OSB with Mail server that requires SSL or STARTTLS
    Regards,
    Anuj

  • I can not send email from my iPhone or iPad its goes out from the iMac ok. I get SMTP is incorrect. any suggestions?

    Having problems sending email from my iphone and ipad. Im getting a SMTP is incorrect error. Has anyone had this problem?
    Spent 3 hours with internet carrier still not resolved. Everything is fine on the imac.

    What is the error message provided if any?
    If the email account is provided by your ISP, does your ISP have an authenticated SMTP server?
    Are you unable to send email with the account using your iPhone or iPad when connected to the same wi-fi network or internet connection as your Mac with your ISP?

  • I cannot send email - error message as follows : 'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk.' I can send email from other apple devices, and the email settings are identical. Any ideas?

    For some reason I cannot send email - all was working fine, but now I get the following error message when I try to send email:
    'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk'
    I can receive incoming mail ok and I can send email from other Apple devices. The problem seems confined to my Mac Book Pro.
    Ant ideas?

    Hello there, Pablo639.
    The following Knowledge Base article offers up some great steps for troubleshooting mail issues on your Mac:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I can not send email from my iPad . Says SMTP is incorrect

    Why can't I send email from my iPad ?  It says my SMTP is incorrect but it will not let me correct it

    Hey Me520,
    Thanks for using Apple Support Communities.
    This article provides troubleshooting steps for Mail issues.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Log in to your email provider's website to ensure that the account is active and the password is correct.
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Choose the affected email account, then tap Delete Account.
    Add your account again.
    Have a nice day,
    Mario

  • I can't send email from my iPad. I am from Australia but on holidays in Greece. Does anyone know what is the smtp outserver for Greece that I should use?

    I can't send email from my iPad. I am from Australia but on holidays in Greece. Does anyone know what is the smtp outserver for Greece that I should use?

    As you haven't told us who your email provider is, no.
    There isn't an SMTP server for Greece - it is either provided by your email provider, or the Internet provider you are connected through.

  • Send email from SAP using SMTP-AUTH

    Dear all,
    I would like to send email from SAP to external SMTP server using authenticated method.
    Can I set up this scenario with SAPConnect?
    Or are there any other methods to set up this scenario?
    Thanks, Regards,
    Fendhy

    Hi,
    You dont need anu authentication to be set :
    Just follow below steps :
    Simple steps to do the SMTP configuration :
    1. Use transaction SCOT
    3. Double Click on SMTP
    4. You will get a window and fill in description
    5. Tick the "Node in use" box
    6. Enter the hostname of the email exchange server
    7. Mail port will be 25
    8. Click on the button next to Internet called "Set"
    9. You will get another window, in the "address area" box, enter *
    10. Click the green check button to exit the second window
    11. Click the green check button to exit the main window
    12. From top menu: Settings -> Default Domain
    13. in the small box that appears enter the domain name which is the last part after the @ sign. The domain name would be company.com
    14. You need to define a job to process the email, from top menu: View -> Jobs
    15. From top menu: Job -> Create
    16. Enter a name
    17. Click on "INT" in the list then "Schedule job" button
    18. Enter start date and time, then click on "Schedule Periodically" button
    19. Enter something like every 10 minutes.
    20. the configuration is now complete. To test it, you need to have an email defined in your user id properties. Use SU01 for that.
    21. Use transaction SO00
    22. Put Title, and text in the body, then enter your email address below, the recepient type would be "internet address"
    23. After a maximum of 10 minutes you should get the email address.
    Regards,
    Nirmal.K

  • Apple iPad 3. BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Can anyone help me please.

    BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Apple iPad 3. Can anyone help me please.

    All resolved at last
    Deleted the SMTP setting
    Recreated the SMTP using the same settings
    Able to send emails now
    No logic - as usual - just a bug!

  • Why can I no longer send email from my Hotmail SMTP account using Mail?

    I can no longer send email from my Hotmail SMTP account using Mail. The connection doctor says it can't connect to the SMTP server. All the settings look to be correct and it was working fine before. I can still email using my iPhone with the same account.

    Other may post it is some type of change with your ISP but the simple fact is this happen with Apple Mac Mail all the time.
    IMHO Mac Mail is one of, if not the, worst mail program ever written.
    Do yourself a big favor and start using some other mail program, any other Mail program.

  • SMTP Server Sending Emails from mymac.local

    I ran a "fetchmail -a" command in terminal not thinking it would work from the command line. It worked and downloaded all my mail from Gmail locally to my mac into /var/me/mail. About 8000 messages in total.
    But it also started relaying all those messages through a postfix program I didn't know was running.
    From what I can tell it tried to relay every message I was sent in my gmail to mymac.local and when it couldn't it send NDR messages back to the address that was trying to send it (i.e. the original sender that sent it to my gmail).
    So to cut a long story short everyone who ever sent me an email got an NDR saying a message they sent to mymac.local could not be delivered. I was spamming them but I did not know it until a few hours later. At that time I killed the postfix program that (i think) was running an SMTP server relay on my machine. (I have MAMP installed for web development)
    I still do not know if it has stopped sending as I cannot view what has been sent or not been sent in any log files.
    How do I make sure everything (SMTP relays/postfix etc.) has stopped sending?
    How do I turn off ability to send anything from my local machine?

    Hi,
    Some ISPs will only allow a device to send emails from their server when its connecting to the Internet over their network.
    If the iPod touch is connecting to the Internet over the cellular network, you will most likely have to enable an alternate outgoing mail server(one that can only send over the cellular network). This article: http://support.apple.com/kb/TS1426 provides more details about enabling alternate SMTP servers.
    You can avoid ISP related send mail issues by switching to another email provider, like MobileMe, Yahoo!, or Gmail.
    -Jason

  • Cannot send email from yahoo account on iPhone 5

    I just got an iPhone5 and I couldn't set up my Yahoo email as "yahoo"--it would not allow me to complete the process despot multiple attempts. I had to set it up as an "other" account. I can receive and read emails on my phone, but when I reply those messages will not send. They go to the outbox and an error message pops up that says" the email account has been rejected by the server" Does anyone have advice on either issue: setting up yahoo properly and/or sending email from phone?

    outgoing mail server
    SMTP - Yahoo! SMTP Server
    primary server
    Yahoo! SMTP server - ON
    server port 465
    That's what I have for my yahoo account.

  • Cannot send email from MobileMe account

    Apple recently pushed out an update to the MobileMe calendar. Since upgrading my account, I am unable to send emails from Firefox4 (current version) in Windows. The page sits indefinitely at a loading screen. Apple Support won't help because it isn't an issue with Safari. Anyone else have this issue?

    When using the MobileMe account preset to create the account, the SMTP server is created with 587 as the SMTP server port, which can't be changed when using the MM account preset to create the account.

  • Cannot send email from ipad?

    I can receive, but cannot send emails from my iPad. Always get message that I have wrong user name or password.

    Then make sure that the settings are correct in your email account.
    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Cannot send email from my mobileme on iphone 3g

    Suddenly coudn't access my mobileme email account. So I changed my password; and since I couldn't send email from my iphone 3G
    I can send/receive emails from icloud webpage or Thunderbird.
    Any clues?

    outgoing mail server
    SMTP - Yahoo! SMTP Server
    primary server
    Yahoo! SMTP server - ON
    server port 465
    That's what I have for my yahoo account.

Maybe you are looking for

  • G3 in box for over a year, won't boot up, start, respond, etc...

    Simple enough. I haven't used my older iMac G3 for probably two years. Purchased around 2000, used until maybe 2003, last started maybe two years ago for a couple of days. Before and since it's been shut down, carefully packed in the original packing

  • Dbms_job.submit error reporting

    Jobs are rerun - up to 16 tries, I understand - once submitted using dbms_job.submit. I can see the failures incrementing in the FAILURES columns of dba_jobs. What would be a suitable step to determine the cause of the job's failure, such as determin

  • File size for Show & Share

    Hi all. We have a SnS system version 5.2. When we try to upload a video larger than 2 Gig we get that the file is to large to upload. But in the documentation I have read that there is no limitation to the file size, but obviously this is not correct

  • How to Search for music in IOS 7?

    Does anyone know how to search the music app in IOS 7? I can search in itunes, but cannot find a way to search for a song with the new music app?

  • My Finder Icon in desktop invincible

    My Finder Icon in my Desktop won't show up, but i can use it and the dot under it glows. I've Tried re-booting, Safe boot aswell But it won't work. I messed up trying to change the icon picture with the iOS 7 Finder Picture, ended up that the icon no