Hello all!
I have a php script that i use to send mail to customers. How can i execute this script every 5 days for example? Can anyone give me an idea or some links?
Thanks
I have a page where a user can "share" the page with other people. I want the email to be formatted with html.
I'm using javascript to send the email. Any Idea's?
How do websites send email when new answers is posted to question like if you answer this question, I will get automated email that my question has an answer?
Hi,
I am new to Cocoa, but managed to get a connection (to a FTP) up and running, and I've set up an eventhandler for the NSInputStream iStream to alert every response (which also works).
What I manage to get is simply the hello message and a connection timeout 60 sec, closing control connection.
After searching stackoverflow and finding a lot of NSOutputStream write problems (e.g. http://stackoverflow.com/questions/703729/how-to-use-nsoutputstreams-write-message) and a lot of confusion in my google hits, I figured I'd try to ask my own question:
I've tried reading the developer.apple.com doc on OutputStream, but it seems almost impossible for me to send some data (in this case just a string) to the "connection" via the NSOutputStream oStream.
- (IBAction) send_something: sender
{
const char *send_command_char = [@"USER foo" UTF8String];
send_command_buffer = [NSMutableData dataWithBytes:send_command_char length:strlen(send_command_char) + 1];
uint8_t *readBytes = (uint8_t *)[send_command_buffer mutableBytes];
NSInteger byteIndex = 0;
readBytes += byteIndex;
int data_len = [send_command_buffer length];
unsigned int len = ((data_len - byteIndex >= 1024) ?
1024 : (data_len-byteIndex));
uint8_t buf[len];
(void)memcpy(buf, readBytes, len);
len = [oStream write:(const uint8_t *)buf maxLength:len];
byteIndex += len;
}
the above seems not to result in any useable events. typing it under NSStreamEventHasSpaceAvailable sometimes give a response if I spam the ftp by keep creating new connection instances and keep sending some command whenever oStream has free space. In other words, nothing "right" and so I'm still unclear how to properly send a command to the connection. Should I open - write - close every time i want to write to oStream (and thus to the ftp) and can I then expect a reply (hasBytesAvailable event on iStream)?
For some reason I find it very difficult to find any clear tutorials on this matter. Seems like there are more than a few in the same position as me: unclear how to use oStream write?
Any little bit that can help clear this up is greatly appreciated!
If needed I can write the rest of the code.
Chuck
Hi. I got a web service that I protect with basic authentication and use ssl. to make it easy for the clients that are gone use this web service I want to skip the 401 and send the credentials with the url (I would like so the customer can access the web service with url from their code / web app), question is this possible?
I know about headers but a lot of the clients gone use this do not got the proper developing team to do code.
thanks
Hi,
I am writing a C program which needs to send back a HTTP Bad Response.
This is what I write to socket.
HTTP/1.1 400 Bad Request\r\n
Connection: close\r\n
\r\n
My question is why the broswer still spinning (like appear it is still loading something?
Am I missing header in the Http response? OR I miss something else?
Thank you.
MSSQL 2008
Maybe i'm just looking in the wrong place.
Here's the scenario:
We have files stored in a varbinary(max) column.
I'd like to select these as individual files, along with the names of the files stored nearby, as individual file attachments.
can this be done?
it's easy enough to send the results of a query as an attachment, but it just sends 1 file.
Thanks
i trying to use Blat to send mail in local mail server but the error message keep return saying that the smtp server does not like the sender name.
i have keep trying different sender name but still cannot, anybody know how to fix it?
Pls help..
I am working on document storage and retrieval application. In which i display the pdf document as an png image , but i have a email button on the top. On clicking that the user would be able to provide an email address to which the document needs to be sent, and I need to send this pdf as an attachment. I need to password protect the file for security reasons. I have no clue on how i can do this in asp.net mvc.
I've been using gmail's SMTP server to send email (notifications, password reminder, etc) in my web application. However, i'm getting to the point where i'm reaching the limit of 500 sent emails per day using gmail's SMTP.
Is there any SMTP service's that I can use instead? A friend told me about sendgrid.com, but that's the only one i've heard of.
Hi, I have a problem here. I need to send some value to 'text1 and 'text2'. For example,
text1 =
...and this code below will refer to those values..
FILE *child = _popen("java -jar c:\\simmetrics.jar text1 text2 > c:\\test.txt", "r");
How can achieve it. I have done many ways, and it keep on giving me pointer errors.
Hi,
I am planning on converting some longitude and latitude values to XML and then sending the file to a web server to display on a Google Map Interface.
Is it possible to send an XML file to a web server through my own application in Android?
Thanks
Hi all,
I need to make the datepicker show when I click on a link and then send the selected date to a different page through a post call.
T tried to use this code for the link call:
$(".click-on-link").click(function(){
$('#datepicker').datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd/mm/yy',
firstDay: 1
});
});
but it's not working. Any idea?
Thanks!
I devloped an asp.net application to send sms from gsm modem to destination base on URL from the browser I used a library that developed by codeproject http://www.codeproject.com/articles/20420/how-to-send-and-receive-sms-using-gsm-modem
but I get problem when I request form two browsers at same time and I want to make the my code detect that the modem is use by another process at the time
here is my code:
DeviceConnection deviceConnection = new DeviceConnection();
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (Request.QueryString["destination"] != null && Request.QueryString["text"] != null)
{
deviceConnection.setBaudRate(9600);
deviceConnection.setPort(12);
deviceConnection.setTimeout(200);
SendSms sendSms = new SendSms(deviceConnection);
if (deviceConnection.getConnectionStatus())
{
sendSms.strReciverNo = Request.QueryString["destination"];
sendSms.strTextMessage = Request.QueryString["text"];
if (sendSms.sendSms())
{
Response.Write("Mesage successfuly sent to " + Request.QueryString["destination"]);
}
else
{
Response.Write("Message was not sent");
}
}
}
}
catch (Exception ex)
{
Console.WriteLine("Index "+ex.StackTrace);
}
}
This is SendSms class:
class SendSms
{
DeviceConnection deviceConnection;
public SendSms(DeviceConnection deviceConnection)
{
this.deviceConnection = deviceConnection;
}
private string reciverNo;
private string textMessage;
private delegate void SetTextCallback(string text);
public string strReciverNo
{
set
{
this.reciverNo = value;
}
get
{
return this.reciverNo;
}
}
public string strTextMessage
{
set
{
this.textMessage = value;
}
get
{
return this.textMessage;
}
}
public bool sendSms()
{
try
{
CommSetting.Comm_Port = deviceConnection.getPort();//GsmCommMain.DefaultPortNumber;
CommSetting.Comm_BaudRate = deviceConnection.getBaudRate();
CommSetting.Comm_TimeOut = deviceConnection.getTimeout();//GsmCommMain.DefaultTimeout;
CommSetting.comm = new GsmCommMain(deviceConnection.getPort()
, deviceConnection.getBaudRate(), deviceConnection.getTimeout());
// CommSetting.comm.PhoneConnected += new EventHandler(comm_PhoneConnected);
if (!CommSetting.comm.IsOpen())
{
CommSetting.comm.Open();
}
SmsSubmitPdu smsSubmitPdu = new SmsSubmitPdu(strTextMessage, strReciverNo, "");
smsSubmitPdu.RequestStatusReport = true;
CommSetting.comm.SendMessage(smsSubmitPdu);
CommSetting.comm.Close();
return true;
}
catch (Exception exception)
{
Console.WriteLine("sendSms " + exception.StackTrace);
CommSetting.comm.Close();
return false;
}
}
public void recive(object sender, EventArgs e)
{
Console.WriteLine("Message received successfuly");
}
}
}
Can any one guide me on how i can send emails with a return path in ASP.net 3.5 / C# 3.5. I know this was possible few years back but now due to spoofing issues this is not possible. I have been looking on internet but no use. I want the emails if bounced, should reach my bounce mail box, which could be like [email protected].
Please guide. Really stuck ...
Best regards,
Haroon
I have seen the iPhone equivalent of this question here and I'm wondering...
is there an equivalent for bringSubviewToFront: for OS X development? I need something to send an NSImageView "to front".
Hello everybody.
Public web-site provides list of employees to Internet visitors. Contact information is hidden but visitor can send email via popup email-form.
What do you think about automated-scripts/viruses/bot spam activity? Is Capture a "must" for this functionality and what kind of precautions can you suggest also?
Thank you in advance
Hi all
i am new to this technology.
i have configured ESS server with Microsoft Outlook for sending email from simulator. But i am not able to send image as a attachment from simulator to outlook. html attachement is working fine.
Should i configure BES server with Microsoft Exchange for testing the image attachment.
is it possible.
can any one provide me suggestion.
hi guys,
I'm working on an application using Android SO and Java. I would like to send an xml file as POST to a php server, that inserts the information from the xml into a database.
how can i do that?
regards :D
Hi all,
I have created a script in php for sending the email with attachment and i want to know if i ahve chnge some setting in joomla so that this works.
Currently i am getting error as
"Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\xampp\htdocs\Joomla\Emailattachment.php on line 56
mail send ... ERROR! "
Regards,
Hemant
Hi
PayPal IPN sends a notification to your script directly. Since the notification is coming from PayPal - NOT the customer that placed the order - My Login session doesn't exits this context .Therefore,all my login data doesn't exist in the session.I need my login session values to update my DB with paypal ipn value.How should i mentain my login session should i set browser session or other way can i send login primary key to paypal.