Mail to Salesperson

Scenario:
I am trying to send a mail to the "Sales Person" when new lead is created. Here "Sales Person" and "Owner" are different. The worlflow I have written with Trigger Event "*When new record Saved*" and Worlflow Rule condition is [<LeadOwner>] <> [<SalesPersonFullName>] *(LeadOwner is not equal to salesperson)*
*1.* Here the mail is shooted to Salesperson when the owner and salesperson are different , where it is happening.
*2.* Here the mail is Shooted to Salesperon when the Owner and salesperon are same, where it should not happen according to condition. Does is miss anything or I tried in othe ways also with IDs but no.
please suggest me the solution.
Thanks in advance.
Regards,
Ratan
Edited by: user10685244 on Oct 23, 2009 4:24 AM
Edited by: user10685244 on Oct 23, 2009 4:25 AM

Try comparing
          &#91;<SalesRepId>] &lt;&gt; &#91;<OwnerId>]

Similar Messages

  • Php form and mail handling

    I am trying to create a php form and I can get it to spit out the information from the form but I cannot seem to get it to send the result as an email.
    This is probably something really simple and I am totally missing it.
    Here is the form:
    <form method="post" action="sendail.php">               
      <?php
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
      <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
      <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
      <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
            <p>I need:<span class="redStar">*</span>
              <input type= "radio" name = "need" value = "service" />service.
            <input type= "radio" name = "need" value = "sales" />to contact a salesperson.
            <input type= "radio" name = "need" value = "literature" />to have literature sent to me.<br />
            Name:        <input type = "text" name = "name" size = "30" />
            <span class="redStar">*</span><br />
            Title:           <input type = "text" name = "title" size = "30" /><br />
            Company: <input type = "text" name = "company" size = "30" /></p>
            <p>Address 1: <input type = "text" name = "address1" size = "30" />
              <span class="redStar">*</span><br />
            Address 2: <input type = "text" name = "address2" size = "30" /><br />
            City: <input type = "text" name = "city" size = "30" />
            <span class="redStar">*</span> State: <input type = "text" name = "state" size = "3" />
            <span class="redStar">*</span> Zip: <input type = "text" name = "zip" size = "11" />
            <span class="redStar">*</span></p>
           <p>Email:   <input type = "text" name = "email" size = "30" />
             <span class="redStar">*</span><br />
            Phone: <input type = "text" name = "phone" size = "30" />
            <span class="redStar">*</span> </p>
            <p><input type = "submit" name = "submit" value = "Submit" /></p>
            <p><span class="redStar">*</span> These blanks must be filled in</p>
    </form>       
    and here is the page that handles the form (with the exception of the referring page, and other environmentals:
            <?php
            $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
            $need = $_POST['need'];
            $name = $_POST['name'];
            $title = $_POST['title'];
            $company = $_POST['company'];
            $address1 = $_POST['address1'];
            $address2 = $_POST['address2'];
            $city = $_POST['city'];
            $state = $_POST['state'];
            $zip = $_POST['zip'];
            $email = $_POST['email'];
            $phone = $_POST['phone'];
    if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
    echo "<h2>Use Back - Enter valid email</h2>\n";
    $badinput = "<h2>Your form was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($name) || empty($email) || empty($address1) || empty($city) || empty($state) || empty($zip) || empty($phone)) {
    echo "<h2>Use your Back button - fill in all starred fields, your form was not submitted.</h2>\n";
    die ("Use back! ! ");
    $todayis = date("l, F j, Y, g:i a") ;
    $subject = Contact_From_Website;
    $message = " $todayis [EST] \n
    From: $name ($email)\n
    Title: $title\n
    Company: $company\n
    Telephone: $phone ($phone)\n
    Address: $address1\n
    $address2\n
    City: $city\n
    State: $state\n
    Zip: $zip\n
    Phone: $phone\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    $from = "From: $email\r\n";
    mail("[email protected]", $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
    /* This is the part that emails everyone and is commented out for testing
    if ($need = "service") {
        mail("[email protected]", $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
    mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
        if ($need = "sales") {
        mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
            mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
        if ($need = "literature") {
            mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
    mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
            ?>
            Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $name ?> ( <?php echo $email ?> )  <?php echo $title ?> <?php echo $company ?> <?php echo $phone ?> <?php echo $address1 ?> <?php echo $address2 ?> <?php echo $city ?> <?php echo $state ?> <?php echo $zip ?>
    <br /> You have requested <?php echo $need ?>
    <br /> Your IP Address has been recorded for your safety.
    <?php echo $ip ?>
    You can see where I am trying to go with this. I want to use the $need variable to determine where the email is going to go (two people in each case). But I am testing this script and cannot get to send me an email without any if statements.
    Where have I gone wrong?

    60251977 wrote:
    > I'm considering switching to Wordpress but have started
    building a site in
    > Dreamweaver, and am not especially keen on having to
    learn an entirely new
    > program.
    If you're not keen on learning, you might want to reconsider
    your plans.
    Creating a simple web page is easy, giving many beginners the
    false
    impression that website development is something anyone can
    do without
    acquiring specialist knowledge.
    > I want to create a simple "Add Comment" form so that
    when a visitor to my site
    > wants to comment, he can do so, press submit, and the
    page refreshes with his
    > comments inserted. Just like a blog.
    Yep, sounds simple enough, but so is turning the ignition key
    of a car.
    What you're ignoring is the underlying technology that not
    only makes it
    work, but makes it work safely. WordPress does all of this
    for you
    straight out of the box. To build it successfully in
    Dreamweaver
    requires a knowledge of PHP, MySQL, and SQL.
    > According to the Pickaweb FAQ, the path to PHP is
    "/usr/bin/php"
    If PHP is enabled on your site, the path to PHP is
    irrelevant.
    > If my site was called elephantlike.co.uk, what would I
    enter into the Action
    > field of the form wizard?
    > Would this make my form work? Or is there other stuff I
    need to know?
    What you enter in the Action field is the path to the script
    that
    processes the form input. If you're willing to learn the
    basics of PHP,
    MySQL, and SQL, you can create a comment form on your site
    with
    Dreamweaver. However, you need to be aware of security
    issues, such as
    cross-site scripting and dealing with spam. What looks simple
    at first
    glance is actually more complex. It's not rocket science, but
    it does
    involve a learning curve.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Create newsletter with Pages and send out via mail (not attachement)?

    I have a question: I have created a newsletter in Iworks Pages. How can I send this out via mail as a newsletter ? So not as an attachment? I know Microsoft Publisher can do it with 1 click, but I don't want to move to MSFT. Please let me know, I also have Indesign etc. Createion of the newsletter is easy with my Apple, but then it stops....and gets worse the MSFT....

    KOENIG Yvan wrote:
    PeterBreis0807 wrote:
    +Menu > File > Print > PDF (button bottom left corner) > Mail PDF+
    As far as I know, only single page PDFs will appear directly in the mail and they will do only in some mail applications.
    No it is multipage. Can't test for all appliactions but it was both sent and received on my system/Mail as the 3 pages in the document.
    In other apps and always if the PDF contain several pages, it will be an attachment : what was rejected by the OP.
    When Helena Rubenstein arrived in Australia she first worked in David Jones, our version of Harrods.
    A woman approached another salesperson and asked "Do you have a brown cashmere top?"
    To which the salesperson replied "Sorry no madam"
    Helena stepped in and asked "Would madam like a blue or black one instead?" and made the sale to the lady who wanted a top. It seemed that was more important than none at all.
    There is a lesson to be learnt from this.
    Peter

  • Mail wont open and restart cancelled by mail

    when I try to open my e-mail it wont open - it just doesnt do anything.  When I try to download updates or shut down computer it says it is intereupted by mail.  Help

    Force Quit the Mail Application
    Click the Apple Logo in the top left corner of the screen
    Click "Force Quit"
    Select the MAIL application
    Force Quit the app
    After the application is quit then you should be able to restart your computer.
    The Application is fully quit when the is no little glowing dot under the application icon.

  • How can I disable sending from one Mail account?

    Hello. I have a gmail account that I use to subscribe to various newsletters and accounts. So it's essentially a read-only account for me. But I too frequently accidently send mail from that account. Is there a way to prevent mail from being sent from that account?

    I want to do the same thing as the OP.  I have tried making outgoing server none. And checking "always use this server so it prompts me to edit the message so that I manually select a different address to send from inthe drop down list. And selecting a different account for composing.  Actually, all my outgoing emails keep coming from the one account I am attempting to disable.  Got any other ideas?

  • How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?

    How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?
    Have an Exchange mail account setup and accessible in my mail on iPad... however my kids use it and i would like to restrict them from accessing this specific portion of the device.  I tried viewing restriction options and do not see that i can apply a restriction specifically to Mail.  Thanks for your help.

    Not a feature of iOS. Check the AppStore to see if there are other
    mail apps that allow passcode protection.
    Or use Safari to log onto your email via a web-based interface and
    enter your credentials each time. A bit slower, but the kids will
    not know the details to login.

  • How can I move an e mail account from one family pack to another

    I have an e mail address (not main family pack e mail address) and I would like to move it to another family pack. Is this possible and if so how?
    Thanks

    Caroline12, Welcome to the discussion area!
    I believe that your question is about a Mobile Me family pack account. If that is true, I believe that the answer is no.
    But your probably should post your question in the Apple.com > Support > Discussions > MobileMe discussion area.

  • How can I display not only one account's mail but all in the central inbox?

    I am changing from OSX (machines with OSX 1.8.5 and Mavericks) mail to Thunderbird.
    However, one feature of OSX Mail I can't find in Thunderbird or have overseen it:
    I use several mail accounts, that OSX Mail is showing me on top level in one general inbox.
    Below that level, I can of course jump into the different accounts if needed to read mails only related to that account.
    Is there a similar view in Thunderbird?
    Thanks for any help
    Christoph

    http://kb.mozillazine.org/Global_Inbox

  • Filename in sender Mail Adapter

    Hi Experts,
    Brief about Scenario:
    Invoice generated with PDF format in R/3 system and send to  mail box.  XI  pick that file from mail box  and deposited in SFTP Server.   
    Landscape in XI end.
    Mailbox - - -  XI 7.0 - - - SFTP
    The file name generated with CompanyCode_InvoiceType_InvoiceNumber.PDF from R/3 system. So that Same file name should be deposited in SFTP Server  . Here CompanyCode and InvoiceType are static and invoiceNumber generated dynamically with PDF format.
    My question is How to get file name from mail box.
    Thanks in advance.

    Hups. I forgot what was your main problem
    To get attachment file name you can try to implement you own adapter module as described [here|http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Get%20Attachment%20Name?bc=true]:
    I found it in this [thread|Need to get the Mail attachment name as it is to the receiver file adapter;.
    Please check that thread. The question is "not answered" but the last post states it was solved that way.

  • Cannot send email from yahoo mail client

    I cannot open or send or attach anything to my email in the yahoo mail.  I know there's nothing wrong with the email because it works on my laptop, just not on my computer.  Could there be a setting problem, or a cookie problem or something?
    I also cannot open Bonjour to see my printer settings.  Everything was working fine yesterday.

    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 Mail through .mac account

    I have recently opened a .mac account and started using the email service. It works fine online however I am having difficulty sending messages through the Mail application in Tiger.
    Whenever I attempt to send a message, a dialog box appears saying "Cannot send message using the server smtp.mac.com".
    I have tried looking at the setting in preferences. I have deleted and .mac a/c setting in Mail and re-set them up, all the problem persists.
    Please help!

    Hello David.
    Who is your ISP used for connecting to the internet and are you accessing an email account snd SMTP server in Mail provided by your ISP?
    If so, can you send messages with the email account and SMTP server provided by your ISP?
    Most, if not all ISPs now block the use of SMTP servers that are outside of their network (or not provided by the ISP used for connecting to the internet) on Port 25 which is the standard port used for SMTP servers. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless.
    These restrictions are part of an overall effort to prevent spam emanating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings below for the .Mac SMTP server.
    Enter 587 in place of 25 in the Server Port field and when finished, select OK to save the changed setting.
    Test if this resolves the problem.
    If not and you are accessing an email account and SMTP server in Mail that is provided by your ISP used for connecting to the internet, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.

  • Cannot send email from the Mail App?

    I've had an izymail subscription for 1 year and just renewed it last week. I could never send an email from my Mail App without a window popping up stating "izymail cannot connect to the server" and the sending bar (along the bottom of the screen) just freezes and will not send.
    I've a Hotmail account linked up to izymail. Anyone know how to fix this problem?

    I fixed my problem - I deleted my email account on my iPhone, then tried to setup a new account. I had a few problems setting it up. It wouldn't recognize the incoming or outgoing servers and I lost my email altogether for a few hours. Then I changed every setting possible and finally figured out that I had 2-3 "Other SMTP Servers" as well as my "Primary Server". Once I deleted the Other SMTP Servers, my email worked and i'm able to send emails now!
    I also think changing the "Server Port" number helped solve my problem also, and making sure "Use SSL" was turned off.

  • Cannot send email from outlook 2011 (Mac) on public networks but can send via  Mac Mail

    I cannot send mail with Outlook from anywhere other than my work or home network, will not work even when accessing 4g with my phone hotspot; very frustrating. I am using Yosemite & Macbook Pro (2012). if i use the Apple Mail everything works fine so I can only assume it is a setting on Outlook?

    Update - I now have it working.
    am not really sure what exactly fixed it.
    I changed a lot of things but my setup now has the following which I think fixed.
    outgoing server  - p06-smtp.mail.me.com
    override default port checked - port now 587
    on more options button changed it to "use incoming server info".

  • Cannot send email from mail after moving to iCloud

    I have just moved to iCloud and now I cannot send email but can still receive email

    Hi Judy,
    Problem solved.
    Go into Mail/Acounts and delete you iCloud account.
    Now add a new account and type in your details for MobileMe/iCloud.
    It should now work. O noticed the default server name is different.
    Hope this helps.
    Yours,
    Charlie

  • Why my iphone 5s voice mail answer call first and my iphone second.

    why my iphone 5s voice mail answer call first and my iphone second.

    Hello celazopdef,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning cellular issues:
    iPhone: Troubleshooting issues making or receiving calls
    http://support.apple.com/kb/TS3406
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

Maybe you are looking for

  • Can I back up a PC and a Mac using the same Time Capsule?

    I'm trying to set up a PC and a Mac to backup on Time Capsule, but can't seem to get the PC to back up.  Does anyone know if it is possible.  My Mac works fine but I would like to also back up the PC.

  • Can't use UTF-16 encoding with XML Parser for Java v2.

    This is my XML Document: <?xml version="1.0" encoding="UTF-16" ?> <Content> <Title>Documento de Prueba de gestin de contenidos.</Title> <Creator>Roberto P     rez Lita</Creator> </Content> This is the way in which i parse de document: DOMParser pars

  • Virtual column in a View contains null

    Hi experts ! I have created a virtual column in one of the database tables. Now when i try to create a view that is based on a select statement with multiple joins, all columns in view are correct except virtual one. it is all null. can anyone please

  • SAP PI calling the webservice generated through BRF+

    Hi All, The scenario is SAP ECC(IDoc) --> PI --> SAP MII . The data coming from ECC in the IDoc will be in a third party format, but we want MII to receive data in SAP format. For this we have decided to use BRF. I want to know that how can I use the

  • Output device for MB51 List

    Hello Experts! Does anybody know how can I find to which output device a user sends the list he gets from MB51? Regards, Ileana