Ok, I am going mad.
I have a fedora 4 box. Plesk 8.2 installed using qmail and have 4 public ip addresses hosting web sites.
for example,
domain1 is assigned to
domain2 is assigned to
how can I simply send email within php?
Who is Participating?
how can I simply send email within php?

mail() function ??

mail ($to, $subject, $message [, $additional_headers [, $additional_parameters]] );
bilgehanyildirimAuthor Commented:
I tried this
                        $sendMail = new phpmailer();
            $sendMail->Mailer = 'smtp';
            $sendMail->SMTPAuth= true;            
            $sendMail->From = '';
            $sendMail->FromName = notification Service';
            $sendMail->Host = '';
            $sendMail->Username = '';
            $sendMail->Password = xxxxxx;
            $sendMail->Body = $this->messageHTML;
            $sendMail->AltBody = $this->messageTXT;
            $sendMail->Subject = $this->subject;
                return false;
                return true;
and I received and error mail saying
Hi. This is the qmail-send program at domain1com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

Connected to but sender was rejected. --->[[[this ip address is one of my other ip address which is not assigned to]]]]
Remote host said: 530 Authentication required

--- Below this line is a copy of the message.


If you need to use SMTP rather than sendmail - let me know - I have functions already written up for this. Also I have some functions for sendmail and SMTP which can handle attachments straight from the file directory!
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

bilgehanyildirimAuthor Commented:
could you tell me what is wrong with my code above?
bilgehanyildirimAuthor Commented:
My bad. please ignore this question...
The whole question or just the last bit? How are you getting on?
bilgehanyildirimAuthor Commented:
Whole question.
Actually error mail I received was coming from receivers email server saying
Connected to but sender was rejected.
Remote host said: 530 Authentication required
so nothing is wrong with my qmail or php settings :)
excellent! ;-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.