email not sending out
I have inserted a Simple Contact form, apparently with success. However, the email is not sending out. I have set the outgoing mail server but it requires authentication. How is this accomplished?
I have inserted a Simple Contact form, apparently with success. However, the email is not sending out. I have set the outgoing mail server but it requires authentication. How is this accomplished?
when using an SMTP Server that requires authentication, you need to use the Pear Mail for SMTP mail object.
open the server behaviors panel (Window -> Server Behaviors). In the server behaviors list, double click the Universal Email server behavior.
in the UE server behavior, click the envelope icon to get to the email server settings.
For the mail object, select to sue the Pear Mail for SMTP object, you can then specify your username and password to connect to the SMTP server.
Thanks. I switched to Pear Mail but email is still not sending.
Who is your host?
Do they support Pear Mail?
What is the SMTP server you are using?
What is the From Address you are using?
Is it a valid email address for your domain?
What is the To address you are using?
in universal email did you select a go to page? Does it redirect to the go to page?
Host is Network Solutions and Pear mail is supported according to them.
SMTP server is smtp.allproglassshop.com, which is correct.
From address is <?php echo (isset($_POST["Email_Address"]))?$_POST["Email_Address"]:""); ?>
To address is my email address, which is valid.
It does redirect to the proper page.
Thanks.
On Create Email Message: Mail Object Settings, I selected PEAR Mail using SMTP. I did not fill-in 'Path to PEAR', 'Port' and 'X-Mailer' as I don't know the proper values. Are these necessary?
many SMTP servers require that the form address be a valid email address for your domain.
you may have to use a hard coded from address, if you go to the advanced from settings, you can use the dynamic email address for the reply to address.
The x-mailier is an optional setting, the port and path to pear amy or may not need to be entered, depends on the host.
on the email page, add the following at line 1 to turn on error reporting:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
then on the thank you page, add this cod after the <body> tag:
<pre><?php @session_start(); var_dump($_SESSION); ?></pre>
this will write the session contents to the page, to let us know if the email was successfully sent to the SMTP server or not.
I switched from Pear mail to regular mail and the mails are being sent and received as expected. Not sure how I got off track onto Pear mail. Thanks.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.