PDA

View Full Version : Email not arriving


stevenc330599
02-10-2010, 06:46 AM
I am trying to replace Adobe's Developer Toolbox email functions on various forms with the Contact Form Solution Pack. However, though I can send forms by email using Adobe's DT those from the CFSP never arrive. The CFSP form works perfectly and moves to the 'thank you' page without any problems. I have checked my SPAM folders and the forms are not getting caught there.

I assume the issue is with the mail settings. Those that work in Adobe's DT are:

$tNG_email_host = "localhost";
$tNG_email_user = "";
$tNG_email_port = "25";
$tNG_email_password = "";

I have put $WAGLOBAL_Email_Server = "localhost" ; in the 'WA_Globals.php' file and in the 'WAUE_contact_1.php' file there already was the line:

$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","","","","");

I presume that this is what I must tinker with, but how do?

Thanks,

Steven.

neilo
02-10-2010, 07:34 AM
Try leaving the $WAGLOBAL_Email_Server setting blank:

$WAGLOBAL_Email_Server = "" ;

For many (most?) hosts, this is all that is required. Try that and post back if you still have problems.

stevenc330599
02-11-2010, 04:57 AM
Neilo,

Thanks, but as I should have mentioned I started with > $WAGLOBAL_Email_Server = "" ; <
as it states in the manual. When the test emails did not arrive I then, after checking the SPAM filters, went into the ADT to find its settings and mirrored those in the CFSP.

Ideas for Plan "C" would be appreciated!

Thanks,

Steven.

Eric Mittman
02-11-2010, 10:44 AM
We can do a check to see if it is getting the the mail call that is sending the email. In Unviversal Email > mail_PHP.php do a search for the following line of code:


$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader );


It should be around line 254

Just after this line of code add in the following die statement so that the values used in the email will be printed to the screen:


$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader );
die("mail sent to the server with the following values: " . $mailTo . " " . $mailSubject . " " . $mailContent . " " . $mailHeader);


Give this a try and let us know what the result is, this will help us to determine if the mail is being sent to the mail server or if there is a failure that occurs before this.

stevenc330599
02-12-2010, 05:10 AM
After making the code modification the form submitted and went straight to the 'thank you' page. 30 minutes later still no email from the website.

I then experimented again with changes to the "$WAGLOBAL_Email_Server" value.

I tried:

1. "" (as per instructions and Neilo)
2. "localhost" (as per Adobe DT)
3. "mail.domainname.com" as this is the Mail Server Name given to me by the hosting ISP.

The other details from the hosting ISP are:

POP3 + Imap Server = diabled
Spam filtering = disabled
MailSscanner / Virus Scanner = disabled

Thanks for your help so far and I await further instructions,

Steven.

Eric Mittman
02-12-2010, 02:46 PM
Based on the fact that you did not see any debugging output at all it tells me that the code for sending the email might not be getting executed. To check on this and determine what that might be I have opened a ticket for you on this issue. To update the ticket login to the site and visit your support history.

stevenc330599
02-19-2010, 11:18 PM
Problem solved! My page had in the HTML:

<form class="Sharp_Default" id="SimpleContact_Sharp_Default" name="SimpleContact_Sharp_Default" method="post" action="thankyou.php">

(note the action="thankyou.php") which meant on submission the form was bypassing the php email triggers.

HTML changed to:

<form class="Sharp_Default" id="SimpleContact_Sharp_Default" name="SimpleContact_Sharp_Default" method="post" action="">

and the email began arriving.

Eric Mittman
02-22-2010, 02:47 PM
Thanks for getting this update on the forum, hopefully it can help someone else with the same issue.