close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email Set Up

Thread began 6/09/2010 5:48 pm by alexious299978 | Last modified 6/15/2010 2:53 pm by Eric Mittman | 1569 views | 9 replies |

alexious299978

Email Set Up

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?

Sign in to reply to this post

Eric Mittman

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.

Sign in to reply to this post

alexious299978

Universal Email 3

Who provides Universal Email 3 or how do I get it?

Sign in to reply to this post

Eric Mittman

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.

universal-email/

Sign in to reply to this post

alexious299978

php-pear mail

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:
howto-php-send-email-via-smtp-authentication.html
PHP_Email_SMTP_Authentication.htm

Sign in to reply to this post

Eric Mittman

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.

Sign in to reply to this post

alexious299978

How much

How much would it cost for you guys to make this work without bugs?

Sign in to reply to this post

Eric Mittman

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.

Sign in to reply to this post

alexious299978

UE

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

Sign in to reply to this post

Eric Mittman

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.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...