Jump to content

mailer function


namva

Recommended Posts

Hi folks,

i have a problem with the massmailer and the mail answers.

When the pilots are registered and i activated them, they don't get a mail. When i try to write a mass mail it says "complete" at the end and there is no error message but my pilots don't receive a mail. what can i do? where is the mistake?

and the contact formular doesn't work as well, the admin e-mail adress is set in the settings...

Link to comment
Share on other sites

ok, my friend checked everything again and now we can send the mails..

the only problem is, that there is something very strange with the form of the mail...

i think there is a problem with the template or something like that.

a lot of strange things and letters are listed in the mail...

the following is one of that mails:

From:

To: xxx.xxx@web.xx.xx

Sent:

Subject: Air Namibia Virtual Registration

> From: Air Namibia Virtual <xxx@gmx.xxx.xx>

> Message-ID: <99233bbd6e2cad5b95f5f17d9455e3e2@airnam.netx4u.de>

> X-Priority: 3

> X-Mailer: PHPMailer (phpmailer.codeworxtech.com) [version 2.3]

> MIME-Version: 1.0

> Content-Type: multipart/alternative;

>  boundary="b1_99233bbd6e2cad5b95f5f17d9455e3e2"

>

>

> --b1_99233bbd6e2cad5b95f5f17d9455e3e2

> Content-Type: text/plain; charset = "iso-8859-1"

> Content-Transfer-Encoding: quoted-printable

> =0D

> Dear xxxx xxxx,=0D

> =0D

> Your account have been made at Air Namibia Virtual, but your account has

> =

> not yet been activated. You will receive an email when your registration

> =

> has been activated by someone on our staff.=0D

> =0D

> =0D

> Thanks!=0D

> Air Namibia Virtual Staff=0D

> =0D

> =0D

> --b1_99233bbd6e2cad5b95f5f17d9455e3e2

> Content-Type: text/html; charset = "iso-8859-1"

> Content-Transfer-Encoding: quoted-printable

> =0D

> Dear xxxx xxx,=0D

> =0D

> Your account have been made at Air Namibia Virtual, but your account has

> =

> not yet been activated. You will receive an email when your registration

> =

> has been activated by someone on our staff.=0D

> =0D

> =0D

> Thanks!=0D

> Air Namibia Virtual Staff=0D

> =0D

> =0D

> =0D

> --b1_99233bbd6e2cad5b95f5f17d9455e3e2--

This is one mail... funnily enough the text is twice in one mail... don't know where the problem is... the "email_registere.tpl" looks normal nothing strange in it...

would be great if one can help... =)

by the way: i changed names and emails in "xx xxx xx" and so on

Link to comment
Share on other sites

  • Administrators

The format is a standard format, I use a third party class to do it, so the error isn't there. Have you tried sending the email to a different account and viewing it there? It could be the email client which is messing it up as well

Link to comment
Share on other sites

  • Administrators

about emails nabeel... do you know how to change in the email the text matter " Your registration was accepted... and  Your registration was denied... and registration... "

thanks

Look in the templates folder (core/templates), it starts with email_

Link to comment
Share on other sites

In core/common/RegistrationData.class ...

public static function SendEmailConfirm($email, $firstname, $lastname, $newpw='')

{

/*$firstname = Vars::POST('firstname');

$lastname = Vars::POST('lastname');

$email = Vars::POST('email');*/

$confid = self::$salt;

$subject = SITE_NAME . ' Registration';

Template::Set('firstname', $firstname);

Template::Set('lastname', $lastname);

Template::Set('confid', $confid);

$message = Template::GetTemplate('email_registered.tpl', true);

//email them the confirmation

Util::SendEmail($email, $subject, $message);

}

.. Edit out the 'Registration' part of the $subject with what you would like there ..

Was that the code you were looking for?

Link to comment
Share on other sites

Well, actually i am looking for the text subject of the emails that says:

subjects:

Your registration was accepted...

Your registration was denied...

once you register you get an email with this subjects... where can i modify this text perphas and for example to other languages?

Link to comment
Share on other sites

I tried to update to rev721 and i get the following errors:

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 275

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 284

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 291

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 275

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 284

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 291

Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 275

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 284

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /homepages/23/d281046487/htdocs/core/classes/ezDB_MySQL.class.php on line 291

any idea ???

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...