close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

no Email while using PEAR

Thread began 11/12/2009 1:43 am by slange348322 | Last modified 11/13/2009 12:55 pm by slange348322 | 3672 views | 11 replies |

slange348322

no Email while using PEAR

Hi,

all of a sudden, I can't send E-Mails while using PEAR. I have no idea what my problem is. I updatted to the newes Universal Email.

-> I don't receive any Email

Sign in to reply to this post

Jason ByrnesWebAssist

Can you send a copy of your page so I can examine the code.

Sign in to reply to this post

slange348322

<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "xx|WA|xx";
$MailSubject = "Check 01";
$_SERVER["QUERY_STRING"] = "";

//Global Variables

$WA_MailObject = WAUE_Definition("/home/web6/PEAR/","smtp.xx.de","25","xx","xx","true","","","","ISO-8859-1");

if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}

//Attachment Entries

//BCC Entries

//CC Entries

//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);

//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");

//Start Mail Body

del body for forum

//End Mail Body

$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody);

$WA_MailObject = null;
?>


do you need the WAUE_*.php , too?

THANKS !!!!


I checked the logfiles, no conection to the smtp server

Sign in to reply to this post

Jason ByrnesWebAssist

I need the full php file you have applied the universal email server behavior to.

Please add that file to a zip archive and send it with your reply.

Sign in to reply to this post

slange348322

<?php require_once("../WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php"); ?>
<?php require_once("../WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if (("" == "")) {
//WA Universal Email object="PEAR Mail using SMTP"
//Send Loop Once Per Entry
$RecipientEmail = "xx@xx.com";include("../WA_Universal_Email/WAUE_*.php");

//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
</head>

<body>
</body>
</html>


and the wa.zip

Attached Files
wa.zip
Sign in to reply to this post

Jason ByrnesWebAssist

It looks like that should work.


Is there a php error occurring?

Add the following at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



this will show any errors if there are any.


Perhaps try leaving the SMTP server blank?

Sign in to reply to this post

slange348322

where do you want the PHP Code? (what php File?)

I have to work with the SMTP Server :(

Sign in to reply to this post

Jason ByrnesWebAssist

At line 1 of the page you have applied Universal Email to.

Sign in to reply to this post

slange348322

<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
<?php require_once("WA_Universal_Email/PEAR_Mail_using_SMTP_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if (("" == "")) {
//WA Universal Email object="PEAR Mail using SMTP"
//Send Loop Once Per Entry
$RecipientEmail = "xx@xx.com";include("WA_Universal_Email/WAUE_xx_1.php");

//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
</head>

<body>
</body>
</html>



so, no errors what's so ever !! :( - And no Emails :(

Sign in to reply to this post

Jason ByrnesWebAssist

Have you tried leaving the SMTP server blank?

Are you entering a value for the From Display name? If so try leaving that blank as well.

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...