1
Soniaro
plroblem with mail() email()
  • 2005/8/18 20:33

  • Soniaro

  • Just popping in

  • Posts: 3

  • Since: 2005/8/18


Sorry but i have a small problem with mail fonction. My hosting have mail() and email() function. When someon,e registred or send me a email i receive a msg from posmaster who say:

> Hello,
> One of the PHP scripts on your Online.net hosted domain tried to send
> a mail which format is unsupported by the mail() function. Invalid
> headers details and the mail itself are included below.
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Details
>
> Sun, 7 Aug 2005 20:38:11 +0200
> Return-Path: aiko@dagirlz.org
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> To: aiko@dagirlz.org
> Subject: New user registration at Da Girlz
> X-Server-Name: http://www.dagirlz.org
> X-Script-Name: /modules/profile/register.php
> X-Remote-Addr: 82.196.98.108
> Received: from phpmailer ([82.196.98.108])
> by http://www.dagirlz.org with HTTP (phpmailer);
> Sun, 7 Aug 2005 20:38:11 +0200
> Date: Sun, 7 Aug 2005 20:38:11 +0200
> From: =?iso-8859-1?B?RGEgR2lybHo=?=
> Message-ID:
> X-Priority: 3
> X-Mailer: phpmailer [version 1.65]
> Return-Path: aiko@dagirlz.org
> X-Mailer: PHP/4.3.10-2
> Return-Path: aiko@dagirlz.org
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Content-Type: text/plain; charset="iso-8859-1"
> X-Abuse-To: abuse@proxad.net
>
> Kiwi has just registered!
>


on support site they say :
Send mail with PHP

We have added the special email function to PHP4. This function allows you to send a mail just like to original PHP function, but with two header fields added:

• X-URI-Orig – the URL of the site sending the mail, e.g.: /my.domain.net/email.php
• X-Abuse – specifies the address for reporting abuse, e.g. abuse@proxad.net.

Any abuse of this function (spam, etc.) will be punished.

Description

bool email(string From, string To, string Sujet, string Message, string [Reply To]);

sends an e-mail from the address From@mydomain.ext to the To address.

Only one addressee is allowed per mail.

Example
$sujet="Test mail";
$msg="Hi!\n this is a test mail by PHP4";
if(!email("webmaster","fill@fill.fr",$sujet,$msg)){
print "the mail was not sent
";
}
?>Parameters

From : name only (without the domain) – the domain will be added automatically. This parameter cannot be blank.
To : destination address. This parameter cannot be blank.
Sujet : message subject.
Message : message body. Limited to 100 Kb.
Reply-To : this parameter is optional. If used it allows you to specify a return address. Il must be a name only (without the domain) – the domain will be added automatically.

How to handle invalid mail
An invalid mail is one that comes because, for example, the addressee does not exist or the address is invalid. By default, invalid e-mails are lost, but you have the option to receive them into any mailbox by using email() with the following parameters:

Example :

email($From, $To, $Sujet, $Message, $ReplyTo,"Return-path: returns@email");

you need to modify the last parameter to specify the account that you have set up specially to receive returned mail; for example: returns@mydomain.ext.


i like to find what i need to chnage in XOOPS for working good :'(

thanks for help and sorry to my bad english speaking :)

2
hervet
Re: plroblem with mail() email()
  • 2005/8/21 7:34

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Oh but it seems I have already read this here

Login

Who's Online

202 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits