Method Community

 

MethodAPIActionSendEmailV2 with Attachment

Last post 12-06-2012 12:25 PM by Matt. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-28-2012 9:48 AM

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    MethodAPIActionSendEmailV2 with Attachment

    I am unable to include an attachment using MethodAPIActionSendEmailV2.

    For testing purposes, I tried using "http://www.methodintegration.com/documentation/MethodInitialSetupGuide.pdf" as the strAttachment parameter. The email is being sent fine, just no attachment included.

    Any ideas on what I am doing wrong?


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 11-30-2012 8:34 AM In reply to

    Re: MethodAPIActionSendEmailV2 with Attachment

    Hi Matt,

    I see the problem you are referring to....I'll let you know when the fix is available

    Dave


  • 11-30-2012 12:08 PM In reply to

    Re: MethodAPIActionSendEmailV2 with Attachment

    Hi Matt,

    This should be fixed....simple C# examples below

    lblMethodAPIActionSendEmail.Text = MethodAPI.MethodAPIActionSendEmail(CompanyAccount, Login, Password, To, FromAddress, FromName, "", "", Subject, Body, "", "http://www.methodintegration.com/documentation/MethodInitialSetupGuide.pdf", strServerAddress,strServerPassword, strServerUserNamee);

     

    lblMethodAPIActionSendEmailV2.Text = MethodAPI.MethodAPIActionSendEmailV2(CompanyAccount, Login, Password, "", To, FromAddress, FromName, "", "", Subject, Body, "High", "http://www.methodintegration.com/documentation/MethodInitialSetupGuide.pdf", strServerAddress,strServerPassword, strServerUserName));  

    Dave

     

     


  • 11-30-2012 12:51 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: MethodAPIActionSendEmailV2 with Attachment

    Thanks Dave, that did the trick.

    How do I include more than one attachment?


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 12-06-2012 11:00 AM In reply to

    Re: MethodAPIActionSendEmailV2 with Attachment

    Answer

    Hi Matt,

    Sorry about the delay.

    In a word....with existing functions you can't but....but what you can do is use the new function MethodAPIActionSendEmailV3, and pass in a string array of urls.

    Simple C# example below

     string[ arrAttachment = new string[ { "http://www.methodintegration.com/documentation/MethodInitialSetupGuide.pdf", "http://www.methodintegration.com/documentation/MethodAPIv2_0_Documentation.pdf" };

    lblMethodAPIActionSendEmailV3.Text = MethodAPI.MethodAPIActionSendEmailV3(CompanyAccount, Login, Password, "", To, FromAddress, FromName, "", "", Subject, Body, "High", arrAttachment, strServerAddress,strServerPassword, strServerUserName));

     

    Dave


  • 12-06-2012 12:25 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: MethodAPIActionSendEmailV2 with Attachment

    Awesome! Thanks!


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


Page 1 of 1 (6 items)