1
softjc
Email Cannot Send (class.phpmailer.php)
  • 2006/9/10 7:58

  • softjc

  • Just popping in

  • Posts: 9

  • Since: 2006/8/9 1


Some Of the Hosting Provider after you set

Send mail
SMTP
SMTPAUT

Still cannot send email to u user maybe you can try to edit the (class.phpmailer.php)as below

/**
* Sets the From email address for the message.
* @access public
* @var string
*/
var $From = "admin@xxxxxxx.com";

/**
* Sets the From name of the message.
* @access public
* @var string
*/
var $FromName = "admin";

/**
* Sets the Sender email of the message. If not empty, will be sent via -f to sendmail
* or as 'MAIL FROM' in smtp mode.
* @access public
* @var string
*/
var $Sender = "admin@xxxxxxx.com";

/**
* Sets the Subject of the message.
* @access public
* @var string
*/
var $Subject = "";

/**
* Sets the Body of the message. This can be either an HTML or text body.
* If HTML then run IsHTML(true).
* @access public
* @var string
*/
var $Body = "";

/**
* Sets the text-only body of the message. This automatically sets the
* email to multipart/alternative. This body can be read by mail
* clients that do not have HTML email capability such as mutt. Clients
* that can read HTML will view the normal Body.
* @access public
* @var string
*/
var $AltBody = "";

/**
* Sets word wrapping on the body of the message to a given number of
* characters.
* @access public
* @var int
*/
var $WordWrap = 0;

/**
* Method to send mail: ("mail", "sendmail", or "smtp").
* @access public
* @var string
*/
var $Mailer = "mail";

/**
* Sets the path of the sendmail program.
* @access public
* @var string
*/
var $Sendmail = "/usr/sbin/sendmail";

/**
* Turns Microsoft mail client headers on and off. Useful mostly
* for older clients.
* @access public
* @var bool
*/
var $UseMSMailHeaders = false;

/**
* Path to phpmailer plugins. This is now only useful if the SMTP class
* is in a different directory than the PHP include path.
* @access public
* @var string
*/
var $PluginDir = "";

/**
* Holds phpmailer version.
* @access public
* @var string
*/
var $Version = "1.65";

/**
* Sets the email address that a reading confirmation will be sent.
* @access public
* @var string
*/
var $ConfirmReadingTo = "";

/**
* Sets the line endings of the message.
* @access public
* @var string
*/
var $LE = "\n";

/**
* Sets the hostname to use in Message-Id and Received headers
* and as default HELO string. If empty, the value returned
* by SERVER_NAME is used or 'localhost.localdomain'.
* @access public
* @var string
*/
var $Hostname = "";


/////////////////////////////////////////////////
// SMTP VARIABLES
/////////////////////////////////////////////////

/**
* Sets the SMTP hosts. All hosts must be separated by a
* semicolon. You can also specify a different port
* for each host by using this format: [hostname:port]
* (e.g. "smtp1.example.com:25;smtp2.example.com").
* Hosts will be tried in order.
* @access public
* @var string
*/
var $Host = "mail.xxxxxx.com";

/**
* Sets the default SMTP server port.
* @access public
* @var int
*/
var $Port = 25;

/**
* Sets the SMTP HELO of the message (Default is $Hostname).
* @access public
* @var string
*/
var $Helo = "";

/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* @access public
* @var bool
*/
var $SMTPAuth = false;

/**
* Sets SMTP username.
* @access public
* @var string
*/
var $Username = "admin@xxxxx.com";

/**
* Sets SMTP password.
* @access public
* @var string
*/
var $Password = "password";

/**
* Sets the SMTP server timeout in seconds. This function will not
* work with the win32 version.
* @access public
* @var int
*/
var $Timeout = 10;




HOPE ABOVE IS SOME SOLUTION.... IF YOU GUY STILL HAVE AND IDEA TO IMPROVE THE SOLUTION PLEASE LET ME KNOW

2
Daigoro
Re: Email Cannot Send (class.phpmailer.php)
  • 2006/9/10 10:07

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


As far as I remmeber (I don't have XOOPS file access right now) all of these variables are supposed to be overwritten by the xoopsmailer.php and/or xoopsmultimailer.php when they are called from the system or modules.

I've only checked using the PHP mail(), but there I found no changes when editing most of the variables you show.
But did it work for you?
Best regards,
Daigoro

3
McNaz
Re: Email Cannot Send (class.phpmailer.php)
  • 2006/9/10 10:41

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Daigoro is right.

These variable are assigned value by Xoops, specifically from System Admin -> Preferences -> Mail Setup (From Name, From Address, From User).

4
softjc
Re: Email Cannot Send (class.phpmailer.php)
  • 2006/9/12 8:28

  • softjc

  • Just popping in

  • Posts: 9

  • Since: 2006/8/9 1


after edit by manual of (class.phpmailer.php)it work for me
.... user still can get the losspass word email and the mail send from the XOOPS site.



quastion : do you guy have install zen cart module in xoops?

5
StevenB
Re: Email Cannot Send (class.phpmailer.php)
  • 2007/1/21 23:40

  • StevenB

  • Just popping in

  • Posts: 61

  • Since: 2006/9/3 2


I have been working on this all day and this post definately showed me the starting point. - Thanks softjc!

One note, with my host (who was absolutely no help) it was also nessesary to overide the subject.

/**
* Sets the Subject of the message.
* @access public
* @var string
*/
var $Subject = "Message from mysite.com";

In my case I made all of the changes softjc suggested, and the subject line, then set the Mail delivery method to SMTPAuth.

That was the ONLY thing I could get to work.

On to the next challenge,

Steve

Login

Who's Online

262 user(s) are online (187 user(s) are browsing Support Forums)


Members: 0


Guests: 262


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits