Apex_mail - Email Display Name

We have had a request from a client to send the display name of the sender along with the email address in the format (Display Name <[email protected]>). When i try to use the send procedure i encounter errors. I know that emails can be sent with a display name.
Does anyone have any experience with this matter?
Regards
Kevin
p_from => 'Kevin Mann <[email protected]>',

I configured mail on a APEX 3.0.1 instance yesterday and immediately got a 501 error. This is what I found.
The examples in the documentation for APEX_MAIL and UTL_SMTP are wrong. Here's a snippet from the first example in "Oracle® Database PL/SQL Packages and Types Reference 10g Release 2".
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]');
Sniffing the packets using ethereal, the SMTP commands generated are
HELO foo.com
MAIL FROM:[email protected]
RCPT TO:[email protected]
In other words the strings supplied to UTL_SMTP.MAIL and UTL_SMTP.RCPT are passed to the respective SMTP commands verbatim without any checking, filtering, or modification. In this example, according to RFC 821 and RFC 2821, this creates invalid parameters since the address in the MAIL FROM and RCPT TO commands is suppose to be enclosed in '<' and '>'. In other words the example above should read.
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]>');
However, most modern mail transport agents seem to be liberal about what they accept and can figure it out. Unfortunately, the MTA my organization uses is old and strict, and wants the pointy brackets.
In APEX_MAIL the two parameters to send (p_to and p_from) seem to pass directly to UTL_SMTP.MAIL and UTL_SMTP.RCPT verbatim which means it's documentation is also wrong because it omits the pointy brackets.
So if you were trying to do.
apex_mail.send(p_to => 'Oracle <[email protected]>',
p_from => 'Kevin Mann <[email protected]>',
p_body => 'Hello World!');
Then receiving a 501 error would be correct according to the SMTP specs. The correct syntax would be
apex_mail.send(p_to => '<[email protected]>',
p_from => '<[email protected]>',
p_body => 'From: Oracle <[email protected]>' || utl_tcp.crlf ||
'To: Kevin Mann <[email protected]>' || utl_tcp.crlf ||
'Hello World!');
But again, some MTA's will figure it out (the Postfix 2.2.10 server I was testing on gave a error, but the other much older MTA didn't).
Basically using UTL_SMTP or APEX_MAIL is the same as sending mail using telnet and typing the SMTP commands in by hand.

Similar Messages

  • Wrong email display name with german umlauts (MS Exchange 2003)

    We use 6 iPhones with Exchange 2003 and get wrong email display names with german umlauts (ä,ü,ö) - but the email-body is right.
    We get special characters instead of umlauts, so the display name split into pieces. Anwering is not posipble - we get a failure-message.
    We changed the standard-internet-mailformat on the exchange-server to unicode utf-8. First it works fine, after a few hours the names displays wrong again.
    So we use this hotfix:
    http://support.microsoft.com/?scid=kb%3Ben-us%3B916299&x=11&y=13
    Same result: First it works fine, after a few hours the names displays wrong again at the iPhone.
    Any ideas?

    Do you have commas in the display name? We used to have "Müller, Thomas" <[email protected]> and then got the split up and special characters you mention. Tests have shown that when leaving out the comma in the display name, e.g. "Thomas Müller" <[email protected]>, everything worked fine.
    Guess it's a question of whether a company wants to change its naming convention for a few iPhone users...
    HCD

  • Unable to change outgoing email display name on 9930. Only displays email address to clients

    I have tried to change my outgoing email display name to my name but when I delete the email address on username field and input my name it says "not a valid email address". Tried on the Blackberry website with my profile and on my handheld device. Why is this so difficult? I can't send emails to clients as on their end it just shows my email address in the from field and not my full name. My email account name on my Blackberry shows the full name I want to display, but it keeps defaulting to my username, which is my email address. I have a 9930 that is two years old. Thanks.

        Hi Cltclt,
    Thanks for the details! When did this issue start? Is your Blackberry on a Blackberry Enterprise server from your company? Is this an outlook Microsoft Exchange email account? This may help with changing your settings:
    Change options for your personal email account
    You can change options for each personal email account that you added to your BlackBerry® smartphone. You can create email filters, synchronize your contacts, change your signature or display name, and more.
      • On the Home screen, click the Messages icon.
      •  Press the  key > Options > Email Account Management.
      • Click the email account that you want to change options for.
    Thanks,
    PamelaF_Vzw
    Tweet us @vzwsupport

  • Email display name is incorrect

    our email display name has incorrect name however the email address is correct.  how do we edit the display name.

    JJTTShafer
    I am guessing that by 'our' reference you and a significant other are sharing an email address?
    We are really lacking info. We need MORE!
    Quoted from  Apple's "How to write a good question"
       To help other members answer your question, give as many details as you can.
    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "iPhoto 9.1.2". <-Mail APP here!!
    Describe the problem, and include any details about what seems to cause it. Added - is this sudden or always been this way?
    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.
    regards
    CCC

  • How do I change my icloud email display name?

    HELP!
    I cannot find anywhere how to change my ICLOUD email display name? Can anyone help please? I have tried my Apple ID, via my PC and also via my iphone to no avail....HELP please it is v frustrating!

    Thanks Allan. Slight problem, I changed my email address on my Apple ID and now I can't get into my Icloud settings on my iphone. Can I do it on my laptop or via icloud.com or appleid perhaps?
    Thanks for your hep

  • IMac email display names

    This has been a really annoying thing that has been happening to me with the mail application.
    When you make an email in the mail application it asks if you want to give it a description.  So for example on my ebay email address I described it as Ebay Mail and under my inboxes it shows up as Ebay Mail.  Now lets say I sent someone an an email when it comes up instead of saying my full email address it says the mail is from "Ebay Mail".  I don't want it to say that I want it to say its from my full name, but I want to use the nickname of the mail for my personal organziation so I know the difference of what mail it is.  I also have problems if someone else with apple mail sends me an email.  Like for example one of my friends has labeled one of his boxes as paypal so he can tell what email that is.  Everytime I get an email from him it says its from Paypal which is really confusing because I dont know if its him sending me an email or paypal themselves.  I tried changing his name in my contacts to his real name, but its sitll showing up as Paypal when he is sending me somehting yet when you open the email the from says his real name.  Is there anyway to fix this so the box is just nicknamed and it doesnt show up as the sender name to other people and then on the other way if someone sends me an email with a nicknamed box to not show up as things like paypal? 

    Hi,
    I suppose you are using an Exchange account? Have you upgraded the Exchange Server?
    I am using Outlook 2013 & Windows 8.1, I cannot reproduce this issue on my side.
    If you send the emails on Web(OWA), will the recipients see the display names in the CC field? If yes, try creating a new profile to setup your account, test if this issue persists:
    http://support.microsoft.com/kb/829918/en-us
    Regards,
    Melon Chen
    TechNet Community Support

  • Email display name different iphone / macbook iCloud

    Since upgrading to Lion / iOS5 and iCloud I have the following oddity.
    When I send an email from my macbook or iCloud.com the From appears as Nick B********m which is great and is what I want
    When I send an email from my iPhone 4 the From appears as Nicholas B*******m which is not what I want!
    My appleId is set up as Nick, in fact I can't find anywhere that I'm setup as Nicholas! Can anybody nudge me into the correct direction to change this.
    Thanks

    Nick,
    I have worked with this issue today. The answer has two steps.
    1) Login to appleid.apple.com and get your name correct there.
    2) Delete that icloud account from your phone and add it back after a small delay.
    It seems that the "display name" for email _sent from an ipad or iphone_ using _a me.com or mac.com_ account is pulled from the  appleid profile.
    AND
    changes made to the appleid profile don't get reflected on the iphone or ipad until the account has been deleted from the device and added again.
    Good Luck,
    Steakfrite

  • Email display name for mobile me

    is there a way to change my display name for my me.com email account to a gmail address? i have forwarded the gmail, and do not want the confusion of a new email address for recipients. under mail preferences, "send mail as", you can enter a name, but it will not let me include "@". thanks for any help.

    Post Author: amr_foci
    CA Forum: Publishing
    we are using microsoft mail server, and its working fine, i just write the Email, and i got the mail written by the name equivalant to this name in the Active Directory.
    and also its working fine when i write only the name
    wat mail server u r using?

  • Change email display name????

    My display name for the exhange email set up on my iphone appears wrong. I have double checked with the email provider and they say this has to be changed with apple. How do i do that?

    Log into your webmail, click on Preferences (tools icon) (upper right ish). Now on the left, you click on accounts click on the account at the top (I only have one - so the details show up on the lower right) and change your from name.
    Now I did stop and re-start my mail app on the ipad and it did not (yet) update the name. I am not sure when this gets done but I will be  phoning shaw when I get a chance and update this post at that time.
    Wish me luck. You could also set it up as a pop account. Shaw does not have the imap option like the rest of the planet (in the year of 2013!)

  • No option to change email display name for exchange activesync account

    Hi there - I have searched several forums and for some reason haven't been able to find the answer to my question. I have a business email account hosted through google apps, and my email is set up on my iPhone as an active-exchange account. Emails sent from my phone display my official first name instead of the one that I go by and want to display. Emails sent from the gmail interface and outlook display my correct name.
    I don't have an option in my account information screen to change this, and I haven't been able to find where this is stored.
    Can someone please help? Thanks in advance.

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (125083)

  • Outlook Calendar Email Display Name and Reply to Name

    I need help to change the display email address and reply-to-email address used when I create and send calendar invitations from Outlook.
    Here is my setup.
    I am using Outlook 2013 that is connected to an Exchange server.
    I have 2 email systems.
    My main email system is NOT using Outlook.  All of my emails flow through, as an example, [email protected]
    Outlook is used only for my contacts and calendar.  For this email let's call it [email protected]
    Right now when I send a calendar invite it comes from [email protected] and the reply-to-address is [email protected]
    I would like the "from name" and "reply-to" name for all calendar invites to be displayed at [email protected]
    My [email protected] will redirect all calendar invites to [email protected]
    How can I configure Outlook to do this?

    So to my understanding there are 2 different email systems: one handling the @email1.com, based on Postfix/sendmail/Exchange/<other mail server> and one handling the @email2.com based on Exchange.
    If you add an accepted domain in your Exchange organization - @email1.com - then you'll be able to add the [email protected] address to the list of email addresses stamped on your Exchange mailbox. Following this, the recently added address can be specified
    as reply-to address (Primary SMTP Address). On the other email system, you'll have to use @email1.com as an internal relay accepted domain (similar to the notion described
    here) and configure a connector to send email to the Exchange organization for @email2.com. As for the forwarding itself - if that system is also Exchange - the 'targetAddress' attribute could be used, which will instantly forward the email to the '[email protected]'
    value that should be stamped inside (see
    this link); if a different email system, then the equivalent feature of 'targetAddress' should be used. 
    Yet the whole setup is cumbersome to say at least. Could you give more details about what is it you're trying to achieve at a higher level ?

  • Workflow Issue : Email sender display name not as the same as alert email sender

    Dear Support,
    we customized a workflow for sending alert to some user when someone create a new item in the specified document library. 
    what we already done as below
    1. the email sender address has been setup at "Central Administrator", for example "[email protected]".
    2. team site title is "Customer Center Platform".
    3. we customized a new workflow to trigger system send a email to recipient when someone create a new record.
    what we expected is 
    Recipient will got a email which send from "[email protected]", the email display name should be "Customer Center Platform [[email protected]]", but in this case, the display name is "[email protected]".
    it's been our experience that when we used "Alert Me" function, system will send the email and used "Customer Center Platform [[email protected]]" as email display name.
    we want to change workflow email sender display name, what can we do? we are looking forward to your advice, many thanks.

    Dear Hemendra,
    thanks for your reply.
    we follow the below guide to setup the workflow step by step
    http://blogs.msdn.com/b/publicsector/archive/2007/05/22/document-workflow-how-to-sending-an-email-with-sharepoint-2007-moss.aspx
    we used "Send an email" Action, the recipient can receive email, but the email sender's display name is "[email protected]",
    we want to change to "Customer Center Platform [[email protected]]".
    There is a native "Alert me" function under sharepoint team site, we compared the email sender display name, we found the display name in "Alert me" notification email
    is "Customer Center Platform [[email protected]]". 
    we have no idea what is wrong when we setup the workflow.

  • How can I customise Thunderbird message columns to show sender raw address (not display name) and the "Received for" email address that was used to reach me?

    I find it increasingly important to be able to see a sender's actual email address rather than just display name, as they usually don't show a company name - which a domain always would. Is there a way to customise settings/write a script/tweak files to add raw email & domain name columns? When dealing with a number of people at the same company it is hard to order or glance through a list of emails to find them. I also know 2 people with the same name at different companies and it is impossible to distinguish!
    Secondly, as a related column addition, since a number of email aliases reach me it would be useful to have a column to show the "Received..for" part of the message source which reveals the actual email used in the To/CC/BCC which led to me. Again can this be tweaked or scripted?
    I have programming experience but have not made add-ons and would be open to a suggestion which involves creating a custom add-on if adding columns with custom values is possible that way.
    Best Regards,
    Drew

    Extended message headers can be searched from Edit/Find/Search Messages, or the folder context menu, by adding custom headers to the search criteria. So, you might be able to create a search on specific properties of a message.
    The method of adding custom headers to searches is the same as the one described here for filters:
    http://kb.mozillazine.org/Filters_(Thunderbird)#Custom_headers

  • Change display name of workflow email address in sharepoint 2010

    Hi
    How I can change display name of workflow email address in sharepoint 2010. I want to configure display name (from address)of email
     for each site collection separately.for example I want to change "software unit"
     in below pic to another name for my software unit site collection.
    How I can do this?
    Thanx.

    Hi,
    According to your post, my understanding is that you want to change display name of workflow email address in sharepoint 2010.
    In my environment, if I assign a task to a user, the email is as below:
    The “test” is the site name, the [email protected] is the “From” user.
    Do you want to change the “From” field in the workflow?
    If so, you can have a look at the "Send email extended" custom SPD workflow activity (http://www.codeplex.com/SPDActivities
    ) which allow you to specify the sender.
    Here are some similar threads for your reference:
    https://social.technet.microsoft.com/Forums/en-US/22d95510-95b7-4882-b988-4038e59fb031/how-to-change-the-display-name-for-sharepoint-emails-sent-using-workflows?forum=sharepointgeneralprevious
    http://sharepoint.stackexchange.com/questions/19186/changing-from-email-address-in-sharepoint-designer-2010-workflows
    http://sharepoint.stackexchange.com/questions/61964/how-to-change-the-from-address-in-feedback-workflow-email
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to show users display name and email address in open social widget?

    Hello experts,
    Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
    Best regards,
    Ville

    Hi Ville,
    in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
    If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
    Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
    The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
    Look at this - SAP HANA Cloud Platform SDK >
    Package com.sap.security.um.user
    Interface:
    User
    This interface provides read access to user data and is an extension of Principal.
    UserAttribute
    The interface represents abstraction over a user general attribute, such as an e-mail address.
    UserProvider
    This interface represents the service interface which provides read access to a user implementation.
    Inbal 

Maybe you are looking for