Include Name in From Field of Apex Email

Hello,
I would like to send an email from APEX using APEX_MAIL.SEND and include a name and an email address in the from field. I was thinking I need to do something like "My Name <[email protected]>" for the from field, but that does not work. Any suggestions?
Thanks,
Patrick

Patrick,
In the above documentayion link, you can find
>
p_from - Email address from which the email will be sent (required). This email address must be a valid address. >Otherwise, the message will not be sent
I think system checks whether p_from , p_to etc. are in valid e-mail address format or not before it sends any mail. So I don't think system will send mail if you pass +"Joseph Jones" <[email protected]>+ value for p_from in APEX_MAIL.SEND procedure.
Regards,
Hari

Similar Messages

  • How to get my Name in the From Field instead of email address?

    For an Exchange Activesync account, how do you get your friendly "Name" to show in the From: field rather than email address ([email protected])?
    I seem to be able to do this fro IMAP/POP accounts but not Exchange Activesync.
    All the discussions I've found about gmail and Activesync seem to be centered on getting your messages to show a different return email address than your exchange account. I'm not looking for this, just to show the Name.
    Thanks

    If you add a contact ("Contacts app>> "+">> enter info) with that email address, it will appear in mail with whatever name you set in the email address' contact.

  • 'From' field when sending eMail...

    I'm using Mail, Version 2.1 (752/752.2).
    When I send an eMail... the FROM: field always shows my name, ie - From: My Name <[email protected]>
    How can I set it up to NOT display My Name?
    I would much rather have it say - From: Alias <[email protected]>
    Is there a way to do this?

    I have Gmail set up on my G5, at home, but not this iBook I am using from my daughter's house. Gmail does not lend itself to use from more that one computer and/or email client. However, I use it, primarily to test to help others.
    I think the Gmail SMTP is identifying you, and not the entry you place in Mail's preferences. When you send with the Gmail SMTP, your sent message is archived not only on your Mac's HD, but also on the Gmail server, for you to see using web access. This is different from more typical POP accounts. If you use the Cox SMTP (might require you to have at least set a POP account with them) as the Outgoing Server for the Gmail account, then I think what you place in the Mail Preferences Full Name entry will be included, and not your actual name.
    However, I will have to get home to test this. You probably will have a chance to test it, before I do.
    Ernie

  • Display Name in From field

    We just upgraded from Messenger server 5.x to 6.2.
    On 5.x email messages that were sent by the Messenger Server were received and viewed with the displayName in the From field of the message.
    This is no longer the case with 6.2
    We would like to restore this functionality. I'm hoping there is a setting that we set somewhere.
    Examples:
    From field from a 5.x message would appear as : Bob Walker<[email protected]>
    From field from a 6.2 message appears as: [email protected]
    Thanks, Bob.

    bwalker55 wrote:
    On 5.x email messages that were sent by the Messenger Server were received and viewed with the displayName in the From field of the message.
    This is no longer the case with 6.2
    We would like to restore this functionality. I'm hoping there is a setting that we set somewhere.Assuming you are using Messaging Express (and/or UWC/CE) to send the emails, you can configure Messaging Server to add a display name to the From: field by setting the following:
    ./configutil -o service.http.fullfromheader -v yes
    ./stop-msg http;./start-msg httpRegards,
    Shane

  • Field name retrieval from field symbols after assigning to field in a struc

    We have an internal table of about 100 columns. First 7 of them have key values and other fields are data fields. Out of remaining 93 fields, any 2 to 3 fields have data stored in it in each record. Using field symbols in a loop (93 fixed iterations), we are identifying which fields has a data in it. Once we identify the field, how do we retrieve the name of the field / column of the table. We are performing further processing based on name of the field.
    Any ideas how to get the name of the column assigned to field symbols?
    sample raw code piece is as below:
    clear n.
    Do 93 times.
      n = n + 1.
      assign component n of structure itab to <fs>.
      if not <fs> is initial.
       Get name of the field in cfname.
        perform process_record using cfname.
      endif.
    enddo.
    Thanks.
    Regards.

    Hi,
    Try this..use the function module GET_COMPONENT_LIST to get the fields of the internal table and store it in an internal table ITAB_COMP..
    Then use READ TABLE ITAB_COMP INDEX sy-index..
    You can get the field name from the work area..
    Thanks,
    Naren

  • Mail not displaying names in "From" field correctly

    In my address book, I have people's names and their E-Mail addresses. It automatically completes the field when I send it; however, when I receive E-Mails from my contacts, it doesn't fill their name in. For instance, sometimes it just lists their E-Mail address, even though it is in my Address Book. Sometimes it gives the name they entered on their E-Mail server, not as the name I gave them.
    Is there any way to rectify this problem?

    Does that mean that I am going to have to tell ALL of my friends here in Japan to mess around with the way there phone stores/sends their addresses? OR will I be forced to get Docomo, AU and all of the mobile carriers in Japan to change their system???
    There has to be a better answer...
    If anyone in Japan has sorted this out, please let me know.

  • Adding Email Queue Item to Queue from Contact - How can i put the Contact in From Field?

    Hi Guys,
    A contact completes our webform on our website. The comments box text on the webform goes into a hidden comments box on the contact form which in turn triggers a workflow to create an email message and queue item which adds the email message to a queue for
    a response from one of the sales team. I am unable to populate the 'From' field on the email message with the Regarding Contact or Contact details in order for me to be able to just hit reply to answer the query.
    Any ideas on how i can acheive this?
    Thanks
    Dave
    David Kelly

    Hi  David using Custom Workflow you can achieve this . Below is the sample code.
    protected override void Execute(CodeActivityContext executionContext)
    //Create the tracing service
    try
    //Create the context
    IExecutionContext context = executionContext.GetExtension<IExecutionContext>();
    IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
    IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
    ITracingService tracer = executionContext.GetExtension<ITracingService>();
    bool isEmailmatches = false;
    EntityReference incident = EmailActivityLookup.Get(executionContext);
    RetrieveRequest request = new RetrieveRequest();
    request.ColumnSet = new ColumnSet(new string[] { "from", "description", "subject" });
    request.Target = new EntityReference("email", incident.Id);
    string email = string.Empty;
    string senderqueue = string.Empty;
    string senderqueueFOC = string.Empty;
    bool senderqueueOutput = false;
    bool senderqueueOutputFOC = false;
    Guid SenderQueueId = Guid.Empty;
    Entity entity = (Entity)((RetrieveResponse)service.Execute(request)).Entity;
    EntityCollection IncommingParty = null;
    IncommingParty = (EntityCollection)entity["from"];
    for (int i = 0; i < IncommingParty.Entities.Count; i++)
    if (IncommingParty != null && IncommingParty[i].LogicalName
    == "activityparty")
    EntityReference PartyReference =
    (EntityReference)IncommingParty[i]["partyid"];
    // Checking if email is sent by CRM Account
    if (PartyReference.LogicalName == "systemuser")
    // Retrieve sender Account record
    Entity User = service.Retrieve("systemuser",
    PartyReference.Id, new ColumnSet(true));
    // wod_Account = new Entity("account");
    email = User.Attributes["internalemailaddress"].ToString();
    if (email.Contains("[email protected]") == true)
    senderqueue = "Tier 1 Email";
    if (email.Contains("ford.com") == true)
    senderqueue = "Tier 1 Email";
    if (email.Contains(".ca") == true)
    senderqueueFOC = "FOC Tier 1 Email - English ";
    if (email.Contains("icollection.com") == true)
    senderqueue = "Tier 1 Email";
    QueryByAttribute querybyattribute2 = new QueryByAttribute("queue");
    querybyattribute2.ColumnSet = new ColumnSet("name", "queueid");
    querybyattribute2.Attributes.AddRange("name");
    // Value of queried attribute to return.
    querybyattribute2.Values.AddRange(senderqueue);
    EntityCollection retrieved2 = service.RetrieveMultiple(querybyattribute2);
    foreach (var c in retrieved2.Entities)
    // string Queueid = c.Attributes.Contains("queueid").ToString();
    SenderQueueId = c.GetAttributeValue<System.Guid>("queueid");
    if (senderqueue != null && senderqueue != string.Empty)
    senderqueueOutput = true;
    if (senderqueueFOC != null && senderqueueFOC != string.Empty)
    senderqueueOutputFOC = true;
    this.OutSenderSearchFOC.Set(executionContext, senderqueueOutputFOC);
    this.OutSenderSearch.Set(executionContext, senderqueueOutput);
    catch (Exception ex)
    Helpers.Throw(String.Format("An error occurred in the {0} Workflow.",
    this.GetType().ToString()),
    ex);
    [ReferenceTarget("email")]
    [Input("EmailActivity")]
    public InArgument<EntityReference> EmailActivityLookup { get; set; }
    [Output("OutSenderSearch")]
    public OutArgument<bool> OutSenderSearch { get; set; }
    [Output("OutSenderSearchFOC")]
    public OutArgument<bool> OutSenderSearchFOC { get; set; }
    Here i am doing many things but you can see how to rerieve data from  activity party. Please let me know for any clarification.
    Abhishek

  • Standardizing "From" Field Value of an SAP Generated Email

    Hi Experts,
    I understand that standard behavior dictates that the "From" field of an email SMTP emails generated by SAP is populated with value stored in the "Email Address" field of the triggering users' SAP account (tcode SU01). In the case where this email address field is empty, the system concatenates the triggering user's ID with the value stored in "Default Domain" (tcode SCOT).
    However, I would like to know if there is a SAP configuration that allows me to specify a standard system email address in the "From" field for ALL SMTP emails originating from the system and NOT to use the triggering users' email address as described in the previous paragraph.
    Any help on this query is very much appreciated. Thanks.
    Regards,
    Lionel

    Hi Macy Lo,
               Check the <b>Data types</b> of BDCMSGCOLL-MSGID &
    BDCMSGCOLL-MSGNR.
               It fails because the datatypes doesn't matches.
    You can check this with <i>sy-subrc</i> statement after the read statement.
    Hope it helps.
    Regards,
    Maheswaran.B

  • Criteria Workflow emails - FROM field

    Hello,
    on criteria workflow steps notification emails can be sent to the users.
    Emails are sent from document author (dDocAuthor) in FROM field of the email message.
    Is it possible to configure that emails would be sent from sysadmin (or other constant user) but not from dDocAuthor?

    Thank you for your reply Frank. I am using Mac OS X Version 10.6.8 with Mail app version 4.5. I just updated all the software and these are the latest versions. So, the question is about Mail app 4.5.
    The problem looks the same even after all the updates. When I try to redirect the message, I have empty To field to type in where to send the message and the From field shows a drop down menu with MY email addresses of the configured Mailboxes in my Maill app (these being gmail and hotmail). The original From field is simply not there and is not in pull down menu.

  • Apple Mail "From:" Field Customization

    I have several IMAP accounts in Apple Mail. One of them is a Gmail account that I use as a conduit account for work, so when I reply to messages or compose new mail, I would like it to display a specific address in the "From:" field, instead of selecting it every time (I added my work account to Mail as well, though I forward messages to my Gmail account). So, for example, my Gmail account is "[email protected]" and my work email is "[email protected]".
    When I compose messages from the Gmail account I would like the "From:" field to display "[email protected]" instead of "[email protected]". I am able to set up Gmail web interface to do this, but have not been able to set up Apple Mail to do the same (aside from instructing it to send messages using my work server, instead of the Gmail server).
    In Lion, Mail was able to specify that address if I was replying to a messages sent to "[email protected]" but would show "[email protected]" for every new message. In ML, even replying to a message sent to "[email protected]" shows "[email protected]" in the "From:" field.
    Does anyone know how to instruct Mail to choose only "[email protected]" when replying or composing new messages?
    Thanks for your help!

    What you are describing is what is known as "articulation work". To quote Suchman, "'Articulation work' names the continuous efforts required in order to bring together discontinuous elements - of organizations, of professional practices, of technologies - into working configurations". That makes it sound better than it is.
    Ideally, your non-profit needs a decent webhost like Dreamhost that can transparently integrate with Google Mail and make the whole problem go away.
    asmystiq wrote:
    I configured Mail to use the work SMTP server to send messages from the Gmail account.
    This is what is known as e-mail spoofing.
    In the web Gmail interface, everything works smoothly.
    Yes. Google is known for ignoring laws and facilitating any kind of network traffic, legitimate or not, in order to track activity and build value for its advertising business.
    In Mail, even if the message was sent to [email protected], Mail replies show up with [email protected] in the "From:" field
    Yes. That is the way it is supposed to work.
    I also set up a rule for redirecting Sent messages to Gmail and moving the original copies to Trash on the work account. In Lion, all was well and the replies indicated [email protected] in the "From:" field and when I manually applied the rule to the Sent messages, they were sent to the Gmail account.
    That's the "articulation work" in action.
    I've looked at some of the discussion you linked (thank you for that) and found it enlighening, though I am not done reading all of it yet.
    There are a number of different issues going on. Modern e-mail is extraordinarily complicated.
    What I do now is not forward work email and keep the daily workflow focused on the Inbox of the [email protected] account, which handles replies appropriately. I then set up a rule to redirect any mail from the work account that is over a day old to the Gmail account. I then organize it on the web interface (which is not optimal, but cuts down my time spent on the web interface from "always" to once daily or so).
    You could probably improve that by creating folders in GMail from within Apple Mail. Once you move an old message from the work server to GMail where you have more room, you can have additional rules to move it around within GMail.
    The only real, definitive solution is to have more room for e-mail. You should contact your system administrator and suggest switching to GMail or Microsoft's version. Everyone hates dealing with e-mail. That is why these transparent e-mail services are so popular. Once it gets setup, all the magic happens in the name servers and all anyone ever sees is "work.org". Plus, you will likely gain some additional functionality that Microsoft Exchange supports that older systems do not.
    In the interim, the best solution is to show the "Reply-to:" field and put your "[email protected]" address in there. Replies will be directed to that address but you will still have to move everything around after receipt. You should be able to configure your "work.org" e-mail system to automatically forward all you rmail to the GMail account. Combined with "Reply-to:", that is about as good as it is going to get.
    If you need more clarification, let me know. Though I think that ML is behaving in a way that is not convenient and I don't see a way to create a hack to fix it. It seems like it would be an easy feature to add, but who knows what Apple folks are thinking...
    What you have described is e-mail spoofing and Apple doesn't support that. No legitimate internet e-mail provider should support it. If Google does, then that is Google's problem. Most other e-mail servers would not allow that and that is why Apple doesn't support it. And, in general, Apple software is simply not very amenable to "hacks".
    I have though about writing an Apple Mail plugin to automatically add a "Reply-to:" to certain e-mail messages. It will be a few months before I get time for that, so don't hold your breath.

  • How can I edit the 'from' field at e-mail receipts

    I tried to add my own name in the 'from' field in the section 'e-mail receipts', but the system won't let me edit the field. It always sticks with the standard 'from' name Adobe Forms Central. I have a Plus Subscription package.
    Please advise how to proceed. Thanks.

    Hi,
    To customize the name in the "From" field used for email receipts, you must first select an address other than "[email protected]".
    Regards,
    Brian

  • .Mac Alias "From field"

    I really like the idea of having aliases they keep you main account protected from all sorts of evil. But i have a question concerning sending mail with one of your aliases as the sender.
    When i send an email the "from" field of that email displays the full alias email address but i would like to show it my full name just like when sending mail from my regular .mac account. I have searched the forums and help files without luck. I suspect this is not possible but would like to check cause maybe i am just overlooking a setting.
    Thanks for you help. I just made the switch from windows to os x and so far i have not one single regret.
    Dirk
    iMac Intel Core Duo   Mac OS X (10.4.6)  

    Dirk,
    you can use the following AppleScript to change the full name attached to each of your .Mac alias in Mail (note that this won't affect the messages sent from the .Mac webmail interface):
    Click to open this script in your Script Editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; padding: 0.2em; font-size: 10px; width:500px">if ((get system attribute "sysv") < 4160) then -- 4160 = 0x1040 is Sytem version 10.4.0 (Tiger)
    display dialog "This script needs MacOS X version 10.4 or higher" buttons {"OK"} default button 1
    return
    end if
    set mailPlist to ((path to preferences folder from user domain as Unicode text) & "com.apple.mail.plist")
    tell application "System Events"
    activate
    repeat with eachAccount in property list items of property list item "MailAccounts" of contents of property list file mailPlist
    if (get value of property list item "AccountType" of eachAccount) = "iToolsAccount" then exit repeat
    end repeat
    if (get value of property list item "AccountType" of eachAccount) is not "iToolsAccount" then
    display dialog "No .Mac Account defined." buttons {"OK"} default button 1
    return
    end if
    try
    set theAliasDescriptions to (get value of property list item "EmailAliases" of eachAccount)
    on error
    display dialog "No .Mac aliases found in Mail's preferences." buttons {"OK"} default button 1
    return
    end try
    repeat with eachAlias in theAliasDescriptions
    set |name| of eachAlias to text returned of (display dialog "Please enter name to be used for the .Mac alias corresponding to the address
    " & |alias| of eachAlias default answer |name| of eachAlias)
    end repeat
    set value of property list item "EmailAliases" of eachAccount to theAliasDescriptions
    if process "Mail" exists then display dialog "You need to restart Mail for the changes to take effect." buttons {"OK"} default button 1
    end tell
    </pre>
    Andreas

  • From field being changed - How?

    This is probably going to be a rather dumb question, but here it goes. My company's CEO received a SPAM message the other day. The concern he had was that the message was not only addressed from him, but it appeared as though the sender was him also.
    I was able to find the message through Ironport Mailflow and saw that the message came into the Ironport device with a from field of ;
    Sender: [email protected]
    Recipient(s): [email protected]
    Subject: Your Featured Products of the Week?
    Message-ID Header: 20090318140646.3977.qmail@OMAR1
    So how does a Spammer get the message to change the sender field information to reflect the same as the To field?
    We are using Lotus Notes (Domino) for mail. They are only accepting messages from our Ironport devices.

    It's because the envelope sender doesn't necessarily have to be the same as the header('From') email address. For legitimate mail, this doesn't come up, but spammers use this to try and bypass spam filters and such.
    For example, here is what a potential smtp conversation between the Internet and the Ironport appliance:
    (sender) helo
    (receiver) 220 ok
    (sender) mail-from: [email protected]
    (receiver) 250 ok
    (sender) rcpt-to: [email protected]
    (receiver) 250 ok
    (sender) data
    (receiver) 334 go ahead, end with "." on it's own line
    (sender) From: [email protected]
    (sender) To: [email protected]
    (sender) Subject: Do you want to buy a brand new Rolex watch?
    (sender)
    (sender) Go to this website to buy it, http://newrolex.com
    (sender) .
    (receiver) 250 message accepted
    What happened above is perfectly legal. It is RFC compliant and it's not breaking any rules.
    Now, what I would recommend to counter this is the following:
    1. Would there be any scenario where both the header("From") and the header("To") would be the same domain, in this case, "ourcompany.org".
    When two co-workers send mail to one another, should it stay on the mailserver and never hit the Ironport appliance.
    If this is the case, we can implement an incoming content filter like the following:
    Same_from_to_domain_in_headers_quarantine:
    Conditions (All of the following must match):
    header("From") == "ourcompany.com$"
    header("To") == "ourcompany.com$"
    Actions:
    quarantine ("Policy")
    This kb article may help you with content filters.
    What conditions / actions are available to content filters?
    http://tinyurl.com/jpqwl
    This is probably going to be a rather dumb question, but here it goes. My company's CEO received a SPAM message the other day. The concern he had was that the message was not only addressed from him, but it appeared as though the sender was him also.
    I was able to find the message through Ironport Mailflow and saw that the message came into the Ironport device with a from field of ;
    Sender: [email protected]
    Recipient(s): [email protected]
    Subject: Your Featured Products of the Week?
    Message-ID Header: 20090318140646.3977.qmail@OMAR1
    So how does a Spammer get the message to change the sender field information to reflect the same as the To field?
    We are using Lotus Notes (Domino) for mail. They are only accepting messages from our Ironport devices.

  • HT5624 Why in my email ( the one on my ipod5 that I use with my apple ID) when I get emails about my use of my apple ID to use a service in the from field it has my fathers name and when I click on it it shows his contact info ????

    Why in my email ( the one on my ipod5 that I use with my apple ID) when I get emails about my use of my apple ID to use a service in the from field it has my fathers name and when I click on it it shows his contact info ???? I also set up my apple ID with a new email account and also I signed up for iCloud but used the same apple I'd email and password but it gave me a I cloud email! I did activate the favorites in my email . Noticed the from field has my fathers name and contact and it is a notification about me using my apple ID to sign in to FaceTime! Something is messed up, not sure how or why???

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

  • Mac Mail displaying incorrect name to the "To" and "from" field of all of my Hotmail emails

    When Hotmail is viewed via Mac Mail, the To: field displays the recipient’s name & Hotmail address. There is a serious problem with my incoming Hotmail … instead of displaying my name and Hotmail email address it displays my friend’s name (initials are RB) alongside my Hotmail email address ... for every Hotmail email that is sent to me no matter who emails me.  My contact/address book entries for my name and my friend are correct in Mac Address Book and Hotmail Contacts. Very strange.
    Mac Mail seems to be adding recipient name to the To:  field of all of my Hotmail emails & putting in the wrong name next to my email address!  I say this because the officialwww.hotmail.com site only displays a recipient email address in the To:  field (no name appears).  This error is only happening in Mac Mail with my Hotmail emails (not happening with my Gmail and Yahoo emails).
    How/why is a wrong name/my friend's name displayed next to my email address in every Hotmail message I view in Mac Mail?
    This error is only occurring in incoming Hotmail messages addressed to me.  Emails that I send using my Hotmail show my name & email address correctly in the From field.
    Thank you

    Mail has Smart Addresses that will display the name and email address under Preferences > Viewing, but your issue sounds like a different issue.
    Did you setup an outlook.com alias in Outlook.com when it made the transition? If not, add an alias and see if that helps. You can also test sending from the outlook.com alias to see if the results are as expected.
    For example if your Hotmail email is [email protected] then setup an alias [email protected]
    If that fails, test in a new User.
    Create a new User in System Preferences.
    Log into your new User.
    You can skip the Apple ID setup unless you are testing iCloud.
    Select Don't Sign in > Continue > Skip
    Open Mail and enter your Hotmail account.
    Does the problem go away?

Maybe you are looking for