Below is my server specification.
Intel Celeron Series - 2.0+
Intel Celeron 2.0GHz+
80GB Hard Drive
CentOS Enterprise Linux, Version 4
512 MB RAM
cPanel/WHM with Fantastico
5 IP Addresses
750 GB Bandwidth
100 Mbps Uplink
Now I am using swift and want to discuss few points with you before launch my site.
1) I am getting this header
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host.domin.com
X-AntiAbuse: Original Domain - rediffmail.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - domin.com
Q) Do you think this header is ok ? or need to do some correction in either script or server seting
2) I am not able to send email to hotmail.com user (i.e. HOTMAIL.COM)from myquicksend.com. I am not getting any error too. Please have I look of http://old.openspf.org/wizard.html?mydo ... cksend.com is it ok ? I did am per my understanding please feel free to share your suggesation.
3)How to implement "Sender ID" ?
my script is below :
Code: Select all
include("include/header.php");
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
require_once "lib/Swift/Plugin/Decorator.php";
$smtp =& new Swift_Connection_SMTP("myquicksend.com");
$smtp->setUsername("username");
$smtp->setpassword("password");
$swift =& new Swift($smtp);
require_once "swift_email_template1.php";
$usertable = 'emailinfo_1';
$end=200;
$message =& new Swift_Message($campaign_subject);
$message->attach(new Swift_Message_Part($message_swift_plain));
$message->attach(new Swift_Message_Part($message_swift, "text/html"));
//$message->setReturnPath($ReturnPath);
$batch =& new Swift_BatchMailer($swift);
$get_sendemail_query=mysql_query("select * from $usertable where subscribe_status=1 ORDER BY listing_id ASC LIMIT 0,".$end);
while($get_sendemail_data = mysql_fetch_array($get_sendemail_query))
{
$send_listing_id = $get_sendemail_data['listing_id'];
$getdetfld_value = $launch_id."/".$send_listing_id;
$valid_emailaddress=trim(ereg_replace("\"","",$get_sendemail_data['email_address']));
$valid_fname=trim(ereg_replace("\"","",$get_sendemail_data['first_name']));
$valid_lname=trim(ereg_replace("\"","",$get_sendemail_data['last_name']));
$replacements[$valid_emailaddress] = array('{email_address}'=>$valid_emailaddress,'{first_name}'=>$valid_fname,'{last_name}'=>$valid_lname , '{county_name}'=>$get_sendemail_data[county_name] , '{day_name}'=>$get_sendemail_data[day_name], '{postalcode}'=>$get_sendemail_data[postalcode],'{launchvar}'=>$getdetfld_value);
//Load the plugin with the extended replacements class
$swift->attachPlugin(new Swift_Plugin_Decorator($replacements), "decorator");
$from_address = new Swift_Address($campaign_from_email, $campaign_from_label);
$recipients =& new Swift_RecipientList();
$recipients->addTo($valid_emailaddress);
$email_replace_id =trim(ereg_replace("@","_",$valid_emailaddress));
$id = $message->generateId($valid_lname);
if ($batch->send($message, $recipients, $from_address))
{
echo "<BR>Message sent ".$valid_emailaddress;
}
}