Welcome Guest, Not a member yet? Register   Sign In
Are you sure is Yahoo mail bug fixed?
#1

[eluser]Unknown[/eluser]
Hello,

I was trying to send a html email with the CI Email.php library... but it's impossible for me to send a simple html mail to a Yahoo account. The result is a blank email in Yahoo user’s account as mentioned here

Here is my code, protocol is mail

Code:
$this->load->library('email');
$config['useragent'] = 'My_Cool_CI_Mailer';
$config['mailtype'] = 'html';
        
$this->email->initialize($config);
        
$to_address = '[email protected]';
$from_address = '[email protected]';
$from_name = 'ME';
$body = 'Hello';    
$subject = 'Subject_Here';
        
        
$this->email->to($to_address);
$this->email->from($from_address, $from_name);
$this->email->subject($subject);
$this->email->message($body);
        
$this->email->send();

CI 1.7.1 + WAMPSERVER 2.0 + miniRelay server v0.9.77d

If i comment this line...
Code:
//$config['mailtype'] = 'html';
...it works but I'm interested on sending html mails!

Do you have any solutions? Am I doing something wrong?

Thanks in advance
#2

[eluser]RaZoR LeGaCy[/eluser]
No mails are going to Yahoo. I checked Spam and Inbox and other folders. I receive mail through gmail at the [email protected] address. How can I fix?

Code:
$this->load->library('email');

$to = '[email protected], [email protected]';
$subject = 'Subject: Testing Yahoo Emails';
$message = 'Message: Testing Yahoo Emails';

$this->email->clear();

$config['useragent'] = 'Hell Horror';
//$config['mailtype'] = 'html';

$this->email->initialize($config);

$this->email->from('[email protected]', 'Hell Horror Forums');
$this->email->to($to);
$this->email->subject($subject);
$this->email->message($message);
$this->email->send();
echo $this->email->print_debugger();

Code:
Your message has been successfully sent using the following protocol: mail

User-Agent: CodeIgniter
Date: Thu, 6 May 2010 14:36:57 -0400
From: "Hell Horror Forums"
Return-Path:
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: Hell Horror
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Subject:_Testing_Yahoo_Emails?=
Message: Testing Yahoo Emails
#3

[eluser]skunkbad[/eluser]
Have you tried changing the protocol?
#4

[eluser]RaZoR LeGaCy[/eluser]
What should I change to?
#5

[eluser]skunkbad[/eluser]
[quote author="RaZoR LeGaCy" date="1273200966"]What should I change to?[/quote]

You might try 'sendmail' instead of 'mail'.
#6

[eluser]RaZoR LeGaCy[/eluser]
I switched protocol but still no dice. Any other suggestions are welcomed. Really need to get this working.

Thank you
#7

[eluser]skunkbad[/eluser]
Can you send html email successfully from this server, but not using CI? I'd be surprised if it was a CI issue.




Theme © iAndrew 2016 - Forum software by © MyBB