close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Confirmation Email Problem

Thread began 10/02/2012 6:45 am by willo009412397 | Last modified 10/05/2012 9:29 am by Jason Byrnes | 1401 views | 7 replies |

willo009412397

Confirmation Email Problem

Hi

I have created an ecommerce site using webassist extensions, but i have encountered problems using Universal email. I have 2 problems i really need help with, i have tried for a few weeks now to work it out. My first problem is with my Confirmation email, it sends the shipping address details and a link. So they can upload there work, problem is sometimes it works sometimes it will not. When i come to the Checkout form and fill in details then i go to confirm page which when clicked should send out an Confirmation email to the customer. But most of the time it does not send. Then if i `back-page` in the browser back to the checkout, i do not change any of the details that are already there from before. And click through the process again, then it will send?
My second problem is with my Upload page, theres fields for them to upload there files, and also a text field, and a comment box. It works fine at uploading the files, but any text in the text field and comment box do not send. I have added the files for you to view. Thanks for your help.

Regards Karl

Attached Files
Confirm.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the code to send the email is at line 15 - 102. lines 103 - 234 set a bunch of session variables. The email uses the eCartCheckoutForm_email session variable as the to address.

The code that sets that session variable is at 118. When the email is trying to be sent, the session does not exist yet.


move the universal email code block so it comes after the code to set the session variables.

On the upload email, you have not done anything to set up the email body.

In the universal Email server behavior, select the option to create a file for the email message and select one of the templates, this will automatically loop through the form fields to include them in the email.

Sign in to reply to this post

willo009412397

Hi Jason

The confirmation email now sends, but i get this printed above the page when i run it:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/printivf/public_html/confirm.php:16) in /home/printivf/public_html/confirm.php on line 200

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/printivf/public_html/confirm.php:16) in /home/printivf/public_html/confirm.php on line 200

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/printivf/public_html/confirm.php:16) in /home/printivf/public_html/webassist/email/mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/printivf/public_html/confirm.php:16) in /home/printivf/public_html/webassist/email/mail_php.php on line 285

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/printivf/public_html/confirm.php:16) in /home/printivf/public_html/confirm.php on line 230

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/printivf/public_html/confirm.php:16) in /home/printivf/public_html/confirm.php on line 230

Regards Karl

Sign in to reply to this post

willo009412397

This post has been deleted.

Jason ByrnesWebAssist

this is caused by output between php tags.

the error sis reporting the cause of the problem around line 16 of the confirm page:

output started at /home/printivf/public_html/confirm.php:16

either there is a blank space or blank line after the closing php tag and before the opening php tag of the next code block.

see this thread for details:
showthread.php?t=19285

Sign in to reply to this post

willo009412397

Hi

Now it sends but theres no details within the email. I have added the files for you to view.

Regards Karl

Attached Files
Confirm2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the email body uses the webassist/email/templates/Block.php file, make sure that file has been uploaded to the server.

Sign in to reply to this post

willo009412397

Yes Email template is uploaded, sometimes it sends a confirmation email with the details. And sometimes it send the email but its blank, and just sends the details below without customer details.

PrintingColouUK.Co.Uk - Order Confirmation.
This is an Order Confimations Email - Not a Receipt
Form Submitted 10-5-2012 | 11:52 AM BST

Karl

Sign in to reply to this post

Jason ByrnesWebAssist

this could happen if the checkout form is submitted with no data in it.

add server validation to ensure that the checkout form is filled out before submitting it.

see the following thread for details on adding validation to the checkout form:
showthread.php?t=21834&highlight=confirm+form+data

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...