GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I want to send emails from my server (https://gfy.com/showthread.php?t=830085)

rockbear 05-22-2008 07:51 AM

I want to send emails from my server
 
Hello guy

How can I send emails directly from my server. Tell me what do you use about for that. I hear about custom script or php script? Please let me know guys.

Rockbear

rockbear 05-22-2008 11:06 AM

no body have a clue?

eightmotives 05-22-2008 11:08 AM

Try looking into php list, you can find it here: http://www.phplist.com/

Sly 05-22-2008 11:08 AM

I use Squirrel Mail for a couple applications and that seems to work just fine for basic mail needs.

CyberHustler 05-22-2008 11:15 AM

roundcube

rockbear 05-22-2008 12:56 PM

Great thank you guys...If you have any others tips or advice go for it :)

BigBen 05-22-2008 01:14 PM

Depends what you actually want to do. I use Mutt.

directfiesta 05-22-2008 01:19 PM

smtp or php. PHP is easier and universal ( no need to be on your station to use email ).

All our virtual plans includes neomail, a webinterface email/pim system.

SmokeyTheBear 05-22-2008 01:21 PM

save as mail.html
Code:

<html>
<head><title>Mail sender</title></head>
<body>
<form action="mail.php" method="POST">
<b>Email</b><br>
<input type="text" name="email" size=40>
<p><b>Subject</b><br>
<input type="text" name="subject" size=40>
<p><b>Message</b><br>
<textarea cols=40 rows=10 name="message"></textarea>
<p><input type="submit" value=" Send ">
</form>
</body>
</html>

save as mail.php
Code:

<html>
<head><title>PHP Mail Sender</title></head>
<body>
<?php

/* All form fields are automatically passed to the PHP script through the array $HTTP_POST_VARS. */
$email = $HTTP_POST_VARS['email'];
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];

/* PHP form validation: the script checks that the Email field contains a valid email address and the Subject field isn't empty. preg_match performs a regular expression match. It's a very powerful PHP function to validate form fields and other strings - see PHP manual for details. */
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
  echo "<h4>Invalid email address</h4>";
  echo "<a href='javascript:history.back(1);'>Back</a>";
} elseif ($subject == "") {
  echo "<h4>No subject</h4>";
  echo "<a href='javascript:history.back(1);'>Back</a>";
}

/* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */
elseif (mail($email,$subject,$message)) {
  echo "<h4>Thank you for sending email</h4>";
} else {
  echo "<h4>Can't send email to $email</h4>";
}
?>
</body>
</html>

then visit mail.html in your browser


All times are GMT -7. The time now is 08:49 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123