TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-20-2008, 05:57 PM   #1 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default PHPMailer don't work for me -.-..

Right I used there basic example:

Code:
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.iwatch-this.info"; // SMTP server
$mail->From = "iwatchth@iwatch-this.info";
$mail->AddAddress("scheols@gmail.com");

$mail->Subject = "First PHPMailer Message";
$mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->WordWrap = 50;

if(!$mail->Send())
{
   echo 'Message was not sent.';
   echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
   echo 'Message has been sent.';
}
I keep getting the message was not sent error.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 02-20-2008, 07:03 PM   #2 (permalink)
The Contributor
 
DeMo's Avatar
 
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
DeMo is on a distinguished road
Default

PHP Code:
$mail->Host "mail.iwatch-this.info"// SMTP server 
Is this also part of the example?
If it is, I guess it's not a valid SMTP server, it's there just to show how you use the class. You have to change that line and put your own (your host's) SMTP address there.

By the way, you don't need a separate class for sending mail, you can use the mail() function to do this. It's already setup and you don't need to waste time searching for SMTP server addresses and stuff like that.
Send a message via ICQ to DeMo Send a message via MSN to DeMo Send a message via Skype™ to DeMo
DeMo is offline  
Reply With Quote
Old 02-20-2008, 07:37 PM   #3 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

Right...I want to use a SMTP email server for the fact mail is acting gay and sending to the spam box again.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 02-20-2008, 07:53 PM   #4 (permalink)
The Acquainted
 
Gareth's Avatar
 
Join Date: Jan 2008
Posts: 136
Thanks: 4
Gareth is on a distinguished road
Default

Are you trying this on localhost?
Gareth is offline  
Reply With Quote
Old 02-20-2008, 10:14 PM   #5 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

No I have share hosting.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 02-21-2008, 03:50 AM   #6 (permalink)
The Contributor
 
DeMo's Avatar
 
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
DeMo is on a distinguished road
Default

You have to use your own SMTP server then.
Ask your host for the address, check to see if it is somewhere on your control panel, or just try smtp.yourdomain.com, mail.yourdomain.com...
Send a message via ICQ to DeMo Send a message via MSN to DeMo Send a message via Skype™ to DeMo
DeMo is offline  
Reply With Quote
Old 02-21-2008, 01:09 PM   #7 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

I did as in the first post...O_O..
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 02-10-2009, 05:57 AM   #8 (permalink)
The Visitor
 
Join Date: Feb 2009
Posts: 3
Thanks: 0
Anilkumar is on a distinguished road
Default

How can i solve this problem :

From: MAILER-DAEMON@stretton.positive-dedicated.net
> [mailto:MAILER-DAEMON@stretton.positive-dedicated.net]
> Sent: 09 February 2009 14:15
> To: info@mufti.co.uk
> Subject: failure notice
>
> Hi. This is the qmail-send program at stretton.positive-dedicated.net.
> 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.
>
> <anna@mufti.co.uk,oliver@camlab.com,info@mufti.co. uk>:
> 212.188.174.240 does not like recipient.
> Remote host said: 550 Requested action not taken: mailbox unavailable or
not
> local
> Giving up on 212.188.174.240.
>
> --- Below this line is a copy of the message.
>
> Return-Path: <info@mufti.co.uk>
> Received: (qmail 16367 invoked by uid 33); 9 Feb 2009 14:14:35
-0000
> To: sarahezaz@hotmail.com
> Subject: Mufti: New Order Details
> Date: Mon, 9 Feb 2009 14:14:35 +0000
> From: Mufti <info@mufti.co.uk>
> Reply-to: Mufti <info@manandvan.biz>
> Message-ID: <788ccd955c573a71556dd438e9a00830@shop.mufti.co.uk >
> X-Priority: 3
> X-Mailer: PHPMailer [version 1.73]
> MIME-Version: 1.0
> Content-Transfer-Encoding: 8bit
> Content-Type: text/html; charset="iso-8859-1"


Thanks In Advance
--------------------

Anil Kumar :
Anilkumar is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:46 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design