Issue on Email

Hi Guys


I've been integrating custom form asset and it utilise email options so it can send email to particular email address. Now the things is I don't know whether our development server or it's actually the MySOurceMatrix configuration for that particular form type (it looks straight forward in the doco explaining this).



Is there any logs that I can have a look regarding this? Perhaps application logs somewhere?



Thanks

What exactly is the peoblem? Email not sending?

[quote]Hi Guys


I've been integrating custom form asset and it utilise email options so it can send email to particular email address. Now the things is I don't whether our development server or it's actually the MySOurceMatrix configuration for that particular form type (it looks straight forward in the doco explaining this).



Is there any logs that I can have a look regarding this? Perhaps application logs somewhere?



Thanks[/quote]



Look in the sendmail logs if you are using sendmail.



In my experience if there is nothing there, you may have an invalid from address - pear Mail doesnt seem to send at all without one and it can fail silently which is not very helpful.

[quote]Look in the sendmail logs if you are using sendmail.


In my experience if there is nothing there, you may have an invalid from address - pear Mail doesnt seem to send at all without one and it can fail silently which is not very helpful.[/quote]



We are using the ssmtp and don't see any error logs at all :frowning:


How unhelpful :( - have you tried hardcoding the from address to a valid one?

Otherwise you may have to put some debug code in the system I suspect, not very nice.

Have you tried hardcoding the from address to a valid one?


>> Do you mean creating a seperate PHP script to send out email? Not clear about this.



Otherwise you may have to put some debug code in the system I suspect, not very nice.



>> When you say the system, you are referring MySourceMatrix … correct? How do I do debugging within MySourceMatrix?

We had a similar issue here last week with this.


We migrated our system and upgraded to 3.16.9 in one go. And found that some forms were not working.



EG. Previous to migration form works and send emails fine



after migration form does not send and no errors thrown



we checked the system and could send mail from the command line and via php with the mail function



mail still not working through the CMS form assets. (not all of them just some as it turn out)



We checked the forms mail options settings and found that if we re enterd the emails address and committed the form changes, the forms are now working.



I can only assume that there were some issue with some of the formd during the migration and upgrade, where either the form fields had changed or did not confirm to the CMS requirements some how.



So for use it's a case of rechecking each form and reentering the email address details and then committing the form asset.



Just a bit odd, but all working now.



So I guess I'm saying is check the form email options and make sure they are setup correctly, even go to the point where you re add the details again.



Just a thought.





Of course if you mail sending fails in php directly or at the command line its a new problem.