{exp:reinos_email_form:email_template
direct="no"
to:name="John Doe"
to:email="test@example.nl"
from:name="William Doe"
from:email="test@no-example.com"
subject="Test email"
}
Everthing between the tags will be send per mail, just once and also shown on screen.
Excelent for using this for an invoice. Show the content and send the content once.
{/exp:reinos_email_form:email_template}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
{exp:reinos_email_form:form}
<div class="alert alert-danger">{attachments_error}</div>
<div class="container">
<div class="row">
<div class="col">
<div class="form-group">
<label for="name">Name</label>
<input type="file" class="form-control" id="myfile" name="myfile">
</div>
</div>
</div>
<div class="row">
<div class="col">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</div>
{email_template
to:name="John Doe"
to:email="test@example.nl"
from:name="William Doe"
from:email="test@no-example.com"
subject="Test email"
attachments="myfile"
}
Show a link to your file by just reference the variable {myfile}.
Also, make sure you setup the location in the CP for the attachements.
{/email_template}
{/exp:reinos_email_form:form}