Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sritchie 48 posts 80 karma points
    Oct 05, 2009 @ 05:57
    sritchie
    0

    Doc2form email with attachments (not saved to node)

    Hi guys,

    I've noted a couple of topics which danced around this issue, but I haven't actually found a solution to this one.

    I'm using Umbraco 4.0.2.1

    I've got a client with a positions vacant job section on their website & I'm wanting to use Doc2form to send the application with 2 attachments (ie. application letter + Resume) via email. I don't want the docs saved to a node, just emailed as attachment.

    I can't seem to get this working at all - any suggestions?

    Email works fine - but I can't seem to get the attachements sent with it.

    Here's my macro below:

    <form runat="server">        

    <umbraco:Macro DocumentType="1167"
    TabName="jobseeker"
    PageTabs="0"
    HideTabNames="0"
    ShowDescriptions="0"
    RequiredText=""
    SubmitButtonText="Submit"
    PreviousButtonText="Prev"
    NextButtonText="Next"
    TextOnSubmit="Thanks for your submission."
    RedirectToNode="1154"
    StorePropertiesInCookies=""
    SendEmailResponse="1"
    ResponseSubject="Your application has been received"

    ResponseMessage="Hi [firstname],

    Your submission has been received. We will review your application shortly"
    ResponseEmailFieldAlias=""
    ResponseCopyTo=""
    EmailForm="0"
    FormSubject="You have received a new website Jobseeker Submission"
    FormMessage="
    You have received a new website Jobseeker Submission

    Applicant's Details are below:

    Name:    [firstname] [surname]
    Email:    [email]
    Phone:    [phone]

    Address:
    [streetaddress]
    [suburb]
    [postcode]

    Comments:
    [comments]

    Please Review Application and respond."
    FormToEmailAddress="[email protected]"
    FormFromEmailAddress="[email protected]"
    UseAjax="0"
    DefaultValueNode="1168"
    Alias="Doc2FormEmail"
    runat="server"></umbraco:Macro>

    </form>

    Would appreciate any suggestions / comments.

    Thanks in advance.

     

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    Oct 05, 2009 @ 08:27
    Casey Neehouse
    0

    Files are not attached to the email, but can be included as a link to the file. 

    Doc2Form uses the umbraco Document Type structure, and as such, the Data Types.  It really does not know what you are using, just that it tries to work with the data it is given.

    To include the link to the file, simply place  the placeholder text with the alias of the upload.... 

    IE: [resume]

    This will include a link to the file that is saved in the media section.

    If you need to attach the file to an email, and not save it, then you should consider writing your own custom control.

    Case

  • sritchie 48 posts 80 karma points
    Oct 05, 2009 @ 09:00
    sritchie
    0

    Thanks Casey,

    ok, now given I'm not really a hardcore coder, is this difficult to accomplish  (i.e. custom control to attach the files?)

    I noted a few similar questions through the forum, so I think others would definately be interested in how to acheive this.

    Rgs

    Simon.

Please Sign in or register to post replies

Write your reply to:

Draft