Here is the simple howto:
In this case, you might need an external SMTP server to push the email. Here i would like to suggest you guys to use phpmailer class.
Here is the example to use it. But first, you need to download phpmailer class first and create the following file in the same directory with phpmailer
<?php include("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // use ssl $mail->Host = "smtp.gmail.com"; // GMAIL's SMTP server $mail->Port = 465; // SMTP port used by GMAIL server $mail->Username = "your_gmail_account@gmail.com"; // GMAIL username $mail->Password = "password"; // GMAIL password $mail->AddReplyTo("other_email@hotmail.com","FirstName LastName"); // Reply email address $mail->From = "your_gmail_account@gmail.com"; $mail->FromName = "FirstName LastName"; // Name to appear once the email is sent $mail->Subject = "Subject of the email"; // Email's subject //$mail->Body = "Hello World,<br />This is the HTML BODY<br />"; //HTML Body $mail->AltBody = "This is a test email"; // optional, comment out and test $mail->WordWrap = 50; // set word wrap $mail->MsgHTML($body); // [optional] Send body email as HTML $mail->AddAddress("how_to_crack@yahoo.com", "Xanda INC"); // email address of recipient //$mail->AddAttachment("files/files.zip"); // [optional] attachment $mail->IsHTML(true); // [optional] send as HTML if(!$mail->Send()) echo "Mailer Error: " . $mail->ErrorInfo; else echo "Message sent!"; ?>
Enjoy!
sudo gedit /etc/sysctl.conf
copy and past the following code at the last line on your sysctl file
# increase TCP max buffer size setable using setsockopt() net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 # increase Linux autotuning TCP buffer limits # min, default, and max number of bytes to use # set max to at least 4MB, or higher if you use very high BDP paths net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 # don't cache ssthresh from previous connection net.ipv4.tcp_no_metrics_save = 1 net.ipv4.tcp_moderate_rcvbuf = 1 # recommended to increase this for 1000 BT or higher net.core.netdev_max_backlog = 2500 # for 10 GigE, use this, uncomment below # net.core.netdev_max_backlog = 30000 # Turn off timestamps if you're on a gigabit or very busy network # Having it off is one less thing the IP stack needs to work on #net.ipv4.tcp_timestamps = 0 # disable tcp selective acknowledgements. net.ipv4.tcp_sack = 0 #enable window scaling net.ipv4.tcp_window_scaling = 1
tada… now run the following command
sudo sysctl -p
But how to synchronize your Windows Mobile device in Linux? The solution for ActiveSync alternative on Linux is SynCE. The purpose of the SynCE project is to provide a means of communication with a Windows Mobile device from a computer running Linux, *BSD or other unixes using USB or Bluetooth. One can then use one’s computer to browse files, install applications and synchronize contacts, calendar and tasks with their PIM application of choice.
Lets setup it on our machine. This tutorial is working on Ubuntu 8.04 (Hardy).
First add SynCE repository to your sources.list
echo "deb http://ppa.launchpad.net/synce/ubuntu hardy main" | sudo tee -a /etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/synce/ubuntu hardy main" | sudo tee -a /etc/apt/sources.list
Now update your packages list
sudo apt-get update
As i mention before, Ubuntu 8.04 is a mistake. Ubuntu generic kernel might have some problems with USB driver. So here is the solution. First unload the old module
sudo rmmod rndis_host cdc_ether usbnet
Now, remove it
sudo rm /lib/modules/`uname -r`/kernel/drivers/net/usb/{rndis_host,cdc_ether,usbnet}.ko
Compile the new USB driver: usb-rndis-source and cdbs
sudo apt-get install usb-rndis-source cdbs sudo module-assistant auto-install usb-rndis
Fixed! Now back to SynCE story… We need to install several libraries which are odccm, librra0-tools and librapi2-tools
sudo apt-get install odccm librra0-tools librapi2-tools
Now connect your device and run the following command
synce-pls
IF you can see the lisft of files on your device, your device is successfully connected to your Linux machine.
BUT if it returns you the following error message, you need to install SynCE-GNOME or SynCE-KPM to provide a password prompt on device connect.
. WARNING **: synce_info_from_odccm: Failed to get a connection for <device_name>: Not authenticated, you need to call !ProvidePassword with the correct password. pls: Could not find configuration at path '(Default)'
To start sync your device, you need OpenSync.
sudo apt-get install multisync-tools opensync-plugin-evolution opensync-plugin-synce
Wee..! Your device is ready to sync. Please refer to OpenSync page for tutorial on how to use OpenSync
]]>
Changelogs:
Please leave your comment if you found any bugs, problems or difficulty.
Gentle reminder: This is Xanara Rescue CD BETA 1 discussion board. Thank you
]]>