Sputility send mail send multiple mails while page freshing in sharepoint web part

hi ,
I am using sputility send mail method to send emails I have configure every thing . when page refreshing I am getting duplicate mail
Srinivas

You can solve that by storing the fact that you've already sent the mail in session state, or client side using sessionstorage (https://code.google.com/p/sessionstorage/)
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com

Similar Messages

  • How to send mail to multiple mail address using mail pkg?

    Hi All,
    How to send a mail to multiple mail addresses using Mail package. I tried by giving multiple mail addresses separated by semicolon(as well as comma) to the To field of the Mail Package structure, it gives Invalid Address error in Message Monitoring. But if i give a single mail address it works. How to address multiple email addresses.
    Regards,
    Sundar

    HI,
    With semicolon for mulitple email ids it worked for me (long back). Anyway cross check with this aprt of SAP help-
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Regards,
    Moorthy

  • Invoice by e-mail to multiple mail ids

    Hi,
    I have a requirement to send the sales invoice by e-mail to multiple mail id's.
    Mail ids will be maintained in the customer master record --> General Data -- > Contact Person TAB.
    Please help me inconfiguring this scenario in detail.
    Thanks
    Parveen

    Hi
    In our system we are sending the same invoice by e-mail to two partners. In the customer master we have maintained one e-mail adress on the adress screen and we have maintained another e-mail adress in a contact person. The contact person is assigned to partner role Z0.
    In the access sequence for the invoice print we have the same key combination twice, the first one without the exclusive flag. This means we can create master data for the same customer twice using partner role RE and Z0 and the invoice is then send to the two adresses.
    /Torben

  • How can I forward a mail to multiple mail accounts that I have in a group without having to add them one by one?

    How can I forward a mail to multiple mail accounts that I have in a group without having to add them one by one?

    I don't think that you can. Yahoo's basic email features do not include mail forwarding.

  • Custom SharePoint Master Page with Content Editor Web Part.

    Hi All,
    I have created a custom SharePoint Master Page to apply within my SharePoint Site and it was a success.
    When I want to add the content I have to use the script editor web part and add HTML snippets. Then the styles will reflect correctly. But when I use content editor web part some of the styles do not reflect. Lets assume that if I want to add a H2 with the
    custom color, the color do not show in the ribbon. And how SharePoint know that this is an <h2> and reflect the other styles like padding, margin and so on.
    Please can someone help me to solve this.
    Thanks and regards,
    Chiranthaka

    Hi,
    From your description, my understanding is that you want to add CSS code in your customized Master Page with content editor web part.
    I tested your issue in SharePoint Designer, and I added CSS code successfully.
    I accomplish your requirement with steps below:
    Add a content editor web part in a list and add some CSS code in the web part.
    Open SharePoint Designer, enter the master page.
    Insert a content editor web part under INSERT tab in the Ribbon.
    Open the list that have edited in step1 in the SharePoint Designer.
    Copy code from the list to the Master Page as the screenshot below.
    The screenshot below is my result:
    In addition, why do not you add CSS code just with <style> tag in your page? Just add CSS code as below(in this method, you do not need any web part.):
    <style>
    h2{
    background-color:green;
    </style>
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Mail Adapter - Multiple mail ID and multiple mail servers config.

    Hi All
    I am doing BPM synch scenario in which i get the response from SAP box and send the response via email adapter. I am using mail.xsd and doing mail config. in message mapping. However in the TO field i am able to give only one email ID. If i give multiple email ID's mail is not received. I tried comma and semi-colon as separator. Still not working? I have two questions in configuring TO option:
    1) How to send to multiple id's? I am using Lotus Notes.
    2)How to send to multiple mail servers? I have to send to Lotus Notes id's and outlook express id's also simultaneously.
    Thanks for your help in advance
    Warm Regards
    Samuel

    Hi,
    Please find here with some observations about it,
    1) How to send to multiple id's? I am using Lotus Notes.
    If you have specified an IMAP server under URL, the message is saved in the specified folder but is not sent to the receiver specified under To.
    Then even if Under To, you had specified the e-mail address that will receive the message would be separated with a semicolon. It will not work.
    Please verify about it .
    The below link will also help you to verify if there is anything missing
    Mail Adapter (XI) - how to implement dynamic mail address
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    BPM:Single Sender and Multiple Receivers based on synchronous
    exchange(switch) part-1
    /people/prasadbabu.nemalikanti3/blog/2006/03/10/bpmsingle-sender-and-multiple-receivers-based-on-synchronous-exchangeswitch-part-1
    Generic Message Interface in SAP Exchange Infrastructure Email Integration Scenarios
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00d5a235-4803-2a10-f682-889d67c69975
    (If your using Alert Framework then)
    If you want to send it to multiple email addresses and all email addresses are user of XI then you can define "Role" and attach that role to everyuser and make this role as receipent of alert .
    Thanks
    Swarup
    Thanks
    Swarup

  • Send an email alert when an item is added to web part from list.

    Hello, I'm a SharePoint 2010 newbie and have been tasked with a small project and would greatly appreciate any help. We have a web part on our home page that is populated from a query source list from one of our department's sites.  We would like
    for an alert email to be sent out when it hits the web part.  I was able to use the Alert Me feature on the list to send out an email however the alert had links to the source site page and we only want to have a link to the new item. 

    Hello,
    Do you have SP designer installed in your machine? If yes then create simple list workflow using designer then you can customize the email body as per your business need.
    Here is link to add current item link in email body:
    http://www.enjoysharepoint.com/Articles/Details/sharepoint-designer-2010-workflow-email-link-to-edit-item-or-20796.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Sharepoint web part Page Load issue

    Hi ,
     We are developing Sharepoint 2013 Integration application, We are fetching the data from third party application and dumping data into sharepoint List for offline analysis.
    Synchronization steps
    1) fetch data from third party application
    2) delete the old data
    3) Insert the new data in List
    4) Show the data in custom web part 
    synchronization is taking lot of time, is there any profiling  tools , we can measure the performance of method , network traffic which is causing the issue.
    We need to load the page less than second
    Regards
    Pat

    Hi,
    Per my understanding, you might want to improve the performance of your web part page.
    A suggestion is that you can create a custom Timer job in the server side which handles the data fetching and updating in a list in the backend periodically, the burden
    on the custom web part would get decreased.
    About create and deploy Custom Timer Job Definition in SharePoint Programmatically:
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Different query for same view showing on different page as list view web part

    Hi all,
    If you have three pages and want to add Documents library as list view web part to these three pages with different query (Programmatically), Do you need to create three different views for Documents library or it is possible to have different query when
    I add the list view web part to the page?
    thanks and appreciate all kind of advice.

    When you add a List View Web Part to a page, SharePoint actually copies the selected view query into the Web Part itself. For example:
    You create a custom view on a list called "Mede71's View" and you configure it only show the Title column
    You add a List View Web Part to a page and update the settings to use the "Mede71's View"
    You go back to your list and change "Mede71's View" and add the "Modified Date" column
    Your List View Web Part will not reflect this change because in step 2 the Query from the view was copied into the List View Web Part
    When you programmatically add the List View Web Part, you can either assign it to an existing view or supply the query directly. If you want to instruct users to be able to add their own web parts pointing to those views in the future, I would recommend
    creating the views first.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Custom Page Layout and strange web part behaviour

    Hi.
    I've added some additional web part zones to a new table in a custom page layout but when I deploy the page layout and apply it to an existing page, if I add a CEWP to the new zones the ribbon doesn't respond and I can only modify the CEWP if I move it to
    one of the other OOTB zones on the page.
    I can move the CEWP back and forth between the zones but the ribbon only reacts and allows me to really customize the web part once it's been moved to one of those original zones.
    I can add any web part to the new zones but the CEWP, when initially added to the page, just shows the "Click here to add new content" text/link and clicking it does nothing.
    The strange thing is that if I select and then copy that text/link, the text disappears and I can type in the CEWP.
    Adding a CEWP to one of the original zones just works. I click the link, the text disappears and I can start editing.
    Have I missed something in the code on the customized page layout or is this just a bug or some other quirk?
    Thanks peeps.
    N03L.

    Hi,
    This depends on the IView properties, so open IView properties in property editor and play around with
    Height properties like Height Type, MaxAutoHeight, MinAutoHeight.
    Regards,
    Praveen Gudapati

  • JAVA mail API multiple mail address

    Need some help please... I have a file I include in my form info.jsp that has this line
    String apprteam [] = {"[email protected] [email protected]"};
    then in my form.jsp
    <input type="hidden" name="to" id="to" value="<%=apprteam%>">
    then on my mail page I get those parameters
    String to [] = request.getParameterValues("to");
    Properties props = System.getProperties();
    props.put("mail.host",host);
    Session mailSession = Session.getDefaultInstance(props,null);
    Message msg = new MimeMessage(mailSession);
    msg.setFrom(new InternetAddress(from));
    int toCount = to.length;
    InternetAddress[] toAddrs = new InternetAddress[toCount];
    for(int i = 0; i < toCount; ++i) {
    out.print(toAddrs);
    toAddrs[i] = new InternetAddress(to[i]);
    I tried adding the out.print to see if I could see the emails, but when the page compiles I receive the below .......
    javax.mail.internet.AddressException: Missing ']' in string ``[Ljava.lang.String;@144569b'' at position 27
    I've been over it several times, obviously I'm not referencing the array correctly, but I don't see whats wrong.... anyone have any ideas?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    value="<%=apprteam%>">It looks to me like that calls the toString() method of apprteam and uses the result as the value. And since apprteam is an array of strings, its toString() method returns something like "[Ljava.lang.String;@144569b". No doubt you were expecting it to return something more user-friendly, like the contents of the elements of the array concatenated together somehow.
    And why are you using an array that contains only one String? If you had used a String instead of an array of Strings, the problem wouldn't arise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Mail: Consolidate multiple mail folders

    I have been using macs for as long as I can remember. I used to use Eudora and eventually migrated to OS X Mail and imported my data. Needless to say I have a lot of emails now. The problem is sometime last year I had an issue with OS X Mail and made a couple backups of my mail folder data (poorly planned). Now I have two or three copies of mail folders which do not contain a full set of data.
    Does anyone have suggestions on how to consolidate the multiple OS X Mail data sets into a single set? I don't care about the folder structures I have. I just want to ensure I have a full set of received and sent mail with as few duplicates as possible.
    I tried importing all folders into a fresh 10.9 Mavericks install using Mail but for whatever reason (5 days later...) it almost doubled the size of the original folders. Normally, I wouldn't care as I had a 1 TB disk in my MBP. But I just got a new Haswell MBP with just a 256 GB drive. Space is at a premium.
    I searched the internet and even the discussions here without much luck. There was reference to an AppleScript that would highlight duplicates but that tool doesn't seem to be working any longer.
    Thank you,
    Jonathan

    Thanks for replying. Sorry, I didn't explain what I did clearly enough. I literally made copies in the Finder of my ~/Library/Mail folder... so I have three folders of roughly 20 GB (yes, 20 GB!!) each at different stages of completeness. I could MAYBE just use one but I'm not comfortable doing that quite yet if there is a different solution. When I imported, Mail took 5 days and the new ~/Library/Mail folder is 145 GB. I haven't a clue what it did to inflate it so much.
    I'm probably a crazy hoarder (ok, definitely) but when I have emails back to 1996 or something it's hard to not at least try for full population.
    I tried Mail Store Home (suggested by Steve Gibson @ GRC.com) and it was great. It pulled in a ton of emails (into proprietary database IIRC) and I exported to EML. But OS X Mail imports in a fashion that creates a zillion folders. Also not helpful.
    I'm also dealing with 201,000 emails, manual anything isn't ideal... I'm absolutely a hoarder.

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

  • How to send an e-mail to multiple sharepoint groups in a SP2013 workflow

    I'm trying to create a workflow in designer 2013 that sends an e-mail to multiple users bases on a few sharepoint groups.
    However if a user is member of 2 sharepoint groups he/she will appear twice in the "to field" of the e-mail.
    Any suggestions on how to solve this would be much appreciated.
    Thank you

    Hi Jan,
    According to you description, my understanding is that you want to send email to user who exist in two groups once using workflow.
    If a user exist in the group, the email workflow will send the mail to the member in the group, it is reasonable.
    As a workaround, I suggest you send mail to the specific user independently and then create a new group without the repeat user, then you can send mail to the new group.
    More information:
    Create new user group in SharePoint 2013:
    http://plexhosted.com/billing/knowledgebase/279/How-to-create-new-SharePoint-2013-users-group-and-add-users-to-it-.html
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber
    Support, contact [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Sending Mail to Multiple To addresses

    Hi!
    I want to know how to send mail to multiple mail addresses.
    Thanks!

    Hi sowmiya,
    This code would do the stuff u wanted
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class MailExample {
    public static void main (String args[]) throws Exception {
    String host = "";
              String from = "[email protected]";
              //String to = "karthik@";
              String conf_email="[email protected]";
              String temp_pwd="tererere";
              String recipients = "[email protected],[email protected]";
              // Get system properties
              Properties props = System.getProperties();
              // Setup mail server
              props.put("mail.smtp.host", host);
              // Get session
              Session sessionobj = Session.getDefaultInstance(props, null);
              // Define message
              MimeMessage message = new MimeMessage(sessionobj);
              // Set the from address
              message.setFrom(new InternetAddress(from));
              // Set the to address for a single recipient
              // message.addRecipient(Message.RecipientType.TO,new InternetAddress("[email protected]"));
              message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(recipients, false));
              // Set the subject
              message.setSubject("test");
              // Set the content
              message.setText("test");
              // Send message
         Transport.send(message);

Maybe you are looking for