close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email is not sending

Thread began 11/06/2012 8:10 pm by sandy170299 | Last modified 11/07/2012 2:40 pm by Jason Byrnes | 1056 views | 5 replies |

sandy170299

Email is not sending

I think I have everything in the right order, meaning that the query that the email is being sent from comes before the send email code, but it's just not sending the email. I am not receiving any errors - it goes through the whole process, it supposedly sends an email, and then updates the database with an update query after the email is sent. The email address that the email is being sent to is pulled from a query that uses a session variable. I have confirmed that the session variable for employeeID is in fact working and the query is running correctly. I am attaching the page. Thank you.

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

Jason ByrnesWebAssist

Both the update and the email use form post data, but i don't see a form on this page?

Is the form on another page?

the update is set to redirect to the employeeJobs_results.php page, does that redirect happen?

who is your host?

in Universal Email, what have you set as the SMTP Server? SMTP Port? From Address?

Is the From Address a valid address for your domain?

double check that there are no errors occurring, add the following code at line 1 of the page to turn on error reporting:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




when the email sends, it will set session variables that contain the status of the email. on the employeeJobs_results.php page, add the following code to write the sessions to the page for information:

php:
<pre><?pre var_dump($_SESSION); ?></pre>
Sign in to reply to this post

sandy170299

Is the form on another page? Yes - it redirects to the page that sends the email.

the update is set to redirect to the employeeJobs_results.php page, does that redirect happen? Yes, it does redirect correctly.

in Universal Email, what have you set as the SMTP Server? SMTP Port? From Address? Nothing - I don't need to add any settings.

in Universal Email, what have you set as the SMTP Server? SMTP Port? From Address? Actually, no it's not, but I'm not sure if that is the issue or not. I will check.

double check that there are no errors occurring, add the following code at line 1 of the page to turn on error reporting:
PHP Code:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>

I added the code, but I'm not sure what all of the errors mean now. This is all I'm getting: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/qryCommit.php on line 131

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/qryCommit.php on line 131

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/webassist/email/mail_php.php on line 274

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/webassist/email/mail_php.php on line 274

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/qryCommit.php on line 161

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/qryCommit.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /home/citstime/domains/citstime.com/public_html/qryCommit.php:5) in /home/citstime/domains/citstime.com/public_html/qryCommit.php on line 192

Sign in to reply to this post

Jason ByrnesWebAssist

the error is probably a blank space or blank line after the closing php tag of the error reporting code.

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

you did not mention who the host was?

Most hosts require that the From Address be a valid email address for the domain or they wont relay the message.

did you add the session dump code to the success page?

The session dump will help us determine if the email is getting to the SMTP server or not.

Sign in to reply to this post

sandy170299

Yup ... I did it again. There was ONE SPACE after the closing PHP tag. Okay ... here is the problem. I need to reference a query in the following:

$MailBody = $MailBody . (GetFromPage("templates/Blank_3.php"));

Question ... how do I get the contents to show up when they are being passed from a form variable? Do I need to make all of those form variables a session variable?

This is part of what is being returned on employeeJobs_results.php. It's losing the form values, I believe.


Your Email Title Goes Here
email subtitle area or directions can go here, below the title
Form Submitted: 11-7-2012 | 1:22 PM CST
startDate: 10/01/2012
endDate: 11/07/2012
submit: Click to Commit the Following Hours
Additional Notes:

labor code id job id date worked hours worked

Notice: Undefined variable: row_getData in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 66

Notice: Undefined variable: row_getData in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 67

Notice: Undefined variable: row_getData in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 68

Notice: Undefined variable: row_getData in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 69

Notice: Undefined variable: getData in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 71

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null
given in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 71

Notice: Undefined variable: getEmployee in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 83

Warning: mysql_free_result() expects parameter 1 to be resource, null
given in
/home/citstime/domains/citstime.com/public_html/webassist/email/templates/Blank_3.php
on line 83

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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...