View Full Version : Email Set Up
alexious299978
06-09-2010, 02:48 PM
My email server requires authentication such as the email address and password as well as the port (25) desired. At least that is how it worked when I did an ASP email page.
How would I set this up in this Solution Pack?
$WAGLOBAL_Email_Server = "webmail.mydomain.com" ;
example:
$WAGLOBAL_Email_User = "mail@mydomain.com" ;
$WAGLOBAL_Email_Password = "mypassword" ;
$WAGLOBAL_Email_Port = "25" ;
Or do you already have a way to handle this?
Eric Mittman
06-10-2010, 11:55 AM
The user registration solution pack does not support authentication, it makes use of the standard php mail that does not support authentication. Do you own Universal Email 3? If so you could update the Universal Email server behaviors to use the PEAR mail option, this one allows you to authenticate based on a username and password. You will just need to provide the path to PEAR on your server.
alexious299978
06-10-2010, 11:58 AM
Who provides Universal Email 3 or how do I get it?
Eric Mittman
06-10-2010, 05:23 PM
This is the older version of Universal Email that was used to create this Solution Recipe, you would only be able to make use of it if you have it already. The new version of Universal Email is v4. You can use this to update the Solution Pack but it was not created with this version though and you may have issues updating the UE server behavior.
http://www.webassist.com/dreamweaver-extensions/universal-email/
alexious299978
06-10-2010, 06:08 PM
I am using this script below on the server using Mail.php as an include from /usr/share/pear/ directory and i am getting the emails. Any idea on how I can re-code the WA_globals.php or/and the mail_PHP.php in order to use the same method to send emails using the User Registration Solution Pack and pear(Mail.php)?
<?php
require_once "Mail.php";
$from = "Sandra Sender <sender@example.com>";
$to = "Ramona Recipient <recipient@example.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "mail.example.com";
$username = "smtp_username";
$password = "smtp_password";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}
?>
Obviously I want to use the solution pack and email is important for authentication, lost password etc.. so therefore I will require your assistance to work out a solution. Please Advise.
Information gathered from:
http://www.cyberciti.biz/tips/howto-php-send-email-via-smtp-authentication.html
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
Eric Mittman
06-11-2010, 01:44 PM
If you are comfortable with the script you have used you can try updating the Universal Email code to make use of the same script code that you tested with. This would be in the WA_Universal_Email > mail_PHP.php file. In here you can find the mail call that is around line 257. This is the point in the script where the mail call is made using all of the global values for the Solution Recipe. You can alter the code at this point to use your code instead.
This would be a custom implementation though and not something that we could offer support for.
alexious299978
06-11-2010, 01:53 PM
How much would it cost for you guys to make this work without bugs?
Eric Mittman
06-11-2010, 02:43 PM
The Solution Pack will send emails by itself. The email functionality makes use of PHPs standard mail wich does not support authentication. The tool that was used to craft the email functionality, Universal Email, can be used to update the server behavior to work with PEAR mail and support authentication. You can obtain this tool to make the updates that you need or you can implement your solution in a custom fashion. We cannot support your custom solution.
alexious299978
06-11-2010, 02:55 PM
According to you:
"This is the older version of Universal Email that was used to create this Solution Recipe, you would only be able to make use of it if you have it already. The new version of Universal Email is v4. You can use this to update the Solution Pack but it was not created with this version though and you may have issues updating the UE server behavior."
Your site only has UE4 available which is not guaranteed. Do you still sell UE3
Eric Mittman
06-15-2010, 11:53 AM
When it comes to our Solution Packs that are pre-build and tested to work as they are downloaded, we do not suggest altering them. If you need to update the Solution Pack to add in authentication you can do so by using UE, either version 3 or 4. The Solution Pack was created with version 3 though. I'm just letting you know the details so that you are aware.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.