|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hello,
I've created a mail script, but I can't figure out how to put my $email variable into the FROM field of the email. This is the code I have now: open (MAIL, "|$mailprog -t") or &dienice("Can't access $mailprog!n"); print MAIL "To: $recipientn"; print MAIL "From: $emailn"; I know it's probably a simple fix, and I appreciate the help. Thanks, Jamie |
|
#2
|
|||
|
|||
|
>>I can't figure out how to put my $email variable into the FROM field of the email.
How do you get $email? If it's predefined in your script like this: $email = "whoopnstik@aol.com"; Then you need to escape the @ char like so: $email = "whoopnstik@aol.com"; With single quotes, you don't need to. $email = 'whoopnstik@aol.com'; |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > CGI Mail Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|