PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
alexus wrote:ok, when I outputed the failed addreeses it jyst gave me number "1" which is I assume 1 bad address or error, and it is probably my hotmail account that for soeme rasont doesnt get the maill I send from SWIFT, but works just fine with the same SMPT account. a)Why that happence and gow can I debug? I dont want to loose all hotmail accounts thats about 500 ppl in my database
Thanks!
getFailedRecipients() an array of addresses. How did you output it?
The hotmail thing sounds like it's being blocked as spam. Have you tried sending *exactly* the same email from your host through the same SMTP server? Not from your own machine, it needs to originate at the same location as where swift is installed so you can see if it's blacklisting your IP
FYI, the short message "test" will usually be penalized too.... you should test with longer messages. If you don't want to type out a long message use lipsum.com to generate some arbitrary text
The outgoing SMTP server is in at least one RBL (Realtime Black List) bl.spamcannibal.org.
Apart from that everything looks good. It could be borderline. Try a longer message and give a name in the "From: " field. If hotmail is paying attention strictly to RBLs you can't really do a lot. It's extremely difficult to get your IP taken off a blacklist.
Ok, I just tried to set my name and email address for headers, aslo used fake latin poems as body of the mesage. but no luck
Hotmail doesnt let it through..
What I have to change the host again? AAAAAA thats 3rd time in one month
alexus wrote:Ok, I just tried to set my name and email address for headers, aslo used fake latin poems as body of the mesage. but no luck
Hotmail doesnt let it through..
What I have to change the host again? AAAAAA thats 3rd time in one month
Shared host servers are notoriously bad for being blacklisted. Especially the cheaper ones since they do tend to attract spammers. It only takes one person on that server to start sending spam and you'll finish up being penalized for it. VDS/VPS is the way to go if you want cheap hosting without the hassle of other users sharing the same environment
aaaa, im having a heart attack...
I can run my own datasener, I just dont wana have that much pain in the a** to maitain it, but now Im having same amout of trouble...
I first host was perfect! no problems whatsoever before their DB gots corupted and didnt accept 2d requests.
Hehe it' all fun fun fun. I was about to sell myself by saying if you got a VDS and couldn't be bothered/didn't have time to set it up as a mail/http server I'd do it for a small sum but you sound like you're capable of that anyway
ya setting up mail and apache is easy...designing custom equipment is easy too.... keeping up with all updates, patches remakes, erc thats hard, I have to be in hosting business to know all the stuff like that... and IU dont mean install everything that was released... caz in most cases thats just slows down the system and sometimes even kills it => FedoraCore 3 upgrade he he
well what im gonna do i guess is setup Gmail account for newsletter, not as good as sending tem from our domain name but at least that might deliver tham
and i have to fix that problem wih printing andelivarable email
alexus wrote:ya setting up mail and apache is easy...designing custom equipment is easy too.... keeping up with all updates, patches remakes, erc thats hard, I have to be in hosting business to know all the stuff like that... and IU dont mean install everything that was released... caz in most cases thats just slows down the system and sometimes even kills it => FedoraCore 3 upgrade he he
well what im gonna do i guess is setup Gmail account for newsletter, not as good as sending tem from our domain name but at least that might deliver tham
and i have to fix that problem wih printing andelivarable email
Thats what security mailing lists are for Like GLSA
oh men I hate mailing lists, forums way better...
Im on 3 linux lists and imgetting like 100 new messages per day on each, guess what "Delete Alll" ... I juast can read all thatt things...
PS: I just tried to use regular mail() functioon and it works just fine with hotmail he he probably HTTP box is not black listed..
Can I set headers in SWIFT so I sebd mail from Gmail and users would think its my domain? like FROM: and Return-Path?
<?php
require('../../Swift.php');
require('../../Swift/Connection/SMTP.php');
$mailer = new Swift(new Swift_Connection_SMTP('smtp.gmail.com', SWIFT_SECURE_PORT, SWIFT_TLS));
//If anything goes wrong you can see what happened in the logs
if ($mailer->isConnected()) //Optional
{
//You can call authenticate() anywhere before calling send()
if ($mailer->authenticate(xxx@gmail.com', 'xxxx'))
{
//Sends a simple email
$mailer->send(
'"Netu" <xxxx@xxxx>',
'"Alexus" <xxxx@gmail.com>',
'Hey do u seee this?',
"Hello Joe it's only me!"
);
}
else echo "Didn't authenticate to server";
//Closes cleanly... works without this but it's not as polite.
$mailer->close();
}
else echo "The mailer failed to connect. Errors: <pre>".print_r($mailer->errors, 1)."</pre><br />
Log: <pre>".print_r($mailer->transactions, 1)."</pre>";
?>