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 not sending

Thread began 10/23/2012 7:39 pm by mousework50137 | Last modified 10/24/2012 9:53 pm by Jason Byrnes | 938 views | 13 replies |

mousework50137

email not sending

I have a page

coventry_builder_email_contact_form.php

That has a simple contact form on it which seems to be processing correctly as it re-directs to the success page after the submit button is pressed but an email never arrives.

The hosting company is Fasthosts.

I found an article on these forums, showthread.php?t=24866
that suggested adding in some code to line 1 of the page, so I did that and no better.

I have tried changing the smtp server from smtp.fgeorobinson.com to smtp.fasthosts.co.uk but still no email.

I've tried port 25 and port 587, still no email.

Am I missing something simple? When I did a similar form on my Clook hosting account, all went ok.

Can anyone help please? Is this fasthosts again?

Sign in to reply to this post

mousework50137

Spent all day on this now, compared a site I did with fasthosts hosting that does send the email and the code at the top of the page mentioned above was not needed, so I have removed.

Still at a loss as to why this email will not sentd though,

Can anyone help please.

Sign in to reply to this post

mousework50137

Was it me or a bug in the software I wonder

My client has lost patience with me and put job on hold for now as the show he wanted to promote the site at is tomorrow, and it's now to late to get this finished.
Very frustrating!

It would have been nice to know if the problem was me, or a bug, as I've done these email forms in the past without a problem.

Also the number of times this wizard quits and takes dreamweaver out is very frustrating.

I have now deleted the files.

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not able to access the form to investigate.

When emails are not sending, here are a few things that can help diagnose the problem:


1) add the following cade at line 1 to turn on error reporting:

php:
<?php

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



2) Add the following code to output the session details on the success page just before the </body> tag:

php:
<pre><?php var_dump($_SESSION); ?></pre>



this will include information about the email including whether it was passed to the SMTP server.


It's tough to tell why the email is not sending without being able to investigate.

Sign in to reply to this post

mousework50137

thanks Jason,
I deleted the files about 10 minutes before you replied/
I'll start again and include the code you have given me.
Thanks

Sign in to reply to this post

mousework50137

many thanks for reply

hi Jason,
I have redone the page, it's

coventry_builder_email.php
and the confirm page is
coventry_builder_email_confirm.php

I've popped the code onto the two files as per your instruction.

FTP details for this site are on Technical Support Ticket # 146850 if this helps

Thanks so much, if I can get this sorted I may be able to redeem myself with the customer and sort it by the morning for him.

best

Sign in to reply to this post

Jason ByrnesWebAssist

I didn't see the session dump on the confirm page so had to add it.

one thing i see is that there is no email address for the from address:
["waue_coventry_builder_email_1_From"]=> string(55) "F Geo Robinson - Martyn Blair "

Try using only a from address and do not fill in the from name in the settings.

Some SMTP servers will ignore the from email address if the form name is supplied to, which can cause the email to fail being relayed.

further down in the log, i see the following output:
["waue_coventry_builder_email_1_Log"]=> string(46) "Sending To: mousework@mac.com... Success


this tells me the email is being sent to the SMTP server, it is the SMTP server that is not relaying the email, probably because of the From address.

Sign in to reply to this post

mousework50137

hi,
still no success.

Would a paid support ticket help? I can run to the $49 dollar one, it would be great to get this sorted tonight, today in your case,

Mark

Sign in to reply to this post

mousework50137

hi, should I open the ticket or can you pass these thread details on and open it,
Cheers
Mark

Sign in to reply to this post

Jason ByrnesWebAssist

It seams to be an issue with the SMTP server. I changed the to address to my GMAIL address and the message came through without a problem.

i would suggest contacting the host to have them look into the SMTYP server error logs to see why it is relaying to some email addresses and not others.

Sign in to reply to this post
loading

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