TOPIC:

Advice required on emailing submitted form's details 11 months 1 week ago #237666

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Many thanks Mihaela

I'll read those with interest and start to play with them. I'm sure there'll be other questions as I go along. ;)

Thanks again for pointing me in the right direction.

Please Log in or Create an account to join the conversation.

Advice required on emailing submitted form's details 11 months 1 week ago #237679

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415
Hi again,

Ok, good luck.

If you'll have more questions, feel free to ask.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

Advice required on emailing submitted form's details 11 months 6 days ago #237730

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Hi Mihaela

As promised, another question.

I've decided to go down the route of sending the email created by the End Submit Piece, and to send the results as HTML content.

The email works, it has data, but I've lost all the formatting I've got on the webpage.

I thought it would simply be a case of including all the CSS files in the HTML's <head> section which I copied from the webpage's source, but that didn't work. :(

How can I replicate the webpage's formatting?

Regards

Please Log in or Create an account to join the conversation.

Advice required on emailing submitted form's details 11 months 6 days ago #237732

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415
Hello,

Have you set the
$isHtml = true;
as in this article topic:
crosstec.org/en/forums/15-usage/125018-c...backfile.html#230240

Did you do so?

I've tried to add some styling in the <head> and this is working properly:
$this->execPieceByName('ff_InitLib');
$from = 'test@test.com';
$fromname =  'yourname';
$subject = 'mysubject';

$recipient = 'email@gmail.com'; 

$name= ff_getSubmit('name');
$email= ff_getSubmit('email');

$attachment=null;
$isHtml = true;

$body =  "
<html>
<head><style>
        table { color: red; } 
    </style></head>
<body>

<h1>This is the title of email </h1>

<table >
<tr>
<td>
   <strong>Name:</strong>
</td>
<td>
   $name
</td>
</tr>

<tr>
<td>
   <strong>Email:</strong>
</td>
<td>
   $email
</td>
</tr>
</table>
</body></html>";

$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment, $isHtml);
The table came in red.

You can try to add some style to the <style> tags sirectly as well.
If you wish to include form fields you have to include wanted fields in the body od the email, for example as above.

Regards,

Mihaela

Please Log in or Create an account to join the conversation.

Advice required on emailing submitted form's details 11 months 6 days ago #237733

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Hi

I did set the HTML flag to true.

I think what I'm asking for, though, is a little bit more than online styling. ;)

I'm trying to recreate the look of the webpage in the email content, so the HTML contains lots of calls to classes in various CSS files on my website.

So I guess what I'm trying to do is to take a snapshot of the results page, and email that.

Any suggestions on how to do this?

Please Log in or Create an account to join the conversation.

Advice required on emailing submitted form's details 11 months 3 days ago #237744

  • Topic Author
  • baileynp
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 76
  • Thanks: 1
Hi

Any words of wisdom? I'm stuck on this part. :(

Regards

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.049 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!