PDA

View Full Version : Is SMTP Authentication supported?



angelight
09-Jul-2006, 10:30 PM
Hi

My hosting provider requires that the email address being used to process my form be an authenticated user. Does Formmail support this? If not is there a way around it and still use your script?

Thanks

russellr
09-Jul-2006, 10:34 PM
Hi,

When you say "authenticated user", are you referring to the sender or recipient?

You can specify a pariticular sender for alerts with $FROM_USER and in the HTML for form results with FromAddr in "mail_options".

angelight
09-Jul-2006, 11:01 PM
I believe that it is the sender.

The hosting provider told me to use the phpmailer class which requires the following:

Email address used to send the email
Password of the email account used to send the email
Assigned mail server

I was hoping not to use this as the the form is already setup with your script and I am not much of a PHP programmer. After much heartache with them (they have no technical support) I finally realised that it wasn't working because of the authentication.

I hope this helps.

Thanks

russellr
09-Jul-2006, 11:49 PM
Hi,

OK, if you have PEAR installed with your PHP then you can use the PEAR_ settings in the FormMail's configuration section to achieve the same thing as they are suggesting with the phpmailer class.

If not, you could find a better hosting provider (http://www.tectite.com/vbforums/showthread.php?t=425). :(

angelight
09-Jul-2006, 11:55 PM
Hi

Unfortunately I am stuck with the client's provider. I did try the PEAR settings but got an error. How can I tell if PEAR is installed?

Regards

russellr
10-Jul-2006, 04:19 AM
Hi,

You can ask your hosting provider.

Alternatively, use the "phpinfo" script (search the forum for it) and then see whether "pear" is mentioned on the output (use Ctrl-F to do the find in the browser).

urlgurl
01-Nov-2011, 09:16 PM
I have a similar situation as angelight and wonder what may have changed with FormMail since 2006. To meet security standards, I am told that my form must submit (as the sender) an authenticated user, password, and mail server identification. Could I use AUTH_USER, AUTH_PW, and FIXED_SENDER to meet some of these requirements? But what about the identity of the mail server? Like angelight, I'm not a PHP programmer and am hoping to be able to use FormMail because it doesn't tax my abilities too much. Thanks.

urlgurl
01-Nov-2011, 09:22 PM
Right after posting this, I found:
http://www.tectite.com/fmdoc/pear_settings.php

Maybe that's the answer?

russellr
01-Nov-2011, 09:25 PM
Hi,

Yes, the PEAR settings are what you need.

Your server will need PEAR installed (at least the Mail components), but that shouldn't be a problem.

urlgurl
03-Nov-2011, 03:23 PM
Actually, I think installing PEAR might be a problem, because of various reports that appear from frustated people who tried installing it on IIS7 (try Googling "IIS7 PEAR"). Alas, my server is running IIS7.
To use the FormMail PEAR_SMTP settings, the server probably needs the PEAR MAIL packages; any other packages needed?

Is there any way to enable SMTP authentication without depending on PEAR?

Maybe I need to consider moving to an Apache environment if that would be more PEAR-friendly, but I'd like to try less drastic changes first.

russellr
03-Nov-2011, 07:35 PM
Hi,Sometimes all that's needed is a "ini_set" line to configure SMTP.Can your provider show you a sample PHP script that can send email, or provide the documentation for this?